Today I discover to my surprise that some two finger gestures were working on my Thinkpad X201 with ubuntu 10.10 when I accidentally triggered a right click with my fingers.
The zoom and scroll gestures also work, although they are not too smooth yet. One thing that is not perfect is that after I rotate the screen, the scroll gesture does not adjust well and scrolls sideways.
I use the following script to rotate the screen, that I found somewhere online.
Code:
#!/bin/sh
# Find the line in "xrandr -q --verbose" output that contains current screen orientation and "strip" out current orientation.
rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"
# Using current screen orientation proceed to rotate screen and input tools.
case "$rotation" in
normal)
# -rotate to the right
xrandr -o right
xsetwacom set "Serial Wacom Tablet" Rotate CW
xsetwacom set "Serial Wacom Tablet touch" Rotate CW
xsetwacom set "Serial Wacom Tablet eraser" Rotate CW
;;
right)
# -rotate to normal
xrandr -o normal
xsetwacom set "Serial Wacom Tablet" Rotate NONE
xsetwacom set "Serial Wacom Tablet touch" Rotate NONE
xsetwacom set "Serial Wacom Tablet eraser" Rotate NONE
;;
esac
The clicks with the touchscreen are correctly mapped by the Rotate command with xsetwacom, but the scroll gesture is not. Does anyone know if there is any way to solve it?
The sad fact is that the scroll gesture would be really useful only when the screen is folded and rotated.
Bookmarks