Hello Kay,
Kay Sievers [2009-04-21 10:52 +0200]: > Nice hardware! :)
If only it was real!
> The problem is that there are other devices which report a blank media > for non-blank ones, so this rule would break these.
Ah, understood. Yay buggy CD-ROM firmware.
> 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 ID_CDROM_MEDIA_DVD=1 ID_CDROM_MEDIA_STATE=blank ID_CDROM_MEDIA_SESSION_NEXT=46336 ID_CDROM_MEDIA_SESSION_COUNT=33024 ID_CDROM_MEDIA_TRACK_COUNT=58368 [...]
(full log in the Launchpad bug)
Thanks,
Martin
-- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Hello Kay,
Kay Sievers [2009-04-21 10:52 +0200]:
> Nice hardware! :)
If only it was real!
> The problem is that there are other devices which report a blank media
> for non-blank ones, so this rule would break these.
Ah, understood. Yay buggy CD-ROM firmware.
> We changed it yesterday to use an ID_CDROM_MEDIA key: git.kernel. org/?p= linux/hotplug/ udev.git; a=commit; h=f907449eee3f5 8fafafee0658e80 578b1dbb2722
> http://
>
> 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) MEDIA_DVD= 1 MEDIA_STATE= blank MEDIA_SESSION_ NEXT=46336 MEDIA_SESSION_ COUNT=33024 MEDIA_TRACK_ COUNT=58368
ACTION=change
SUBSYSTEM=block
DEVTYPE=disk
ID_CDROM=1
ID_CDROM_DVD=1
ID_CDROM_MEDIA=1
ID_CDROM_
ID_CDROM_
ID_CDROM_
ID_CDROM_
ID_CDROM_
[...]
(full log in the Launchpad bug)
Thanks,
Martin
-- www.piware. de
Martin Pitt | http://
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)