You are not logged in.

#1 2011-10-15 20:13:29

esuhl
Member
From: UK
Registered: 2009-09-16
Posts: 140

[SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

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

#2 2011-10-15 21:38:22

oboedad55
Member
From: Baku
Registered: 2011-04-05
Posts: 392

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

How are you starting xfce? Do you have "dbus-launch" in .xinitrc?


Registered Linux user #436067

Offline

#3 2011-10-16 02:45:46

esuhl
Member
From: UK
Registered: 2009-09-16
Posts: 140

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

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

Last edited by esuhl (2011-10-16 02:46:13)

Offline

#4 2011-10-16 02:53:30

oboedad55
Member
From: Baku
Registered: 2011-04-05
Posts: 392

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

esuhl wrote:

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

#5 2011-10-18 04:30:24

esuhl
Member
From: UK
Registered: 2009-09-16
Posts: 140

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

Thanks - I've just tried that but it didn't appear to make any difference...

Offline

#6 2011-10-22 00:15:08

esuhl
Member
From: UK
Registered: 2009-09-16
Posts: 140

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

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

#7 2011-10-22 00:51:16

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

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

#8 2011-10-22 01:54:37

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

Do you have the symlinks mentioned in the Beginners Guide?

https://wiki.archlinux.org/index.php/Be … M_symlinks

Offline

#9 2011-10-25 16:47:50

esuhl
Member
From: UK
Registered: 2009-09-16
Posts: 140

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

Thanks for your replies.

lagagnon wrote:

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 sr0
thisoldman wrote:

Do you have the symlinks mentioned in the Beginners Guide?

https://wiki.archlinux.org/index.php/Be … M_symlinks

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

#10 2011-10-25 16:57:34

esuhl
Member
From: UK
Registered: 2009-09-16
Posts: 140

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

I also get strange error messages during boot - I'm not sure if that could indicate what's causing the problem:

http://i.imgur.com/wghl7.jpg



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

#11 2011-10-26 01:12:03

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

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

#12 2011-10-26 15:17:52

esuhl
Member
From: UK
Registered: 2009-09-16
Posts: 140

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

Moderator Edit:  Change image tags to url tags.  380K images are way beyond our policy [ewaller]

Ahhh... Sorry about that!  Duly noted.

lagagnon wrote:

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

#13 2011-10-26 17:12:03

electric_indigo
Member
Registered: 2011-05-12
Posts: 89

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

I just discovered a similar problem with my video DVDs. I found the solution here

Offline

#14 2011-11-19 05:45:28

esuhl
Member
From: UK
Registered: 2009-09-16
Posts: 140

Re: [SOLVED] Can't play audio CDs unless I boot with the CD in the drive..

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

Board footer

Powered by FluxBB