lkml.org 
[lkml]   [2008]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: CD tray closes spontaneously after opening it
Date
On Tuesday 30 September 2008, Tony Vroon wrote:
> On Tue, 2008-09-30 at 12:47 +0200, Frans Pop wrote:
> > Since 2.6.27 I've had several times, but not always, that after I
> > open the CD tray by pressing the eject button it spontaneously closes
> > after a short delay. The delay varies between ~0 and ~2 seconds.
>
> For the record, I had this on my Gentoo system. It turned out that HAL
> was responsible. (So it may not be a kernel bug at all)
>
> Do see this report:
> http://bugs.gentoo.org/show_bug.cgi?id=230886

Thanks for the link.

It cannot be hal in my case as I've disabled polling by hal for both
drives using the 'hal-disable-polling' command.

The bug report also mentions udev, but I'm not sure if that's it either
as the bit in the report is about sr* devices, which is SCSI/SATA and
the patch linked there is in Debian's udev.
The udev changelog for Debian has:
udev (0.125-4) unstable; urgency=medium
* 60-persistent-storage.rules: do not run vol_id on media tray open
events or the kernel will close the tray again.

Hmm, in Debian unstable /etc/udev/rules.d/60-persistent-storage.rules
also has:
# skip removable ide devices, because open(2) on them causes an events loop
KERNEL=="hd*[!0-9]", ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", \
GOTO="persistent_storage_end"
I wonder if we've got a simple case of a typo here: ide-cs instead of
ide-cd? However, there is such a thing as an ide-cs driver (legacy driver
for PCMCIA IDE/ATA disk cards).
But it does seem logical that rule should also cover IDE CDs...

Cheers,
FJP


\
 
 \ /
  Last update: 2008-09-30 14:03    [from the cache]
©2003-2011 Jasper Spaans