No sound for users, just root

Hello,

I am having trouble with flash player. Well first I had some trouble with my router and rebooted linux. Then, flash wouldn’t play sound anymore.

I updated flash etc but still no sound. Then I tried as root administrator and flash sound works fine there.

So I checked the sound preferences from the Control Center and found out, all output devices are set to autodetect instead to one of the output devices I have. But when I switched to the user account to change the preferences accordingly, no sound was played at all… sigh

Also, when I want to use the loudspeaker icon at the bottom to reach the volume control in the user account, I get an error message stating there was some connection refused.

This is very disturbing. Somebody have a clue?

Deneck

As it seems, I can not edit my post. I forgot the following:

My Open SuSe Version is 11.1.
Kernel Linus 2.6.27.45-0.1-default
GNOME 2.24.1

Flash Version ist the latest. But I don’t think that Flash is the problem.

Note that inappropriate use of user account can really mess up your permissions such that sound will not work and other problem symptoms will result (from inappropriate root use). So hopefully your testing with root was just a simply konsole/terminal test and NOT a log in to X.

Anyway, did you try adding your regular user to group audio? You can do that in YaST.

After adding your user to group audio, you need to log out of Linux and log back in. Restarting may be the easiest way not to get this wrong, after adding your user to group audio.

Thanks for helping :slight_smile:

To see if things work on root I actually hit the “switch user” button. Hope that’s not too much of a problem. Anyway, it did not become worse than it was before. Of course this could mean it was all messed up before and rebooting the system while flash was trying to load a movie was the final push it needed.

I found the audio group, added the user to it and rebooted. Did not change anything.

OK, then since you are using openSUSE-11.1, try removing libflash-support (but keep flash-player) and restart your browser and check as a REGULAR USER.

If that does not work then as a REGULAR USER try to play a flash video. Check the PCM volume levels immediately as soon as the video starts to play and move them up if too low. Does that help?

Advise please if it does not, as there are other things to check.

Deneck wrote:
> Thanks for helping :slight_smile:
>
> To see if things work on root I actually hit the “switch user” button.
> Hope that’s not too much of a problem.

logging into any Unix-like OS as root/superuser/ is a no-no, do not do
it even “just to check” and see if it works…because doing so you
have nothing you can use…

dont do it…this is not windoz and root is not administrator…

logging into KDE/Gnome/etc as root 1) opens you up to several
different security problems, 2) too many too easy ways to damage your
system no matter how careful your actions (example: just browsing in
your home directory while logged into KDE/Gnome/etc as root can lock
you out later as yourself due to permissions damage), 3) and, anyway
logging into KDE/etc as root is never required to do any and all
administrative duties…

so, always log in as yourself, and “become root” by using a root
powered application (like YaST, File Manager Superuser Mode) or using
“su -”, sudo, kdesu, or gnomesu in a terminal to launch whatever tool
is needed (like Kwrite to edit a config file)…read more on all that
here:

http://en.opensuse.org/SDB:Login_as_root
http://docs.kde.org/stable/en/kdebase-runtime/userguide/root.html
http://tinyurl.com/6ry6yd
http://tinyurl.com/ydbwssh


palladium

oops, ok. There are many “why?!” questions about the root topic, but for now I guess it’s fine if I just do not log in as root anymore.

thank you for the links!

I did the following:

  • removed libflash-support and libflash-support 32bit
  • went to youtube and: no sound
  • started the PulseAudio Volume Control and to my surprise connection was not refused any more

However, there is no way to check on PCM volume in that Volume Control.

Pulse audio in gnome is IMHO a bit buggy.

Do you have sound as a regular user in ANY application?

Out of curiousity, what is the output URL provided by running the diagnostic script (with your PC connected to the internet):

/usr/sbin/alsa-info.sh

and select the SHARE/UPLOAD option.

Hello,

I do have sound in all applications except shockwave flash in firefox.

Here is the output URL:
http://www.alsa-project.org/db/?f=a73b6fc95e3908497d44976bacaec7dcb48c6798

OK, I note this:

!!Soundcards recognised by ALSA
!!-----------------------------

 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfe020000 irq 16
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xfdbfc000 irq 19
 2 [Audigy2        ]: Audigy2 - Audigy 2 ZS [2001]
                      Audigy 2 ZS [2001] (rev.4, serial:0x20011102) at 0xcf00, irq 21


From what I can see you have 2 sound devices (I am ignoring the HDMI).

In some cases in KDE, users will have sound devices selected in a specific order in YaST > Hardware > Sound, but will have a different order selected in KDE’s > Configure Desktop Multimedia. This means firefox will try to play sound thru the wrong hardware device and the user will get no sound. I do not know how this works in Gnome, but its possible you have the same problem. I believe you need to ensure you have the same order of device priority in Gnome desktop (pulse audio) settings as you have in YaST.

Also, some users found in firefox they need to go to Firefox > Edit > Applications > Shockwave Flash file and choose “Use Flash Player (default)”

I assume there is a way to check PCM volume on another control, because I note this on the diagnostic script output you provided:

!!Amixer output
!!-------------
!!-------Mixer controls for card 0 [SB]
Simple mixer control ‘PCM’,0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
and this:
!!-------Mixer controls for card 2 [Audigy2]
Card hw:2 ‘Audigy2’/‘Audigy 2 ZS [2001] (rev.4, serial:0x20011102) at 0xcf00, irq 21’
Mixer name : ‘SigmaTel STAC9721,23’
Components : ‘AC97a:83847609’
Controls : 209
Simple mixer control ‘PCM’,0
Capabilities: pvolume cvolume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 100 Capture 0 - 100
Front Left: Playback 80 [80%] -8.00dB] Capture 100 [100%] [0.00dB]
Front Right: Playback 80 [80%] -8.00dB] Capture 100 [100%] [0.00dB]

… so clearly there IS a PCM control for both of your audio devices, which ever one you are using.

Ok, I did something to the YaST entries and now the sound cards indices are switched. This did not change anything. banshee still plays nicely, flash doesn’t.

I switched from Shockwave Flash to Flash Player in Firefox and nothing happened.

I DID find the PCM volume control! I was always double clicking the icon but right click -> preferences allows me to change the used mixer and then choose to have PCM changed when using the volume control.

Anyway, nothing changed. No sound in Flash.

Note you likely need to restart firefox for this to have effect.

wrt your changing sound device priority, you may need to login out / in of gnome for that to have full effect.

Just rebooted to be sure. Still doesn’t work.

Has anyone further ideas?

How about summarizing where you are wrt this and how you got here.

Are you using ONLY the Novell/SuSE-GmbH packaged flash rpm, or did you go mucking about with the Adobe packaged version?

What is the output of:

rpm -qa '*flash*'

Did you try removing one hardware sound device, configure the other, and see if flash plays then? If that is the case, then it would suggest this is a problem having multiple sound devices with Gnome/Pulse-Audio, which is my suspicion.

hum… it worked. I ‘deleted’ all Soundcards except one from the YaST Sound control thing and restarted.
Actually I am somewhat surprised that the flash player spontaneously switched to the wrong sound card when I rebooted the system.

As long as I do not start playing with synthesizers etc again, I guess it will be ok - uhm I did not play with that in my linux system before just in case your face just hit the keyboard :wink: - but I added the second card to use it with my electronic drum set which I used with windows.

Thank you very much for you help and patience. :slight_smile:

Glad to read it worked.

I believe there is a way to get this working with gnome and pulse audio with two audio cards, but it requires knowledge of pulse audio that I have either forgotten, or knowledge that I never had.