Userspace driver for resistive "pen tablet" of XO-1 laptop

This userspace driver uses serio_raw and uevent to read the serial bytestream from the XO-1's custom ALPS touchpad and convert it to a relative input device. A very firm touch, a fingernail, or a PDA stylus all work to run the full tablet area in this mode.

While it's running, the glidepad functionality is disabled. At exit (ctrl-c), that functionality is reenabled.

I've only run this on xodeb-gnome as root. With proper permissions on /dev/serio_rawN and /dev/input/uinput, it should be runnable as a regular user. I haven't tried it on the default sugar distro yet.

/proc/bus/input/devices entry:

I: Bus=0006 Vendor=0001 Product=0001 Version=0001
N: Name="OLPC Resistive Touchpad"
P: Phys=
S: Sysfs=/class/input/input56
U: Uniq=
H: Handlers=mouse0 event5 
B: EV=7
B: KEY=30000 0 0 0 0 0 0 0 0
B: REL=3

Files currently attached to this page:

pt.py6.3kB



Entry first conceived on 20 December 2008, 19:21 UTC, last modified on 15 January 2012, 3:46 UTC
Website Copyright © 2004-2014 Jeff Epler