View previous topic :: View next topic |
Author |
Message |
mateopl n00b
Joined: 07 Dec 2005 Posts: 16
|
Posted: Mon Jan 08, 2007 2:43 am Post subject: acpi hotkeys to scancodes |
|
|
[not sure if this is the correct forum]
I have a laptop with ASUS hardware and I am using asus_acpi kernel module to get access to hotkeys.
And I see them in /var/log/acpid:
Code: | [Sun Jan 7 18:21:07 2007] received event "hotkey ATKD 0000005c 00000001"
|
Now, how do I get it to produce a "normal" scankode/keycode (I am always confused by terms here).
What I want to achieve is the ability to bind an action with xbindkeys. Right now xbindkeys doesn't know the key was pressed because kernel doesn't translate it to scancode as far as I understand.
I just wanted to start aterm by pressing one of these hotkeys, but of course acpid is running as root and I cannot just start aterm for the current X user from within acpi script. I found some ugly solutinos with transferring .Xauthority and DISPLAY, but they didn't work 100%.
Ubuntu has this nice solution with acpi_fakekey utility, but this also suffers from being run by root. And Ubuntu's scripts to solve that are not compatible with Gentoo.
How do you solve running programs with hotkeys? |
|
Back to top |
|
|
mateopl n00b
Joined: 07 Dec 2005 Posts: 16
|
Posted: Tue Jan 16, 2007 7:46 am Post subject: |
|
|
-bump- |
|
Back to top |
|
|
maudib n00b
Joined: 03 Nov 2005 Posts: 50
|
|
Back to top |
|
|
pjv Guru
Joined: 02 Jul 2003 Posts: 353 Location: Belgium
|
Posted: Fri Aug 03, 2007 1:32 pm Post subject: |
|
|
A solution to this would be nice. You can get the acpi events to run .sh scripts but I need a command of some sort to generate some keycodes from there, so they can then be picked up by gnome-keybinding-properties. Short said: I need a "keypress" command. |
|
Back to top |
|
|
|