Hey There,
So I am trying to get this working with my HP tx1000 I have the following in the .sh file:
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 stylus rotate CW
xsetwacom set touch rotate CW
xsetwacom set eraser rotate CW
;;
right)
# -rotate to normal
xrandr -o normal
xsetwacom set stylus rotate NONE
xsetwacom set touch rotate NONE
xsetwacom set eraser rotate NONE
;;
esac
And when I run the file in terminal I get the following error(s):
Code:
jeff@lintouch:~$ ./.flipscreen.sh
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 154 (RANDR)
Minor opcode of failed request: 2 (RRSetScreenConfig)
Serial number of failed request: 14
Current serial number in output stream: 14
./.flipscreen.sh: 24: xsetwacom: not found
./.flipscreen.sh: 24: xsetwacom: not found
./.flipscreen.sh: 24: xsetwacom: not found
Any ideas/suggestions?
Thanks,
~Jeff
Bookmarks