[ltp] how to set xmodmap for R50e

Matt Graham linux-thinkpad@linux-thinkpad.org
Sun, 20 Feb 2005 10:57:03 -0500


On Sunday 20 February 2005 07:01, after a long battle with technology, 
hipikll@gmail.com wrote:
> i would like to use extra keys from TP R50e - such as (win) -
> prev. page, next. page and Fn keys.

What do you mean by "prev. page"?  Did you mean "Page Up", or is there a 
key that is mapped to "go to previous page viewed in I.Exploder" in 
Windows?  As long as this key produces a keycode (start xev from an 
xterm, press this mysterious key to see if it does), you can do things 
with it.  If it doesn't produce a keycode, you will probably need to 
use tpb.

> on this "page" keys i want to map something like Next_virtual_screen,
> Prev_virtual_screen.

If you meant "I want to have these keys execute (Ctrl-Alt-Keypad+) or 
(Ctrl-Alt-Keypad-)", this can't be done with xmodmap.  You need to use 
xbindkeys instead, and have the keys execute "xvidtune -next" or 
"xvidtune -prev".

> And on Fn F7 i wanna map pmsuspend2. How to make 
> it? Can anyone send me working like i want Xmodmap?

The Fn combinations cannot be mapped by anything except possibly tpb.  
As for xmodmap, it maps single keys to single keys.  It cannot make an 
arbitrary keypress or combination of keypresses execute an arbitrary 
command.  xbindkeys can do that.  
http://groups.google.com/advanced_group_search , comp.os.linux.x , 
keyword "xbindkeys" will point you to a lot of useful examples.  HTH,

-- 
   Love is a snowmobile racing across the Arctic tundra that suddenly
   flips over, pinning you underneath.  At night, the Ice Weasels come.
   --Matt Groening, "Love Is Hell"
There is no Darkness in Eternity/But only Light too dim for us to see