Today I upgraded my system from Fedora 7 to Fedora 8. The installation process went very smoothly. But once the installation was done, I started the long process of configuring it. That’s when I ran into the sound issue in Fedora 8 – and based on the forum posts, so did many others.
Basically, you get this error at KDE startup…
Sound Error Informational Message: Error while initializing the sound driver: device: default can't be opened for playback (Permission denied) The sound server will continue, using the null output device
You will not be able to play any sound – amarok will crash if you try to play anything. But if you run system-config-soundcard(or System -> Administration -> Soundcard Detection), you will be able to hear the test sound. That is because you are running it as root.
Solution 1 – Console-Kit Service
Did you turn of Console-Kit and avahi-daemon startup services using system-config-services? If so, go back and re-enable them.
- Run system-config-services(or System -> Administration -> Services)
- Find Console-Kit and enable it
- Find avahi-daemon, enable it
- Restart the system and see if that fixed the problem.
This worked for me – so I did not try any of the following solutions.
Solution 2 – alsa-plugin
If the first solution did not solve the problem, try removing the pulseaudio plugin for alsa by running this command.
yum remove alsa-plugins-pulseaudio
Solution 3 – Permissions
If neither of the above work, open
/etc/security/console.perms.d/50-default-perms and add this line to the top…
And at the end, add this line…
<console> 0666 <sound> 0600 root
Hopefully, your problems are solved by now. If not, here are some links to help you further…
- Bugzilla Bug 292201: ALSA mixer only usable as root
- Fixing Broken Sound in Fedora
- Fedora 8 & pulse audio – nonroot users have no sound Thread
- Pulse Audio Potential Issues
More about Fedora 8 in the next post.