Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
acpi hotkeys to scancodes
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mateopl
n00b
n00b


Joined: 07 Dec 2005
Posts: 16

PostPosted: Mon Jan 08, 2007 2:43 am    Post subject: acpi hotkeys to scancodes Reply with quote

[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
View user's profile Send private message
mateopl
n00b
n00b


Joined: 07 Dec 2005
Posts: 16

PostPosted: Tue Jan 16, 2007 7:46 am    Post subject: Reply with quote

-bump-
Back to top
View user's profile Send private message
maudib
n00b
n00b


Joined: 03 Nov 2005
Posts: 50

PostPosted: Tue Jan 16, 2007 3:51 pm    Post subject: Reply with quote

try this and see if it works:
http://gentoo-wiki.com/HOWTO_Use_Multimedia_Keys#Determine_the_keycodes
Back to top
View user's profile Send private message
pjv
Guru
Guru


Joined: 02 Jul 2003
Posts: 353
Location: Belgium

PostPosted: Fri Aug 03, 2007 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum