Selective Pointer device remapping in linux

Posted by user6368 on Super User See other posts from Super User or by user6368
Published on 2009-08-18T19:43:32Z Indexed on 2010/03/19 21:01 UTC
Read the original article Hit count: 364

Filed under:
|

I just got an HP 2710p (hp tablet, with digitizer), and I've played around with linux for a while now, and thought I would go ahead and install it. Everything works fine, excepting normal tablet functions, which is to be expected. I'm working on the screen rotation, and there are on-screen keyboards, etc, but I'm having issues with the stylus.
I can tap and left click with the stylus as normal, but the side button (which in windows functions as a right mouse button) appears as a 'button 2' to xev (a middle/scroll wheel button). I can switch 'button 2' and 'button 3' universally using xmodmap, but I'd like to do so exclusively for stylus so I don't screw up regular pointing devices.
Altering xorg.conf (which is surprisingly bare) with the recommended sections (adding sections for each of the stylus buttons) does nothing.
I'm running crunchbang, which is an ubuntu/debian varient with openbox as the windows manager.
Thanks

Also, as a seperate note, does anybody know how to detect when I rotate and/or latch the lid shut? I was thinking maybe I could run a script to switch the buttons when I close it, but I can't find any information.

© Super User or respective owner

Related posts about linux

Related posts about tablet