After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 128483 - Thinkpad Keys Patch
Thinkpad Keys Patch
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: [obsolete] Keybinding
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-12-04 02:35 UTC by Alex Graveley
Modified: 2007-08-31 22:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The patch (15.46 KB, patch)
2003-12-04 02:37 UTC, Alex Graveley
needs-work Details | Review

Description Alex Graveley 2003-12-04 02:35:14 UTC
Hi, I sent this patch to the acme maintainer a few months ago and haven't
heard anything new....

This patch adds support for the IBM Thinkpad Keys: volume, mute, LCD
dimmer, LCD/VGA mode, "thinklight", home, search, mail keys.
Comment 1 Alex Graveley 2003-12-04 02:37:13 UTC
Created attachment 22080 [details] [review]
The patch
Comment 2 Alex Graveley 2003-12-04 02:38:13 UTC
Btw this patch has no external dependencies.
Comment 3 Bastien Nocera 2003-12-04 19:38:13 UTC
Dude, I *did* send an answer ;)

A couple of comments:
- I would rather not have much code that was thinkpad specific in
themain acme.c file
- Why isn't thinkpad_key_listener merged with do_action ()?
That would allow removing stuff like the THINKPAD_MUTE handling,
THINKPAD_BRIGHTNESS and THINKPAD_VOLUME (and the other duplicate ones
at the top)
- testing for /dev/nvram isn't enough, you also need to restrict it
to x86 machines, PPCs, Sparcs (and probably others) have
nvram pointing to their firmware. Could end up being quite nasty.
Comment 4 alexander.winston 2004-01-05 04:00:17 UTC
Adding the PATCH keyword.
Comment 5 Bastien Nocera 2004-01-05 13:03:25 UTC
Removing the patch keyword, as it's wrong.
Comment 6 alexander.winston 2004-01-05 13:47:59 UTC
It's still a patch, nonetheless. . .
Comment 7 Luis Villa 2004-02-05 21:38:51 UTC
alexander: patches not accepted by the maintainer are not patches,
basically.
Comment 8 Bastien Nocera 2004-02-25 18:03:23 UTC
Reassigning to the control-center.
Comment 9 alexander.winston 2004-03-28 15:49:31 UTC
(Anyone know if the new "needs-work" flag should be added to this patch?)
Comment 10 Andrew Sobala 2004-03-29 13:20:15 UTC
yeah- If the maintainer has already given a clear opinion on the patch, there
can be no harm IMHO in setting the flags. At some point the bugsquad is likely
to do a mass flag-setting session to try to help this process get along.
Comment 11 Bastien Nocera 2007-05-31 14:01:50 UTC
Richard, could you run us down the current status of all those keys?
Comment 12 Richard Hughes 2007-05-31 14:10:27 UTC
Yes, sure. ThinkPad keys are tricky to deal with, as similar models can have different scancodes, and even worse the same scancodes are used for different keys on different models. The current plan is to patch the thinkpad_acpi driver to emit KEY_UNKNOWN with the scancode in the key event, something like input_event(inputdev, EV_MSC, MSC_SCAN, scancode); which will let us apply a keymap in userspace to map the keys to the correct keycodes. This can be done automatically using HAL, and we will automate this.

Doing this approach means we do not have to do custom userspace bodges, and we can use the standard INPUT mechanism to deliver multimedia keypresses.

Does that answer your question? The maintainer has applied my patches to an upstream branch, so it's likely this code will go to linus when the merge window re-opens. This bug can probably be closed now, as userspace polling in g-c-c is certainly not what we want.

Comment 13 Bastien Nocera 2007-05-31 15:56:57 UTC
(In reply to comment #12)
> Doing this approach means we do not have to do custom userspace bodges, and we
> can use the standard INPUT mechanism to deliver multimedia keypresses.

Should we special case the mixer used for the volume keys so that we can see the changes with a popup (as g-p-m does for brightness-in-hardware keys)?
Comment 14 Bastien Nocera 2007-08-31 22:20:45 UTC
This is completely obsoleted by Richard's work on the ibm_acpi driver, and the keycode binding work in HAL.