From Fedora Project Wiki

m (1 revision(s))
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= Troubleshooting Fedora Sound Problems =
+
{{admon/note|Page to be merged|It has been suggested that this page should be merged in [[How to debug sound problems]].}}
  
Hi! This page exists to help you make your sound working and to help us prevent others from spotting your 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 that is making your sound not working and to aid you providing the debugging information when you file a bug report. Please add output of relevant commands to the report:
+
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 <code>getfacl</code> output or fact that <code>aplay</code> did not play sound as comments
 
1. Add shorter texts, such as <code>getfacl</code> output or fact that <code>aplay</code> did not play sound as comments
Line 11: Line 11:
  
 
== ALSA ==
 
== ALSA ==
* '''Relevant pacakges:''' <code>kernel</code>, <code>alsa-lib</code>, <code>alsa-plugins-pulseaudio</code>
+
* '''Relevant packages:''' {{package|kernel}}, {{package|alsa-lib}}, {{package|alsa-plugins-pulseaudio}}
 
* Permissions on device files are managed by ''HAL''
 
* Permissions on device files are managed by ''HAL''
* '''Relevant pacakges:''' <code>hal</code>, <code>hal-libs</code>
+
** '''Relevant packages:''' {{package|hal}}, {{package|hal-libs}}
* See what ACLs are set with <code>getfacl /dev/snd/pcmC0D0c</code>
+
** See what ACLs are set with <code>getfacl /dev/snd/pcmC0D0c</code>
* Users with ''active sessions'' have write privilege
+
*** Users with ''active sessions'' should have write privilege
* '''Relevant pacakges:''' <code>ConsoleKit</code>, <code>ConsoleKit-libs</code>
+
**** '''Relevant packages:''' {{package|ConsoleKit}}, {{package|ConsoleKit-libs}}
* Check which sessions are active with <code>ck-list-sessions</code>
+
**** Check which sessions are active with <code>ck-list-sessions</code>
* Pulseaudio backend is in package <code>alsa-plugins-pulseaudio</code>
+
* Pulseaudio backend is in package {{package|alsa-plugins-pulseaudio}}
 
* Volume settings are adjusted with <code>alsamixer -c 0</code>
 
* Volume settings are adjusted with <code>alsamixer -c 0</code>
 
* You can play sound with <code>aplay -D hw:0 /usr/share/sounds/startup3.wav</code>
 
* You can play sound with <code>aplay -D hw:0 /usr/share/sounds/startup3.wav</code>
* When pulseaudio is running, use <code>pasuspender /usr/bin/aplay -- -D hw:0 /usr/share/sounds/startup3.wav</code>
+
** When pulseaudio is running, use <code>pasuspender /usr/bin/aplay -- -D hw:0 /usr/share/sounds/startup3.wav</code>
  
 
== PulseAudio daemon ==
 
== PulseAudio daemon ==
* '''Relevant packages:''' <code>pulseaudio</code>
+
* '''Relevant packages:''' {{package|pulseaudio}}
 
* 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 <code>kde-settings-pulseaudio</code> 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
 
* Audio devices are discovered by ''HAL''
 
* Audio devices are discovered by ''HAL''
* '''Relevant pacakges:''' <code>hal</code>, <code>hal-libs</code>
+
** '''Relevant packages:''' {{package|hal}}, {{package|hal-libs}}
* Use <code>hal-find-by-capability --capability alsa</code> to list them
+
** Use <code>hal-find-by-capability --capability alsa</code> to list them
 
* Run verbose pulseaudio on foreground to see detailed messages
 
* Run verbose pulseaudio on foreground to see detailed messages
 
* Kill running pulseaudio <code>pulseaudio -k</code> or <code>pkill -KILL pulseaudio</code>
 
* Kill running pulseaudio <code>pulseaudio -k</code> or <code>pkill -KILL pulseaudio</code>
Line 40: Line 40:
  
 
== GStreamer ==
 
== GStreamer ==
* '''Relevant packages:''' <code>gstreamer</code>, <code>gstreamer-plugins-pulse</code>
+
* '''Relevant packages:''' {{package|gstreamer}}, {{package|gstreamer-plugins-pulse}}
 
* Default sound devices is set by <code>gnome-sound-properties</code>
 
* Default sound devices is set by <code>gnome-sound-properties</code>
 
* Either ''ALSA'' or ''pulse'' should work. Also ''default''.
 
* Either ''ALSA'' or ''pulse'' should work. Also ''default''.
Line 46: Line 46:
 
* You can play sound with <code>gst-launch audiotestsrc \! autoaudiosink</code>
 
* You can play sound with <code>gst-launch audiotestsrc \! autoaudiosink</code>
 
* Also try <code>pulsesink</code> instead
 
* Also try <code>pulsesink</code> instead
 +
 +
== Firefox / Flash / Amazon.com Preview Issues in x86_64 ==
 +
* This pertains to Firefox / Amazon.com music previews that sound horrible, or mixed with 'Pac-Man' noise:
 +
* The problem may be that your flash player is old or not installed properly (as was my case).
 +
* Open firefox and navigate to Adobe's flash download site for Linux:
 +
<code>http://labs.adobe.com/downloads/flashplayer11.html</code>
 +
* Download the latest flashplayer for your installation
 +
* <code>For example: flashplayer11_b2_install_lin_64_080811.tar.gz</code>
 +
* Close firefox and all of its Download / Properties windows.
 +
* Applications -> System Tools -> Terminal
 +
* Enter the following commands:
 +
<code>$ su (switch to root authority--enter the root password)</code><br>
 +
<code># cd /home/<your user id>/Downloads/</code><br>
 +
<code># tar -xzf flashplayer11_b2_install_lin_64_080811.tar.gz</code><br>
 +
<code># cp -i ./bin/flash-player-properties /usr/bin/</code><br>
 +
<code># cp -i ./usr/lib/kde4/kcm_adobe_flash_player.so /usr/lib/kde4/</code><br>
 +
<code># cp -i ./usr/share/applications/flash-player-properties.desktop /usr/share/applications/</code><br>
 +
<code># cp -i ./usr/share/icons/hicolor/16x16/apps/flash-player-properties.png /usr/share/icons/hicolor/16x16/apps/</code><br>
 +
<code># cp -i ./usr/share/icons/hicolor/24x24/apps/flash-player-properties.png /usr/share/icons/hicolor/24x24/apps/</code><br>
 +
<code># cp -i ./usr/share/icons/hicolor/32x32/apps/flash-player-properties.png /usr/share/icons/hicolor/32x32/apps/</code><br>
 +
<code># cp -i ./usr/share/icons/hicolor/48x48/apps/flash-player-properties.png /usr/share/icons/hicolor/48x48/apps/</code><br>
 +
<code># cp -i ./usr/share/pixmaps/flash-player-properties.png /usr/share/pixmaps/</code><br>
 +
* Restart firefox
 +
 +
[[Category:How_to]]

Latest revision as of 18:16, 15 August 2015

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

Firefox / Flash / Amazon.com Preview Issues in x86_64

  • This pertains to Firefox / Amazon.com music previews that sound horrible, or mixed with 'Pac-Man' noise:
  • The problem may be that your flash player is old or not installed properly (as was my case).
  • Open firefox and navigate to Adobe's flash download site for Linux:

http://labs.adobe.com/downloads/flashplayer11.html

  • Download the latest flashplayer for your installation
  • For example: flashplayer11_b2_install_lin_64_080811.tar.gz
  • Close firefox and all of its Download / Properties windows.
  • Applications -> System Tools -> Terminal
  • Enter the following commands:

$ su (switch to root authority--enter the root password)
# cd /home/<your user id>/Downloads/
# tar -xzf flashplayer11_b2_install_lin_64_080811.tar.gz
# cp -i ./bin/flash-player-properties /usr/bin/
# cp -i ./usr/lib/kde4/kcm_adobe_flash_player.so /usr/lib/kde4/
# cp -i ./usr/share/applications/flash-player-properties.desktop /usr/share/applications/
# cp -i ./usr/share/icons/hicolor/16x16/apps/flash-player-properties.png /usr/share/icons/hicolor/16x16/apps/
# cp -i ./usr/share/icons/hicolor/24x24/apps/flash-player-properties.png /usr/share/icons/hicolor/24x24/apps/
# cp -i ./usr/share/icons/hicolor/32x32/apps/flash-player-properties.png /usr/share/icons/hicolor/32x32/apps/
# cp -i ./usr/share/icons/hicolor/48x48/apps/flash-player-properties.png /usr/share/icons/hicolor/48x48/apps/
# cp -i ./usr/share/pixmaps/flash-player-properties.png /usr/share/pixmaps/

  • Restart firefox