Re: cd-tray immediately closed after it has been opened

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 3, 2008 at 19:38, Christian Krause <chkr@xxxxxxxxxxx> wrote:
> Kay Sievers wrote:
>>
>> Ah, great, thanks for the test. We might just be able to skip optical
>> drives if cdrom_id did not find a valid media. Does adding this rule
>> (ID_CDROM_MEDIA_TRACK_COUNT) fix the unwanted tray closing?
>>
>> Thanks,
>> Kay
>>
>> --- a/rules/rules.d/60-persistent-storage.rules
>> +++ b/rules/rules.d/60-persistent-storage.rules
>> @@ -52,6 +52,8
>>
>>  # skip unpartitioned removable media devices from drivers which do
>> not send "change" events
>>  ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1",
>> GOTO="persistent_storage_end"
>> +# skip optical drives without media
>> +ENV{DEVTYPE}=="disk", KERNEL=="sr*",
>> ENV{ID_CDROM_MEDIA_TRACK_COUNT}!="?*", GOTO="persistent_storage_end"
>>
>
> Sorry for the late answer. I've tried out the patch and it solves the
> problem for me. Thanks!

It's part of udev 126. Thanks a lot for your help.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux