View previous topic :: View next topic |
Author |
Message |
Maffuster n00b
Joined: 03 Jun 2004 Posts: 38
|
Posted: Thu Jun 24, 2004 3:57 am Post subject: Custom Laptop Buttons |
|
|
I'm just wondering how I go about starting to get my laptop's custom buttons to work. As far as I can see there's no ebuild OR information out there on them. I know that if I'm asking, it doesn't provide much hope that I'll be able to ever get them working, but I'd love to take a stab at it.
For reference, I've got a Fujistu C2240 Lifebook.
Thanks!
-Matt |
|
Back to top |
|
|
geyser n00b
Joined: 24 Jun 2004 Posts: 26 Location: Bellevue, WA, USA
|
Posted: Thu Jun 24, 2004 7:50 am Post subject: mapping extra keys |
|
|
The first part of a solution to your problem is to use the xev command under X. I assume you want the keys to do something in X. On my fancy keyboard I get this sort of xev response for the key with a little home picture:
KeyPress event, serial 24, synthetic NO, window 0x1400001,
root 0x43, subw 0x1400002, time 259245900, (49,31), root:(387,320),
state 0x0, keycode 130 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 24, synthetic NO, window 0x1400001,
root 0x43, subw 0x1400002, time 259246060, (49,31), root:(387,320),
state 0x0, keycode 130 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
So keycode 130 is the one I would map to take my browser to my home page.
The second part is to map the keycode. I haven't' looked into the more recent tools to do this but I just saw xkbevd and it looks interesting. The original tool to check is xmodmap. Hopefully this will get you going. |
|
Back to top |
|
|
Maffuster n00b
Joined: 03 Jun 2004 Posts: 38
|
Posted: Thu Jun 24, 2004 5:25 pm Post subject: |
|
|
Thanks! That's exactly what I was looking for.
I searched around, and found some information on the IBM laptops, and their special buttons, but that method didn't do anything for me (looking at the contents of /dev/nvram)
Thanks again! |
|
Back to top |
|
|
|
|
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
|
|