Apple media keyboard eject key only opens cd tray, doesn't close it

Bug #37785 reported by plush
This bug report is a duplicate of:  Bug #91873: eject -T doesn't close the tray. Edit Remove
20
Affects Status Importance Assigned to Milestone
gnome-mount
New
Undecided
Unassigned
eject (Ubuntu)
Confirmed
Wishlist
Unassigned
gnome-volume-manager (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

The apple media keyboard key opens the tray nicely on my Powermac G5, new world, but won't close it. It displays the nice ejection graphic similar to OSX's. I can, however, close the tray in xterm by typing "eject -t".

Tags: apple
Revision history for this message
plush (plush) wrote :

I've heard that upgrading the eject module to 2.1.4 may help, since it's switch "-T", opens the tray if closed and closes if open. But I haven't been able to verify this on a PPC.

Revision history for this message
Phillip Calvin (phillipc) wrote :

Under eject 2.0.13, it closes the tray fine. However, once it closes the tray, it opens again. This seems to have something to do with eject's -a (automatic) option and GNOME auto-mounting the media. Has anyone else seen this problem? Dapper on a G4.

Revision history for this message
Simon Law (sfllaw) wrote :

Please update to a newer version of eject, that supports the --toggle
option.

Changed in eject:
status: Unconfirmed → Confirmed
Revision history for this message
Simon Law (sfllaw) wrote :

In gconf, /desktop/gnome/volume_manager/eject_command should be
/bin/eject -T. After a new upstream version of eject, of course.

Changed in gnome-volume-manager:
status: Unconfirmed → Confirmed
Revision history for this message
Timothy Smith (tas50) wrote :

Can you test this on Edgy RC so we can see if this problems still exists?

Revision history for this message
plush (plush) wrote : Re: [Bug 37785] Re: Apple media keyboard eject key only opens cd tray, doesn't close it

Yes unfortunately the problem is still there. The tray opens, but won't
close, displaying a square with an icon that I assume should be an eject
symbol, but with a red X instead of the correct picture. I have to
manually type "eject -t" to close the tray.

On Sat, 2006-10-21 at 21:11 +0000, Timothy Smith wrote:
> Can you test this on Edgy RC so we can see if this problems still
> exists?
>

Revision history for this message
didier (did447-deactivatedaccount) wrote :

Still there with feisty

The problem is that ioctl(fd, CDROMEJECT) always return EIO even when it works so eject -T doesn't try to call ioctl (fd, CDROMCLOSETRAY)

Maybe it's only a Mac linux kernel issue (timeout or sense code).

Revision history for this message
didier (did447-deactivatedaccount) wrote :

A work around, at least on feisty, is to disable the cd key in gnome shortcut and let pbbuttonsd do the right thing.

Revision history for this message
Andrew Flegg (aflegg) wrote :

This also affects non-Apple hardware using an eject key.

gnome-volume-manager no longer (in Feisty) supports the eject_command key, and gnome-mount is hardcoded to use "eject". However, it doesn't specify a path.

Therefore a workaround is to have an executable shell script in your path ahead of /usr/bin, called 'eject' containing '/usr/bin/eject -T'.

gnome-mount should be fixed, however, to either pass -T or be customisable.

Revision history for this message
Florian Schröck (mael-reverted) wrote :

the bug is still present in gutsy, this is very annoying

Revision history for this message
Alex Lowe (lengau) wrote :

Just a note: eject -T does NOT close the drawer on my system.

$ eject -Tv hdc
eject: device name is `hdc'
eject: expanded name is `/dev/hdc'
eject: `/dev/hdc' is not mounted
eject: `/dev/hdc' is not a mount point
eject: `/dev/hdc' is a multipartition device
eject: toggling tray
ioctl: Input/output error

Revision history for this message
Andrew Flegg (aflegg) wrote :

See also #91873 for a patch to ignore the "tray open" error when trying to close the tray.

Revision history for this message
Brad Jensen (bradwjensen) wrote :

I have Hardy Heron (Alpha 6) with 'Eject 2.1.5' installed and the tray doesn't close for me on my new slim apple keyboard.

- Why are all these small, yet, quality details taking forever to fix?

Revision history for this message
Martin Pitt (pitti) wrote :

BradwJensen [2008-03-13 18:11 -0000]:
> - Why are all these small, yet, quality details taking forever to fix?

Because we do not have all the hardware in the world, so that we could
do it ourselves. :/

Revision history for this message
Belcirelk (beliveau) wrote :

see Bug : https://bugs.launchpad.net/ubuntu/+source/eject/+bug/91873 for a solution. It works for me on a intel Mac with USB alu keyboard.

Revision history for this message
Steve Beattie (sbeattie) wrote :

As mentioned by others, https://bugs.launchpad.net/ubuntu/+source/eject/+bug/91873 may be the same issue. It would be great if someone with an apple media keyboard could verify that the updated eject package in hardy-proposed does or does not address the issue for those keyboards. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Brad Jensen (bradwjensen) wrote :

@Steve Beattie

I have the Slim USB Aluminum Mac Keyboard (new version). I have -proposed allowed and recently did an Update of regular system items. Now the Eject media key both opens and closes the disc drive. Before the update it would only open the drive.

Now that it works for me, I was wondering how I get it to open my other Disc Drive rather than the one it does open (I have two disc drives and only my bottom one opens with the media key.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.