From Fedora Project Wiki

(Minor fixes)
m (Fix markup)
Line 27: Line 27:
 
* Starts with the session
 
* Starts with the session
 
** In ''GNOME'' see ''System->Preferences->Personal->Sessions''
 
** In ''GNOME'' see ''System->Preferences->Personal->Sessions''
** In ''KDE'', you should have {{package|kde-settings-pulseaudio}} installed
+
** In ''KDE'', you should have <code>kde-settings-pulseaudio</code installed
 
** Check if it runs with <code>ps aux |grep pulseaudio</code>
 
** Check if it runs with <code>ps aux |grep pulseaudio</code>
 
* <code>grep pulseaudio /var/log/messages</code> to see if it had any problems
 
* <code>grep pulseaudio /var/log/messages</code> to see if it had any problems

Revision as of 12:12, 12 July 2011

Note.png
Page to be merged
It has been suggested that this page should be merged in How to debug sound problems.

This page helps you identify and correct issues with sound on your system, and helps you report problems so they can be prevented in the future.

Use the list below to identify the component at fault and to help you provide the debugging information when you file a bug report. Please add output of relevant commands to the report:

1. Add shorter texts, such as getfacl output or fact that aplay did not play sound as comments 1. Attach longer outputs, such as pulseaudio -vvv log as attachments

Feel free to improve this text to reflect your experience, or mail suggestions to lkundrak@redhat.com. Thanks!

ALSA

  • Relevant packages: Package-x-generic-16.pngkernel, Package-x-generic-16.pngalsa-lib, Package-x-generic-16.pngalsa-plugins-pulseaudio
  • Permissions on device files are managed by HAL
    • Relevant packages: Package-x-generic-16.pnghal, Package-x-generic-16.pnghal-libs
    • See what ACLs are set with getfacl /dev/snd/pcmC0D0c
      • Users with active sessions should have write privilege
  • Pulseaudio backend is in package Package-x-generic-16.pngalsa-plugins-pulseaudio
  • Volume settings are adjusted with alsamixer -c 0
  • You can play sound with aplay -D hw:0 /usr/share/sounds/startup3.wav
    • When pulseaudio is running, use pasuspender /usr/bin/aplay -- -D hw:0 /usr/share/sounds/startup3.wav

PulseAudio daemon

  • Relevant packages: Package-x-generic-16.pngpulseaudio
  • Starts with the session
    • In GNOME see System->Preferences->Personal->Sessions
    • In KDE, you should have kde-settings-pulseaudio</code installed
    • Check if it runs with ps aux |grep pulseaudio
  • grep pulseaudio /var/log/messages to see if it had any problems
  • Audio devices are discovered by HAL
    • Relevant packages: Package-x-generic-16.pnghal, Package-x-generic-16.pnghal-libs
    • Use hal-find-by-capability --capability alsa to list them
  • Run verbose pulseaudio on foreground to see detailed messages
  • Kill running pulseaudio pulseaudio -k or pkill -KILL pulseaudio
  • Clean up the leftover temporary files rm -rf /tmp/pulse-*
  • Run pulseaudio -vvv
  • You can play sound with paplay /usr/share/sounds/startup3.wav

GStreamer

  • Relevant packages: Package-x-generic-16.pnggstreamer, Package-x-generic-16.pnggstreamer-plugins-pulse
  • Default sound devices is set by gnome-sound-properties
  • Either ALSA or pulse should work. Also default.
  • Check the values with gconftool-2 --recursive-list /system/gstreamer/0.10/default
  • You can play sound with gst-launch audiotestsrc \! autoaudiosink
  • Also try pulsesink instead