Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396357 - sys-fs/udisks: add kernel config check to prevent CD/DVD cannot eject to load disc issue
Summary: sys-fs/udisks: add kernel config check to prevent CD/DVD cannot eject to load...
Status: RESOLVED DUPLICATE of bug 319829
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-28 21:26 UTC by Chenli Tien
Modified: 2011-12-30 12:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chenli Tien 2011-12-28 21:26:41 UTC
Scenario:

1. /dev/cdrom is not created.
2. Eject the tray using the eject button on device, tray will open half, then close so I don't have a chance to load any disc.
3. Disc can be ejected by 'cdrecord -eject' command, however, tray can open fully but then close by itself.
4. Case 2 & 3 just happen after I log in GNOME, I can eject disc in CLI before starting GNOME, however after then they still fail to eject disc/tray.

I suspect something wrong with my GNOME configuration but don't know where is it?
Comment 1 Rafał Mużyło 2011-12-28 21:49:14 UTC
What does 'lspci -k' print ?
Comment 2 Chenli Tien 2011-12-28 22:22:36 UTC
Output of 'lspci -k':

00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: agpgart-intel
	Kernel modules: intel-agp
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: i915
	Kernel modules: i915
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
	Subsystem: Intel Corporation Device 1999
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: HDA Intel
	Kernel modules: snd-hda-intel
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci-hcd
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci-hcd
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel modules: iTCO_wdt
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: PIIX_IDE
00:1f.2 SATA controller: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: ahci
	Kernel modules: ahci
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: i801_smbus
	Kernel modules: i2c-i801
00:1f.4 Performance counters: Intel Corporation Device 266b (rev 04)
06:08.0 Ethernet controller: Intel Corporation 82562EM/EX/GX - PRO/100 VM (LOM) Ethernet Controller Mobile (rev 04)
	Subsystem: Intel Corporation Device 1999
	Kernel driver in use: e100
	Kernel modules: e100

=============================================================================

The drive info returned by hdparm:

/dev/hda:
SG_IO: questionable sense data, results may be incorrect

 Model=HL-DT-STDVD-RAM GSA-H22N, FwRev=1.02, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=unknown, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 *udma4 
 AdvancedPM=no
 Drive conforms to: Unspecified:  ATA/ATAPI-2,3,4,5

 * signifies the current active mode

============================================================================

This drive is a IDE drive plugged on PATA interface of ICH6.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-12-29 03:35:25 UTC
I have also seen this behavior, but had not been motivated enough to find the cause :/
Comment 4 Rafał Mużyło 2011-12-29 04:43:32 UTC
Well, PIIX_IDE, /dev/hda...
Isn't this a big enough hint ?
Comment 5 Chenli Tien 2011-12-29 04:51:15 UTC
(In reply to comment #4)
> Well, PIIX_IDE, /dev/hda...
> Isn't this a big enough hint ?

I don't think this matter too much, after all, the same kernel wasn't changed at all for long ago -- and it works well before I log into GNOME - unless there is a known issue between PIIX_IDE and GNOME.
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-12-29 05:12:29 UTC
The system where I see the same issue uses a PATA dvd drive (/dev/sr0) on a motherboard with nvidia nforce chipset (pata_amd kernel module). I really don't think this is hardware-related :)
Comment 7 Rafał Mużyło 2011-12-29 16:04:06 UTC
@comment 5: no, that's a well known issue (and an upstream WONTFIX) with CONFIG_IDE and udisks.
@comment 6: in such case, it's either a different problem or you have both types of the driver active and you're getting a conflict.
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-12-29 16:56:19 UTC
It looks like there is a fix for cd eject button race conditions in kernel 2.6.37 and higher, but it's enabled only under >=udev-172 (masked on Gentoo): http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=c5a41da949
Comment 9 Rafał Mużyło 2011-12-29 23:12:15 UTC
(In reply to comment #8)
> It looks like there is a fix for cd eject button race conditions in kernel
> 2.6.37 and higher, but it's enabled only under >=udev-172 (masked on Gentoo):
> http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=c5a41da949

That's not exactly the same problem.
You should also remember, that udev has dropped support for CONFIG_IDE a few commits earlier: http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=ecf61aa7fdb5b7e9e19f06584caee9b5eb1c7350.
Comment 10 Chenli Tien 2011-12-30 02:01:04 UTC
Thanks for this hint, I remove the legacy IDE driver and config the ata_piix. This solve the tray eject problem, even in GNOME. Thanks for your hints!
Comment 11 Pacho Ramos gentoo-dev 2011-12-30 10:49:33 UTC
Not sure if we could improve the visibility of this requirement to prevent more people hitting this issue :/
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-12-30 11:30:49 UTC
Add kernel config check in udisks ebuild is trivial.
Comment 13 Pacho Ramos gentoo-dev 2011-12-30 11:33:44 UTC
(In reply to comment #12)
> Add kernel config check in udisks ebuild is trivial.

Nice (I was unsure about proper package to add the check ;))
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2011-12-30 12:16:20 UTC
fixed some year+ ago already

*** This bug has been marked as a duplicate of bug 319829 ***