You are not logged in.
I've had this problem for a while now (playing CDs used to work fine), but I'm at a loss as to what to do.
If I boot the PC with a CD in the drive, I can play it fine (e.g. using VLC under XFCE). If I eject the disc and insert another one, the "Audio Disc" icon appears on my desktop (as do other attached storage devices), but if I try to play a CD it fails. Running the command vlc cdda://dev/sr0 as a user gives the following error:
VLC media player 1.1.12 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x186f120] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Blocked: call to setlocale(6, "")
Blocked: call to setlocale(6, "")
(process:1806): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
[0x1f09970] main input error: open of `cdda://dev/sr0' failed: (null)I notice that the udev wiki page says that drives loaded with the ide_cd_mod module aren't supported by udev, but even though it's an IDE drive, it appears as /dev/sr0 so I presume the drive isn't being loaded with ide_cd_mod...
I don't really know where to begin trying to identify what's causing the problem. Can anyone offer any suggestions?
Thanks in advance :-)
Last edited by esuhl (2011-11-19 05:46:06)
Offline
How are you starting xfce? Do you have "dbus-launch" in .xinitrc?
Registered Linux user #436067
Offline
I think my .xinitrc file tests to see if dbus is running and loads it if it isn't. Here's the file:
## test for an existing bus daemon, just to be safe
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
## if not found, launch a new one
eval 'dbus-launch --sh-syntax --exit-with-session'
echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
fi
exec ck-launch-session startxfce4Last edited by esuhl (2011-10-16 02:46:13)
Offline
I think my .xinitrc file tests to see if dbus is running and loads it if it isn't. Here's the file:
## test for an existing bus daemon, just to be safe if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then ## if not found, launch a new one eval 'dbus-launch --sh-syntax --exit-with-session' echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS" fi exec ck-launch-session startxfce4
Put "dbus-launch" after "ck-launch-session".
Registered Linux user #436067
Offline
Thanks - I've just tried that but it didn't appear to make any difference...
Offline
The drive works fine when I boot into Windows XP or 7, so I assumed it couldn't be a hardware fault, but I tried a different CD drive anyway and Arch now plays newly-inserted CDs as it should.
So, I presume that either the original drive has a hardware fault that Windows ignores or "corrects", or there's a problem with my Arch installation that specifically affects this particular model of drive...
I really want to get the original drive working (as the new one can't read DVDs), but I'm stumped!
I'd really appreciate it if anyone has any other suggestions... :-)
Last edited by esuhl (2011-10-22 00:16:04)
Offline
First of all I assume you are a member of the audio, optical and storage groups? If not enable those groups for you the user. Also, show us the output of "dmesg | grep -i sr0" . In the past I have at times repaired such optical drive faults by upgrading their firmware. You need the exact model number of that optical drive and then go to the manufacturer's website and see if there is a firmware upgrade for the drive.
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
Do you have the symlinks mentioned in the Beginners Guide?
Offline
Thanks for your replies.
First of all I assume you are a member of the audio, optical and storage groups? If not enable those groups for you the user. Also, show us the output of "dmesg | grep -i sr0" . In the past I have at times repaired such optical drive faults by upgrading their firmware. You need the exact model number of that optical drive and then go to the manufacturer's website and see if there is a firmware upgrade for the drive.
I'm a member of audio, optical and storage groups, but I did find an updated firmware version which I've just used to flash the drive. Unfortunately the problem persists.
The output of "dmesg | grep -i sr0" is as follows. I don't know if it matters, but it's an IDE drive as opposed to SATA:
[ 4.583371] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[ 4.583472] sr 0:0:0:0: Attached scsi CD-ROM sr0Do you have the symlinks mentioned in the Beginners Guide?
Yes - I forgot to do that initially when I installed Arch, but I saw that page and modified /etc/rc.local accordingly a month or two ago whilst I was trying to get the CD/DVD drive working properly (I've been trying to fix this issue for quite a while now!)
Offline
I also get strange error messages during boot - I'm not sure if that could indicate what's causing the problem:
Moderator Edit: Change image tags to url tags. 380K images are way beyond our policy [ewaller]
Last edited by ewaller (2011-10-25 18:02:11)
Offline
Those look awfully like hardware fault errors to me. the kernel is pretty good at finding faulty drives in its initialization. If I were a betting man I would say your optical drive is faulty,
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
Moderator Edit: Change image tags to url tags. 380K images are way beyond our policy [ewaller]
Ahhh... Sorry about that! Duly noted.
Those look awfully like hardware fault errors to me. the kernel is pretty good at finding faulty drives in its initialization. If I were a betting man I would say your optical drive is faulty,
Yeah - I thought that might be the case. It's just so strange that the drive works perfectly under Windows XP and 7....
I'll give it a few days in case anyone else has any ideas to work round the issue before I mark it as solved.
Is there some way to manually re-load the CD drivers after I insert a CD to see if that allows applications like VLC to "see" the disc?
Offline
I just discovered a similar problem with my video DVDs. I found the solution here
Offline
Well, I got rid of all my udev rules (for mounting removable drives) and the problem seems to have disappeared! I thought I'd already tried that, so maybe an update fixed the problem (although it's probably more likely to be something stupid I've done).
Anyway, I'll mark this as solved. Thank you all for your help... :-)
Offline