Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267672 - Eject button on Macbook does not generate keycodes after upgrade of Xorg to use evdev
Summary: Eject button on Macbook does not generate keycodes after upgrade of Xorg to u...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 18:30 UTC by Martin Mlynar
Modified: 2011-09-21 20:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my fdi file which enables Macbook eject key (12-eject.fdi,343 bytes, text/plain)
2009-04-27 18:31 UTC, Martin Mlynar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mlynar 2009-04-27 18:30:24 UTC
After upgrading Xorg to version 1.5 my macbook eject key stopped working. It even stopped producing keycodes (no events seen in xev).

Problem is that input.x11_driver is set by hal to evdev only to devices with capabilities containing input.mouse, input.touchpad or input.keys in default instalation.

Eject key on Macbook's keyboard could be found on another (/dev/input/event6 in my case) input device than rest of a keyboard (/dev/input/event5 for me). And /dev/input/event6 has capabilities info.capabilities = {'input', 'button'} (string list)

$ lshal -u /org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if2_logicaldev_input udi = '/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if2_logicaldev_input'
  button.has_state = false  (bool)
  info.addons.singleton = {'hald-addon-input'} (string list)
  info.capabilities = {'input', 'button'} (string list)
  info.category = 'input'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if2'  (string)
  info.product = 'Apple Computer Apple Internal Keyboard / Trackpad'  (string)
  info.subsystem = 'input'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if2_logicaldev_input'  (string)
  input.device = '/dev/input/event6'  (string)
  input.originating_device = '/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if2'  (string)
  input.product = 'Apple Computer Apple Internal Keyboard / Trackpad'  (string)
  linux.device_file = '/dev/input/event6'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'input'  (string)
  linux.sysfs_path = '/sys/class/input/input6/event6'  (string)

my solution is little .fdi file placed to /etc/hal/fdi/policy/12-eject.fdi which just sets input.x11_driver.

Reproducible: Always

Steps to Reproduce:
1. get macbook 2,1
2. start xev
3. hit eject key on your keyboard

Actual Results:  
nothing happens

Expected Results:  
I should see some events in xev output
Comment 1 Martin Mlynar 2009-04-27 18:31:06 UTC
Created attachment 189630 [details]
my fdi file which enables Macbook eject key
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-27 19:53:02 UTC
woot I was just starting to get annoyed by this but didn't find anything on google.

CCing x11 guys because it might be of interest for them (if only for migration guide)
Comment 3 Trenton D. Adams 2009-11-02 00:55:06 UTC
I have noticed that my eject key on my Dell Studio 1737 also does not work.  It used to work under gentoo, but not any more.  I am not sure when it stopped working, so I cannot confirm the bit about xorg 1.5.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-09-21 20:37:27 UTC
Hal went away. I guess this is wontfix then. Feel free to reopen if you still experience the problem.