Hi all,
i got this Waring after i did a sudo apt-get dist-upgrade
[warn] PulseAudio configured for per-user sessions ... (warning).
What do i need to do?
Beau
I see this message every time I power up my Pi.n9mfk wrote:[warn] PulseAudio configured for per-user sessions ... (warning).
Code: Select all
cat /etc/default/pulseaudioCode: Select all
sudo service pulseaudio restartCode: Select all
# Start the PulseAudio sound server in system mode.
# (enables the pulseaudio init script - requires that users be in the
# pulse-access group)
# System mode is not the recommended way to run PulseAudio as it has some
# limitations (such as no shared memory access) and could potentially allow
# users to disconnect or redirect each others' audio streams. The
# recommended way to run PulseAudio is as a per-session daemon. For GNOME/KDE/
# Xfce sessions in Ubuntu Lucid/10.04, /etc/xdg/autostart/pulseaudio.desktop
# handles this function of automatically starting PulseAudio on login, and for
# it to work correctly your user must *not* have "autospawn = no" set in
# ~/.pulse/client.conf (or in /etc/pulse/client.conf). By default, autospawn
# is enabled. For other sessions, you can simply start PulseAudio with
# "pulseaudio --daemonize".
# 0 = don't start in system mode, 1 = start in system mode
PULSEAUDIO_SYSTEM_START=0
# Prevent users from dynamically loading modules into the PulseAudio sound
# server. Dynamic module loading enhances the flexibility of the PulseAudio
# system, but may pose a security risk.
# 0 = no, 1 = yes
DISALLOW_MODULE_LOADING=1
Code: Select all
sudo apt-get autoremove pulseaudioCode: Select all
sudo apt-get install alsaCode: Select all
sudo apt-get autoremoveDo you know whether your audio originates from alsa? Can you still use the alsamixer control? Can you still play a sound file with the aplay command? Can you still control the audio output (i.e. analogue or digital) with the amixer cset and sset commands?Mursili wrote:This is odd since I have used 'apt-get dist-upgrade' and it did not break audio.
Now that you ask, I do not know. It is clear to me now that the Pi I am talking about seems to only use omxplayer to produce sound and that does not seem to be affected by whether I can get aplay to work. However, I would appreciate making sure that my sound system is working otherwise. Is there a good way to test that alsa is working (other than what I describe below)?BerryPicker wrote:Do you know whether your audio originates from alsa?
The control comes up, but as I will say below, I have yet to produce any sound with aplay.BerryPicker wrote:Can you still use the alsamixer control?
I downloaded a couple of .wav files online. One gives and error about wrong encoding when using 'aplay filename.wav' The other one gives no error, but still produces nary a sound.BerryPicker wrote:Can you still play a sound file with the aplay command?
I did not try these.BerryPicker wrote:Can you still control the audio output (i.e. analogue or digital) with the amixer cset and sset commands?
Could you post the contents of the files /etc/asound.conf and /home/pi/asound.rc ? Any reference to pulseaudio should be removed. If that also fails, you can try to purge alsa and reinstall it:winkleink wrote:same problem here.
audio all good until I did an upgrade and now fails.
aplay worked in sudo but not in apps
i uninstalled pulseaudio using the instructions above.
No joy and now even sudo aplay fails.
alsamixer still runs and shows volume.
i went to the wiki and checked my hdmi_drive was set to 2.
rebuilt hello_audio.bin and ran it with option 1 for hdmi and I get audio.
so, the physical connections work, but doing a dist upgrade has messed up the config.
any and all advice appreciated.
Code: Select all
sudo apt-get --yes purge pulseaudio# mpg123 --version
mpg123 1.14.4
....# apt-get purge pulseaudio
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'pulseaudio' is not installed, so not removed