FS#20632 - [kde] doesn't recognise audio CD

Attached to Project: Arch Linux
Opened by dyscoria (dyscoria) - Friday, 27 August 2010, 11:06 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 08 January 2011, 01:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When inserting an audio CD into my optical drive, KDE does not recognise any new event and the "Device Notifier" applet does not popup with a message.

Amarok does not show an audio CD and cannot be used to play the CD.

However, "mplayer cdda://" works fine to play the CD, and typing "audiocd:" into the location bar in Dolphin allows me to browse the contents of the CD.

Additional info:
KDE 4.5.0
Kernel 2.6.35.3-1
dbus 1.2.24-1
udev 161-1
hal 1.5.14-4
kdemultimedia-kioslave 4.5.0-1
amarok 2.3.1-1

Steps to reproduce:
1. Insert Audio CD
2. Nothing happens
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Saturday, 08 January 2011, 01:52 GMT
Reason for closing:  Works for me
Comment by Laurent Carlier (lordheavy) - Friday, 27 August 2010, 14:12 GMT
works for me (except amarok that doesn't play cd), vlc works perfectly
Comment by dyscoria (dyscoria) - Friday, 27 August 2010, 14:50 GMT
By working do you mean that the Device Notifier pops up with a notification when you insert an audio CD?

VLC may well work fine. So does mplayer and SMPlayer. But amarok does not when it should :( and presumably this is due to KDE being unable to recognise when an audio CD has been inserted.
Comment by Andrew Munkres (amunkres) - Saturday, 28 August 2010, 20:40 GMT
This seems to be caused by ConsoleKit telling HAL to stop polling the CD drive:

https://bbs.archlinux.org/viewtopic.php?id=103361

If the polling is turned off, it can be turned on by running "hal-disable-polling --enable-polling --device /dev/cdrom". However, ConsoleKit will just turn it off again the next time you start a new KDE session or resume from suspend-to-disk, and I don't know how to make ConsoleKit stop doing that. (I just stopped using ConsoleKit, by using "exec startkde" as my .xinitrc contents.)
Comment by Laurent Carlier (lordheavy) - Saturday, 28 August 2010, 20:59 GMT
@dyscoria

Yes the popup is working, but i'd have to enable polling with hal-disable-polling --enable-polling --device /dev/cdrom (see amunkres post)
Comment by Andrew Munkres (amunkres) - Saturday, 28 August 2010, 21:00 GMT
Actually, maybe not -- I tried it again just now, and ConsoleKit doesn't seem to be disabling the polling anymore. (Last time I tried it, 6 days ago, it did disable the polling. I did run a system update since then, which updated KDE to 4.5.)
Comment by C. Ammeraal (christopher72) - Sunday, 05 September 2010, 15:47 GMT
I don't think this has anything to do with the polling being turned off. When doing sudo hal-disable-polling --enable-polling --device /dev/sr0, it always tells me that polling is turned on already. Still, the device does not consistently appear in the Device Notifier (though sometimes it does, seems to be random). The contents of the CD are shown fine when typing AudioCD:/ in Dolphin.

I'm also sure it's not hardware-related, since I have ubuntu 10.10 beta installed on the same hardware. It doesn't use HAL, and perfectly mounts all my CD's/DVD's. Which leads me to conclude that this is (yet another) HAL-related issue, maybe combined with KDE 4.5.0 / 4.5.1 (using the latter).

hal 0.5.14-4
Linux laptop 2.6.35-ARCH #1 SMP PREEMPT Fri Aug 27 17:14:28 CEST 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux

Loading...