On Wed, 19 Aug 2009 23:08:28 +0300
Micha Feigin <mi...@post.tau.ac.il> wrote:

> I'm looking to remap the forward/back keys, preferably using hal to
> pageup/pagedown so that I can use them for presentation (I have a
> bluetooth mouse that generates these instead of pageup/pagedown)
> 
> lshal -m shows that these keys are mapped to:
> 23:05:56.986: platform_i8042_i8042_KBD_port_logicaldev_input condition 
> ButtonPressed = forward
> 23:05:58.525: platform_i8042_i8042_KBD_port_logicaldev_input condition 
> ButtonPressed = back
> 
> I checked using showkey at the console and the scan code is e069 and e06a. I 
> tried setting in hal:
>       <append key="input.keymap.data" type="strlist">e069:pageup</append>
>       <append key="input.keymap.data" type="strlist">e06a:pagedown</append>
> 
> and "lshal | grep key" shows the following
>   input.keymap.data = {'e069:pageup', 'e06a:pagedown'} (string list)
> 
> but it doesn't seem to achieve anything and I can't seem to find where the 
> mappings for these keys are defined in the first place
> 
> is it possible to remap already defined keys on a per device setting using 
> hal?
> 
> Thanks
> 
> 

I've got partial progress, the following works for all input devices:
xmodmap -e "keycode 166 = Page_Down"
xmodmap -e "keycode 167 = Page_Up"

Is there any way to achieve this using hal preferably for only one of the input
devices instead of via xmodmap for all devices?

Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to