On Wed, Apr 22, 2009 at 15:34, Martin Pitt <martin.p...@ubuntu.com>
wrote:

>> We changed it yesterday to use an ID_CDROM_MEDIA key:
>>   
>> http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=f907449eee3f58fafafee0658e80578b1dbb2722
>>
>> Would be good to know, if that works in the case you see the wrong values.
>
> I got a reply from two testers, unfortunately it doesn't see to help
> at all. With the patch, he gets this on eject:
>
> UDEV  [1240402978.959576] change   
> /devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr1 (block)
> ACTION=change
> SUBSYSTEM=block
> DEVTYPE=disk
> ID_CDROM=1
> ID_CDROM_DVD=1
> ID_CDROM_MEDIA=1

Hmm, so we need to find a more reliable way to check for a media. We
probably need to ask the kernel with some cdrom ioctl() instead of
just talking SG_IO here. In the hope, the ioctls do more checks, to
support broken hardware like this.

Kay

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to