eject key doesn't work when disks are mounted

Bug #299194 reported by Mario Limonciello
18
Affects Status Importance Assigned to Milestone
GNOME Settings Daemon
Fix Released
Medium
gnome-settings-daemon (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs
Intrepid
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gnome-settings-daemon

It appears that machines that have a software eject key are not able to eject disks from gnome. In evaluating the cause of the problem, a lot of possible indicators show up.

Gnome-settings-daemon gets confused then because the keycode you press in X is not the keycode it is expecting since it uses XKeysymToKeycode.

=-----------=

Impact:
Any users that have non CD/DVD hardware eject keys are impacted.

Addressed:
All development of this patch was done with myself and upstream. Upstream has added the patch to trunk.

Regression Potential:
Users need to verify that their hotkeys that worked will still work. This code is very core to the design of how the keys get bound. On the flip side, It's quite possible that other hotkeys (such as Play/Pause) didn't work before either and will be fixed by this too. Eject is just the most obvious key.

Test Case:
1) Install an Ubuntu 8.10 system
2) Verify that at least one hotkey doesn't behave as expected when bound (such as Eject).
3) Verify in 'xev' that a keypress shows the keycode and that it isn't grabbed by any application.
4) Install the proposed package
5) Log out and back into your session
6) Verify that same key now works.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks for your work on it.

Changed in gnome-settings-daemon:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Triaged
Changed in gnome-settings-daemon:
status: New → Triaged
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-settings-daemon - 2.24.0-0ubuntu4

---------------
gnome-settings-daemon (2.24.0-0ubuntu4) jaunty; urgency=low

  * debian/patches/31_multikeycodes.patch:
    - Backported patch from rev 610 of gsd trunk.
    - Makes keysyms with multiple keycodes bound to them functional.
      This fixes cases such as where XF86Eject doesn't work. (LP: #299194)

 -- Mario Limonciello <email address hidden> Mon, 24 Nov 2008 16:11:01 -0600

Changed in gnome-settings-daemon:
status: Triaged → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into intrepid-proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in gnome-settings-daemon:
status: Triaged → Fix Committed
Revision history for this message
Nick Fox (nickj-fox) wrote :

gnome-settings-daemon:
  Installed: 2.24.0-0ubuntu3.2
  Candidate: 2.24.0-0ubuntu3.2
  Version table:
 *** 2.24.0-0ubuntu3.2 0
        500 http://us.archive.ubuntu.com intrepid-updates/main Packages
        500 http://us.archive.ubuntu.com intrepid-proposed/main Packages
        100 /var/lib/dpkg/status
     2.24.0-0ubuntu3 0
        500 http://us.archive.ubuntu.com intrepid/main Packages

With the new package it is still broken on my Dell Studio 15 with a software Eject. If the disk is mounted it will not eject.

Revision history for this message
Mario Limonciello (superm1) wrote :

Nick:

That's not the new package. The new package is 2.24.0-0ubuntu3.3

Can you do an apt-get update and try again?

Revision history for this message
Nick Fox (nickj-fox) wrote :

Wrong version, but with this version I have the same problem.

gnome-settings-daemon:
  Installed: 2.24.0-0ubuntu3.3
  Candidate: 2.24.0-0ubuntu3.3
  Version table:
 *** 2.24.0-0ubuntu3.3 0
        500 http://us.archive.ubuntu.com intrepid-proposed/main Packages
        100 /var/lib/dpkg/status
     2.24.0-0ubuntu3.2 0
        500 http://us.archive.ubuntu.com intrepid-updates/main Packages
     2.24.0-0ubuntu3 0
        500 http://us.archive.ubuntu.com intrepid/main Packages

Revision history for this message
Mario Limonciello (superm1) wrote :

did you make sure you logged out/in or at least restarted gnome-settings-daemon?

Revision history for this message
Mario Limonciello (superm1) wrote :

<superm1> can you run xev and try to press the key?
<superm1> see if it's caught there still?
<foxbuntu> nothing
<superm1> that means gnome is probably grabbing it still...
<superm1> if you kill gnome-settings-daemon, does it catch the key?
<foxbuntu> nope
<superm1> okay then you have a different problem with the studio 1535
<superm1> if it doesnt emit a keycode

So Nick's data point isn't useful since it doesn't emit a keycode when the eject key is pressed

Revision history for this message
Mario Limonciello (superm1) wrote :

Since we haven't gotten much good data from other users yet, here's what I've found testing with the package from -proposed:

* This fixes the Eject key on two unreleased Studio laptops
* This has no effect (no regressions nor improvements) on the following platforms:
   + Studio 1535
   + Studio 1537
   + Unreleased Inspiron Laptop
   + Latitude D630
   + Rocketfish bluetooth keyboard with multimedia keys
   + Studio 1535

Revision history for this message
Mario Limonciello (superm1) wrote :

Since we haven't gotten much good data from other users yet, here's what I've found testing with the package from -proposed:

* This fixes the Eject key on two unreleased Studio laptops
* This has no effect (no regressions nor improvements) on the following platforms:
   + Studio 1535
   + Studio 1537
   + Unreleased Inspiron Laptop
   + Latitude D630
   + Rocketfish bluetooth keyboard with multimedia keys

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-settings-daemon - 2.24.0-0ubuntu3.3

---------------
gnome-settings-daemon (2.24.0-0ubuntu3.3) intrepid-proposed; urgency=low

  * debian/patches/31_multikeycodes.patch:
    - Backported patch from rev 610 of gsd trunk.
    - Makes keysyms with multiple keycodes bound to them functional.
      This fixes cases such as where XF86Eject doesn't work. (LP: #299194)

 -- Mario Limonciello <email address hidden> Mon, 24 Nov 2008 16:11:01 -0600

Changed in gnome-settings-daemon:
status: Fix Committed → Fix Released
Changed in gnome-settings-daemon:
status: Unknown → Fix Released
Revision history for this message
Niklaas Baudet von Gersdorff (mail-niklaas-baudet) wrote :

i've got a Dell Studio 1555 with the same problem. the version of gnome-settings-daemon is 2.26.1-ubuntu2. if i try to track the key with xev, it wont work, terminal shows no reaction.

Changed in gnome-settings-daemon:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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