I'd like to propose the following additions in order to support panel rotation:
/etc/acpi/events/thinkpad-swivel-panel-down
--------------------------------------------------------
# called when tablet head swivels down
event=ibm/hotkey HKEY 00000080 00005009
action=/etc/acpi/swivel-panel-down.sh
EOF
--------------------------------------------------------
/etc/acpi/events/thinkpad-swivel-panel-up
--------------------------------------------------------
# called when tablet head swivels up
event=ibm/hotkey HKEY 00000080 0000500a
action=/etc/acpi/swivel-panel-up.sh
EOF
--------------------------------------------------------
for x in /tmp/.X11-unix/*; do
displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
getXuser;
if [ x"$XAUTHORITY" != x"" ]; then
export DISPLAY=":$displaynum" /usr/bin/xrandr --output LVDS --rotate inverted /usr/bin/xsetwacom set stylus rotate 3
fi
done
--------------------------------------------------------
for x in /tmp/.X11-unix/*; do
displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
getXuser;
if [ x"$XAUTHORITY" != x"" ]; then
export DISPLAY=":$displaynum" /usr/bin/xrandr --output LVDS --rotate normal /usr/bin/xsetwacom set stylus rotate 0
killall cellwriter
fi
done
--------------------------------------------------------
I'd like to propose the following additions in order to support panel rotation:
/etc/acpi/ events/ thinkpad- swivel- panel-down ------- ------- ------- ------- ------- ------- ------- /etc/acpi/ swivel- panel-down. sh ------- ------- ------- ------- ------- ------- -------
-------
# called when tablet head swivels down
event=ibm/hotkey HKEY 00000080 00005009
action=
EOF
-------
/etc/acpi/ events/ thinkpad- swivel- panel-up ------- ------- ------- ------- ------- ------- ------- /etc/acpi/ swivel- panel-up. sh ------- ------- ------- ------- ------- ------- -------
-------
# called when tablet head swivels up
event=ibm/hotkey HKEY 00000080 0000500a
action=
EOF
-------
/etc/acpi/ swivel- panel-down. sh ------- ------- ------- ------- ------- ------- ------- swivel- panel-down. sh
-------
#!/bin/sh
#/etc/acpi/
. /etc/default/ acpi-support acpi-support/ power-funcs
. /usr/share/
for x in /tmp/.X11-unix/*; do `echo $x | sed s#/tmp/ .X11-unix/ X##` ":$displaynum"
/usr/bin/ xrandr --output LVDS --rotate inverted
/usr/bin/ xsetwacom set stylus rotate 3 ------- ------- ------- ------- ------- ------- -------
displaynum=
getXuser;
if [ x"$XAUTHORITY" != x"" ]; then
export DISPLAY=
fi
done
-------
/etc/acpi/ swivel- panel-up. sh ------- ------- ------- ------- ------- ------- ------- swivel- panel-down. sh
-------
#!/bin/sh
#/etc/acpi/
. /etc/default/ acpi-support acpi-support/ power-funcs
. /usr/share/
for x in /tmp/.X11-unix/*; do `echo $x | sed s#/tmp/ .X11-unix/ X##` ":$displaynum"
/usr/bin/ xrandr --output LVDS --rotate normal
/usr/bin/ xsetwacom set stylus rotate 0 ------- ------- ------- ------- ------- ------- -------
displaynum=
getXuser;
if [ x"$XAUTHORITY" != x"" ]; then
export DISPLAY=
killall cellwriter
fi
done
-------
Works fine on a T61t here.