P1510 Touchscreen
I've written a "driver" for it. It's really a Perl script that uses wacdump to initialize the serial port through which the device is accessible. It then reads values from it and uses X11::GUITest to control the mouse in X11. The script should be a good starting point for writing a real driver.
There's now also a real X driver available here, but so far the button click actions have not been very intuitive.
If you don't have the X11::GUITest module, you can install it from the CPAN shell:
# perl -e shell -MCPAN cpan> install X11::GUITest
At every boot you should run the following commands (as root):
# setserial /dev/ttyS0 irq 4 port 0x220 autoconfig # chmod a+rwx /dev/ttyS0
However, Brad Midgley notes that he had to use the default port (0x3f8) with setserial.
After that run one of these scripts in X:
- tablet2.pl: Simple, only left mouse button - tablet4.pl: Hold for right click - tablet5.pl: Same as above, but -- Fixed a dragging bug -- Added xset command to power on display after idle power off -- Added some comments to help with recalibration, if necessary - tablet6.pl: Added command line options for rotation and skipping initialization
Note that if you run multiple X servers, you need to restart the script each time you change virtual terminals. I recommend writing a script for that.
Tablet mode
I run a second X server with a rotated screen layout for the tablet mode, but it's also possible to use this modified Xvnc server. It isn't switched on automatically when I rotate the display as in Windows, because I don't know where to read the display status from. In tablet mode I use the Matchbox window manager because it's lightweight, keeps windows maximized and has an on-screen keyboard.
Last modified 2006/05/28
|
|