Unable to play audio CD's in Kaffeine, Amarok or KsCD

This may/may not solve your problem however this is how I solved a problem I’m having with applications accessing audio CD’s

Yes, I find that I cannot access an Audio CD using either Kaffeine, grip, KsCD or any other audio player. In addition xine-check responds with the fact that /dev/cdrom and /dev/dvd do not exist.

Here’s how, in my case, I fixed the problem, two methods are given, the first is a temporary fix the second method is the one I would recommend which provides a permanent fix, ie after a reboot it still works.

As I had already determined /dev/cdrom and /dev/dvd don’t exist on my system. Maybe that’s because my CDROM drive is /dev/sr0, I don’t know, however if you create these two symbolic links you should now find that your audio apps can access the cdrom/dvd drive. Replace sr0 with whatever your device name of your cdrom happens to be.

Method 1 (don’t use this method as the links will disappear after a reboot, use method 2 instead)

ln -s sr0 /dev/cdrom
ln -s sr0 /dev/dvd

Method 2 (Use this for a permanent fix)

udev is responsible for populating the /dev/… directory, so we should really have udev do the job of creating the /dev/cdrom and /dev/dvd devices. Add the following two lines to the end of /etc/udev/rules.d/70-persistent-cd.rules

Added by steelskin to provide /dev/cdrom and /dev/dvd

SUBSYSTEM==“block”, KERNEL==“sr0”, SYMLINK+=“cdrom”, GROUP=“cdrom”, ENV{GENERATED}=“1”
SUBSYSTEM==“block”, KERNEL==“sr0”, SYMLINK+=“dvd”, GROUP=“cdrom”, ENV{GENERATED}=“1”

That’s two rules and each rule MUST be on one line. So two lines! otherwise it may not work. (Just in case it’s not obvious from the way the forum formats the posts)

If you already have a audio cd or dvd in the drive just eject and put it back and udev will now use the new rules to create /dev/cdrom and /dev/dvd. You should now find kaffeine, xine, KsCD, amarok will now work properly with audio cd’s.

Good Luck :slight_smile: