From: Martin Pitt <martin.pitt@ubuntu.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: CD-ROM tray closes automatically after eject due to random
Date: Wed, 22 Apr 2009 13:34:03 +0000 [thread overview]
Message-ID: <20090422133403.GM3989@piware.de> (raw)
In-Reply-To: <20090421072509.GF3973@piware.de>
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ù07449eee3f58fafafee0658e80578b1dbb2722
>
> 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_NEXTF336
ID_CDROM_MEDIA_SESSION_COUNT3024
ID_CDROM_MEDIA_TRACK_COUNTX368
[...]
(full log in the Launchpad bug)
Thanks,
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
next prev parent reply other threads:[~2009-04-22 13:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-21 7:25 CD-ROM tray closes automatically after eject due to random Martin Pitt
2009-04-21 8:52 ` Kay Sievers
2009-04-21 9:14 ` Martin Pitt
2009-04-22 13:34 ` Martin Pitt [this message]
2009-04-22 22:16 ` Kay Sievers
2009-04-23 7:35 ` Martin Pitt
2009-04-23 13:19 ` Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090422133403.GM3989@piware.de \
--to=martin.pitt@ubuntu.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).