Yes, there are Pulse Audio Preferences and Sound icons. The only Pulse Audio process running is "pulseaudio". No process with name starting with "pau".
Skype uses Pulse Audio (nothing else is selectable in its audio preferences).
In Audacious I can select Pulse Audio and ALSA plugins, they both produce exactly the same sound.
- Code: Select all
pulseaudio -k
pulseaudio -D
makes change to sound volume (it's louder) and changes sound preferences look (I get mixer instead of ordinary panel) - I mean this shown after right clicking on speaker icon.
I have no other problems with sound. 2 soundcards (internal and PCI) work properly. The only problem is the setting I made with alsamixer is not restored on reboot, but can be restored by running
- Code: Select all
sudo /etc/init.d/alsa-utils start
from terminal.
I've tried following:
- Code: Select all
sudo ln -sf ../init.d/alsa-utils /etc/rc5.d/S20alsa-utils
sudo update-rc.d alsa-utils defaults
which should run this script every start just before pulseaudio, but no joy.
I don't understand update-rc.d well. I guess messing with it was not a good idea, so I reverted it to previous state. The problem remains - if I want to have working microphone in skype - I have to run alsa-utils manually once each reboot.
PS:
Previously I got alsactl permission errors on alsa-utils start (alsactl restore), now I get alsactl permission error on alsa-utils stop (alsactl store).
- Code: Select all
$ /etc/init.d/alsa-utils restart
Shutting down ALSA...warning: 'alsactl store' failed with error message 'alsactl: save_state:1532: Cannot open /var/lib/alsa/asound.state for writing: Permission denied'...failed.
Setting up ALSA...done.
It's important the settings are stored and restored properly regardless of those errors. What's interesting:
- Code: Select all
$ sudo cat /var/log/boot | grep ALSA
Sat Jul 2 23:47:05 2011: Setting up ALSA...done.
No errors here. Ever.
Could I have broken it with running alsactl store / restore manualy as root? I did it the first time I used alsamixer and got an error message (about permissions denied), but it worked (I tried changing the setting and restoring state - errors present, but state restored).
PS2:
WAIT. I said restarting pulseaudio daemon changes sound volume AND alsa-utils looks like started each reboot BEFORE pulseaudio. Maybe this is the answer? Maybe pulseaudio overwrites properly restored alsa mixer settings? How could I check it? alsautils script is present only in /etc/rc0.s, /etc/rc1.s and /etc/rc6.s. pulseaudio is in 2, 3, 4 and 5. It seems wrong somehow.
PS3:
Reboot (no error messages during shutdown and start).
Microphone dead.
- Code: Select all
$ sudo /etc/init.d/alsa-utils start
Setting up ALSA...warning: 'alsactl restore' failed with error message 'alsactl: set_control:1388: Cannot write control '2:0:0:IEC958 Playback Default:0' : Operation not permitted
alsactl: set_control:1388: Cannot write control '2:0:0:IEC958 Playback Switch:0' : Operation not permitted'...amixer: Invalid command!
done.
Microphone ok.