[Bug 890592] Re: CD drive eject button does not work
sghpunk
sgh at mail.zp.ua
Thu Jan 17 10:52:51 UTC 2013
I use xubuntu 12.04 with 3.5.0-22 kernel
$ uname -a
Linux Acer 3.5.0-22-generic #34~precise1-Ubuntu SMP Wed Jan 9 21:45:40 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
I found that kernel polling does not work with some optical drives, even if I do:
echo 2000 > /sys/block/sr?/events_poll_msecs
echo 2000 > /sys/module/block/parameters/events_dfl_poll_msecs
I can't eject my embedded notebook drive (ID_SERIAL=HL-DT-STDVDRAM_GT31N_KZLAC5D2847) with eject button, but eject /dev/sr0 is working, and eject -i 0 /dev/sr0 is working to.
And no udev events is generated while pressing eject button.
I test this with external USB drive to (ID_SERIAL=TS8XDVDR_Transcend_613143333435363738394B4C-0:0).
But with this drive eject button is working, and udev events is generated.
Ok, but I found more. With those external USB drive eject button stops
working while disk is mounted. And while disk is mounted udev receive no
eject event from drive eject button. But if I unmount disk by hands
after pressing drive eject button, drive ejects itself (and udev receive
change event). Seems like while disk is mounted, kernel eject event is
waits in some kind of queue.
For workaround I was trying to restore udisks polling (11.04 behavior)
writing some udev rules to set ATTR{events_poll_msecs}="-1" and disable
tray locking on my devices. It's working, udisks polling is enabled, but
again while disk is mounted I can eject it with drive eject button, but
no udisks/udev events is generated, and no unmount is performed, I have
to unmount it manually.
I even cannot enable old udisks behavior that was working fine for me in
11.04.
Fix it please! Two years is passed.
** Tags added: apport-collected
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/890592
Title:
CD drive eject button does not work
Status in Nautilus:
Unknown
Status in “linux” package in Ubuntu:
Confirmed
Status in “udev” package in Ubuntu:
Fix Released
Bug description:
PROBLEM
On my laptop, pressing the hardware "eject" button on the DVD drive
will pop out the disc, but it will still be treated as mounted by
Nautilus. If I then put in another disc, it will still think that the
files from the previous disc are there, as though it had not been
ejected. This produces an error when I try to manipulate those files.
I can't access the files from the new disc until I eject the old one
using the button on Nautilus.
HOW TO REPRODUCE
1. Put a CD or DVD in the drive, close it, and let Nautilus mount it.
2. Eject it using the hardware eject key.
3. Put in a new CD or DVD.
EXPECTED BEHAVIOR
Nautilus will know when I ejected a disc.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: nautilus 1:3.2.1-0ubuntu2
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Tue Nov 15 03:58:34 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nautilus/+bug/890592/+subscriptions
More information about the foundations-bugs
mailing list