Hello forum people,
I have an Intel Classmate Convertible netbook which has a touchscreen. It has accelerometers to determine the position of the display, and I managed to set up automatic display rotation with them. But the touchscreen control does not rotate with it.
I can configure the rotation manually in my xorg.conf, in the following section:
Can I somehow change the "Rotation"-option dynamically, with a shell command for example?
Identifier "HID TOUCH"
Option "Device" "/dev/usb/hiddev0"
Option "ScreenNo" "0"
Option "Rotation" "0"
Option "SwapY" "0"
Option "UpSound" "0"
Option "DownSound" "0"
Solved it myself. Intel had a patched version of xrandr for their Ubuntu 8.04-based setup (http://intel-powered-classmate-pc.ar...natick1.tar.gz), which didn't quite work for me, because the touchscreen input was always turned 180 degrees from what it should have been. I took the source and experimented a bit with it, eventually extracting the stuff that actually changes touchscreen rotation. From that I compiled a little tool that I now use in my screen-rotation script. If someone needs this program, just contact me, I am happy to help out.