From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Pitt Date: Wed, 22 Apr 2009 13:34:03 +0000 Subject: Re: CD-ROM tray closes automatically after eject due to random Message-Id: <20090422133403.GM3989@piware.de> List-Id: References: <20090421072509.GF3973@piware.de> In-Reply-To: <20090421072509.GF3973@piware.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.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: > http://git.kernel.org/?p=3Dlinux/hotplug/udev.git;a=3Dcommit;h=F907449e= ee3f58fafafee0658e80578b1dbb2722 >=20 > 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/t= arget1:0:0/1:0:0:0/block/sr1 (block) ACTION=3Dchange SUBSYSTEM=3Dblock DEVTYPE=3Ddisk ID_CDROM=3D1 ID_CDROM_DVD=3D1 ID_CDROM_MEDIA=3D1 ID_CDROM_MEDIA_DVD=3D1 ID_CDROM_MEDIA_STATE=3Dblank ID_CDROM_MEDIA_SESSION_NEXTF336 ID_CDROM_MEDIA_SESSION_COUNT3024 ID_CDROM_MEDIA_TRACK_COUNTX368 [...] (full log in the Launchpad bug) Thanks, Martin --=20 Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)