remapping bluetooth mouse buttons (microsoft notebook presenter 8000)

2009-08-18 Thread Micha Feigin
Hello,

I go myself one of these toys, the microsoft wireless notebook presenter 8000
mouse which is a bluetooth mouse that can switch from mouse mode to
presentation mode (it's got several presentation buttons on the back). Its
recognized via bluetooth, all the top buttons are recognized (9 of them) and
works well.

The problem is with the presentation buttons, they work, but unlike most
presentation hardware, instead of sending page up/page down they are sending
some other key. xev says its 166/167 and the xfce keyboard mapping tool
recognizes it as XF86Forward/XF86Back buttons.

I want to get it to work with acrobat presentation which means that I need to
remap these to pageup/pagedown. I want to do this preferable only for the mouse
as the keyboard also has XF86Forward/XF86Back keys that I would rather leave as
they are.

I'm guessing that there is some hal option but I'm not sure how to do it.

Any guidance is welcome.

Thanks


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



Re: remapping bluetooth mouse buttons (microsoft notebook presenter 8000)

2009-08-18 Thread Micha Feigin
On Tue, 18 Aug 2009 12:12:58 +0300
Micha Feigin mi...@post.tau.ac.il wrote:

 Hello,
 
 I go myself one of these toys, the microsoft wireless notebook presenter 8000
 mouse which is a bluetooth mouse that can switch from mouse mode to
 presentation mode (it's got several presentation buttons on the back). Its
 recognized via bluetooth, all the top buttons are recognized (9 of them) and
 works well.
 
 The problem is with the presentation buttons, they work, but unlike most
 presentation hardware, instead of sending page up/page down they are sending
 some other key. xev says its 166/167 and the xfce keyboard mapping tool
 recognizes it as XF86Forward/XF86Back buttons.
 
 I want to get it to work with acrobat presentation which means that I need to
 remap these to pageup/pagedown. I want to do this preferable only for the 
 mouse
 as the keyboard also has XF86Forward/XF86Back keys that I would rather leave 
 as
 they are.
 
 I'm guessing that there is some hal option but I'm not sure how to do it.
 
 Any guidance is welcome.
 
 Thanks
 

I dug a bit deeper and tried adding a file to /etc/hal/fdi/policy/ with the 
content:

?xml version=1.0 encoding=ISO-8859-1?
deviceinfo version=0.2
  device
match key=info.product contains=Microsoft Wireless Notebook Presenter 
Mouse 8000
append key=input.keymap.data type=strlist167:117/append
append key=input.keymap.data type=strlist166:112/append
/match
  /device
/deviceinfo

and lshal | grep keymap shows
input.keymap.data = {'167:117', '166:112'} (string list)

but it doesn't seem to have any effect


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



Re: remapping bluetooth mouse buttons (microsoft notebook presenter 8000)

2009-08-18 Thread Micha Feigin
On Tue, 18 Aug 2009 12:12:58 +0300
Micha Feigin mi...@post.tau.ac.il wrote:

 Hello,
 
 I go myself one of these toys, the microsoft wireless notebook presenter 8000
 mouse which is a bluetooth mouse that can switch from mouse mode to
 presentation mode (it's got several presentation buttons on the back). Its
 recognized via bluetooth, all the top buttons are recognized (9 of them) and
 works well.
 
 The problem is with the presentation buttons, they work, but unlike most
 presentation hardware, instead of sending page up/page down they are sending
 some other key. xev says its 166/167 and the xfce keyboard mapping tool
 recognizes it as XF86Forward/XF86Back buttons.
 
 I want to get it to work with acrobat presentation which means that I need to
 remap these to pageup/pagedown. I want to do this preferable only for the 
 mouse
 as the keyboard also has XF86Forward/XF86Back keys that I would rather leave 
 as
 they are.
 
 I'm guessing that there is some hal option but I'm not sure how to do it.
 
 Any guidance is welcome.
 
 Thanks
 
 

Also tried lshal -m which shows:

Start monitoring devicelist:
-
13:23:04.575: bluetooth_acl_1dd8340a09_logicaldev_input condition ButtonPressed 
= play
13:23:09.038: bluetooth_acl_1dd8340a09_logicaldev_input condition ButtonPressed 
= forward
13:23:10.499: bluetooth_acl_1dd8340a09_logicaldev_input condition ButtonPressed 
= back
13:23:14.790: bluetooth_acl_1dd8340a09_logicaldev_input condition ButtonPressed 
= play-pause
13:23:26.442: bluetooth_acl_1dd8340a09_logicaldev_input condition ButtonPressed 
= forward
13:23:27.523: bluetooth_acl_1dd8340a09_logicaldev_input condition ButtonPressed 
= back
13:23:29.362: bluetooth_acl_1dd8340a09_logicaldev_input condition ButtonPressed 
= play-pause
13:23:30.056: bluetooth_acl_1dd8340a09_logicaldev_input condition ButtonPressed 
= volume-down
13:23:30.954: bluetooth_acl_1dd8340a09_logicaldev_input condition ButtonPressed 
= volume-up
13:23:34.534: bluetooth_acl_1dd8340a09_logicaldev_input condition ButtonPressed 
= close


It looks like according to hal this is acting as a media player instead of a 
presentation tool


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