[Bug 283316] Re: CD-ROM tray closes automatically after eject

Mihi jakl.michael at gmail.com
Wed Jan 7 20:10:43 UTC 2009


I've still got a the problem with proposed enables (and upgraded). It
did solve the closing when no disk was present, but when a disk was
mounted it got closed right after opening. The fix thtat workes was to
add

ENV{DEVTYPE}=="disk", KERNEL=="sr*", ATTR{removable}=="1",
GOTO="persistent_storage_end"

in line 55 of /etc/udev/rules.d/60-persistent-storage.rules. Now it
looks like this:

 53 # skip unpartitioned removable media devices from drivers which do not send "change" events
 54 ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1", GOTO="persistent_storage_end"
 55 ENV{DEVTYPE}=="disk", KERNEL=="sr*", ATTR{removable}=="1", GOTO="persistent_storage_end"
 56 # skip optical drives without media
 57 ENV{DEVTYPE}=="disk", KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_COUNT}!="?*", GOTO="persistent_storage_end"

My drive is a (P)ATA drive from Samsung:
product: DVD-ROM SH-D162D
vendor: TSSTcorp

I'm on Intrepid 32bit with udev 124-9.

In the end I collapsed all three lines to

ENV{DEVTYPE}=="disk", ATTR{removable}=="1",
GOTO="persistent_storage_end"

which seems to solve the problem too. (Proposed by Livid
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/283316/comments/49)

HTH,
Michael

-- 
CD-ROM tray closes automatically after eject
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to Linux.




More information about the kernel-bugs mailing list