[PLEASE TEST] emit "EjectPressed" signal on optical drive
Kay Sievers
kay.sievers at vrfy.org
Thu Oct 27 19:01:21 PDT 2005
On Tue, Oct 25, 2005 at 10:46:22AM +0100, Richard Hughes wrote:
> On Tue, 2005-10-25 at 01:04 +0200, Kay Sievers wrote:
> > Hi,
> > we had something like this in the old version of HAL. That time a lot
> > of drives did not support the eject event properly.
> >
> > Let's try if it works with our current boxes. "dbus-monitor --system"
> > should show the event if you press the button of your optical drive.
> >
> > Please guys test and report back if it works or not, to see if it's
> > worth to put that back.
>
> Kay:
>
> On my USB2 external DVD writer I get the event when cdrom eject pressed:
>
> *** lshal: device_condition,
> udi=/org/freedesktop/Hal/devices/storage_model_DVDRW_SOHW_1673S
> condition_name=EjectPressed
> condition_details=
>
> But on my laptop internal DVD drive I get nothing (with no adverse
> affects) -- which isn't surprising, this Toshiba is full of oddities.
Hmm, we've tested it on 5 boxes now and all of them work.
> I think this condition should defiantly be emmitted by HAL (and used by
> g-v-m) as it improves the user operation of the system.
Yeah, it's comitted.
> My girlfriend got well confused when I said she had to right click the
> icon on the desktop before she could eject a cdrom. If g-v-m unmounts
> and ejects the drive (assuming no-one has files open) on the
> EjectPressed event, then it would be *so* new-user friendly.
Sure, if there is a button, you will definitely want to use it. Also telling
the reason why the stupid computer doesn't want to give you the disk back
when you press the button would be nice. :)
Many thanks for testing,
Kay
More information about the hal
mailing list