This is a lovely success story about how ’simple’ it is to get the ITMTouch based L1730SF to work on Kubuntu Feisty. When I did this the first time in Dapper and later in Edgy it was a big hazzle, took me several month, some kernel patches, some modified kernel patches and a lot of hard work. This time, no patches, no extra special nothing. Just some config!
Jihaa!
On both Dapper/Edgy we had to modify an old ITMTouch-kernel-module. With Feisty the usbtouchscreen works just wunderfull without any changes.
I use evtouch with xorg, no problems here either but I haven’t got calibrate to work yet. One thing you should think of though. Change Device on InputDevice mouse to something else but
/dev/input/mice
If you stick with mice you will have some strange behavior. Like tapping always gives you a doubleclick, which is kind of hard to work with. I have set this to:
/dev/input/MOUSE_REPLACEME
I will explain why later.
I also added this part to xorg.conf:
Section “InputDevice”
# Option “Calibrate” “1″
Identifier “touchscreen”
Driver “evtouch”
Option “CorePointer”
Option “Device” “/dev/input/TOUCH_REPLACEME”
Option “DeviceName” “touchscreen”
Option “MinX” “300″
Option “MinY” “226″
Option “MaxX” “3851″
Option “MaxY” “3954″
Option “TapTimer” “500″
Option “ReportingMode” “Raw”
Option “Emulate3Buttons”
Option “Emulate3Timeout” “50″
Option “SendCoreEvents” “On”
Option “Rotate” “cw”
Option “SwapY” “1″
EndSection
One more REPLACEME, oooh! Scary!
Why this REPLAMEME? Simply because I really suck at writing udev rules and I just can’t get good symlinks to /dev/input/ that I could use in xorg.conf. So, I solved devices changing pointers with that in xorg.conf and a lovely script called fix_xorg.conf.sh and it looks like this:
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
LOGITECH_MOUSE=`cat /proc/bus/input/devices | grep -A 3 “Logitech USB Receiver” | grep -o mouse.`
ITM=`cat /proc/bus/input/devices | grep -A 3 “ITM” | tail -1 | grep -o event.`
cat /etc/X11/xorg.conf_MALL | sed s/MOUSE_REPLACEME/$LOGITECH_MOUSE/g > /etc/X11/xorg.conf_TMP
cat /etc/X11/xorg.conf_TMP | sed s/TOUCH_REPLACEME/$ITM/g > /etc/X11/xorg.conf
And THIS is why I should start Ugly Solutions Inc or something. =)
However, if you run this script before KDM (in my case) starts you’ll have a working xorg.conf every reboot even if mouse/touchscreen change devices. Isn’t it just lovely?