FS#25609 - [udev] Ejecting DVD via hardware button fails
Attached to Project:
Arch Linux
Opened by H.pferd (stosch) - Tuesday, 16 August 2011, 16:45 GMT
Last edited by Tom Gundersen (tomegun) - Wednesday, 09 November 2011, 00:55 GMT
Opened by H.pferd (stosch) - Tuesday, 16 August 2011, 16:45 GMT
Last edited by Tom Gundersen (tomegun) - Wednesday, 09 November 2011, 00:55 GMT
|
Details
Description:
Since new udev 173 I'm not able to eject a DVD via the trays hardware button when the tray is locked (for example after watching a dvd). When I start thunar (which starts udisks-daemon) it works again. I read I don't know what exactly happens when the hardware button is pressed so even this seems to be caused by udevs new locking function it might be related to another software. So excuse me if the [udev] in title might be misleading. Just tell me if you need other some logs.. Additional info: udev 173-3 drive type: [ 2.084896] scsi 1:0:0:0: CD-ROM LITE-ON DVDRW LDW-851S GS0C PQ: 0 ANSI: 5 Steps to reproduce: Insert disk, start vlc or another software and press the eject button |
This task depends upon
Closed by Tom Gundersen (tomegun)
Wednesday, 09 November 2011, 00:55 GMT
Reason for closing: Fixed
Additional comments about closing: This is fixed with linux 3.1, which is now in testing.
Wednesday, 09 November 2011, 00:55 GMT
Reason for closing: Fixed
Additional comments about closing: This is fixed with linux 3.1, which is now in testing.
When it is running I get:
KERNEL[3221.004075] change /devices/pci0000:00/0000:00:02.5/host1/target1:0:0/1:0:0:0/block/sr0 (block)
UDEV [3224.711660] change /devices/pci0000:00/0000:00:02.5/host1/target1:0:0/1:0:0:0/block/sr0 (block)
KERNEL[3225.004651] change /devices/pci0000:00/0000:00:02.5/host1/target1:0:0/1:0:0:0/block/sr0 (block)
UDEV [3225.059226] change /devices/pci0000:00/0000:00:02.5/host1/target1:0:0/1:0:0:0/block/sr0 (block)
The output with udisks-daemon running I attached to the file for better readability.
in-kernel polling needs to be enabled to detect button presses. This is usually done by udev by setting the value to 2000.
# echo 1000 > /sys/module/block/parameters/events_dfl_poll_msecs
fixes the problem?
As a temporary workaround, I suggest adding
echo 2000 > /sys/module/block/parameters/events_dfl_poll_msecs
to your rc.local.