The scripts as well as the rotate daemon work fine on Ubuntu Hardy on an X61t here. I modified the scripts as follows to start/stop the rotate daemon as needed. The daemon is only useful when in tablet mode, therefore starting it using an init script is not ideal IMO. Adding / removing the kernel module within the swivel scripts might not be what you want though.
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"
if /usr/bin/xrandr --output LVDS --rotate inverted; then /usr/bin/xsetwacom set stylus rotate 3
fi
modprobe hdaps_ec
killall rotate_daemon /usr/bin/rotate_daemon &
fi
done
----------------------------------------------------------------------------------------
#!/bin/sh
#/etc/acpi/swivel-panel-down.sh
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"
if /usr/bin/xrandr --output LVDS --rotate normal; then /usr/bin/xsetwacom set stylus rotate 0
fi
killall rotate_daemon
sleep 0.5;
modprobe -r hdaps_ec
fi
done
----------------------------------------------------------------------------------------
The scripts as well as the rotate daemon work fine on Ubuntu Hardy on an X61t here. I modified the scripts as follows to start/stop the rotate daemon as needed. The daemon is only useful when in tablet mode, therefore starting it using an init script is not ideal IMO. Adding / removing the kernel module within the swivel scripts might not be what you want though.
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---- 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/xsetwacom set stylus rotate 3
/usr/bin/ rotate_ daemon & ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---- swivel- panel-down. sh
displaynum=
getXuser;
if [ x"$XAUTHORITY" != x"" ]; then
export DISPLAY=
if /usr/bin/xrandr --output LVDS --rotate inverted; then
fi
modprobe hdaps_ec
killall rotate_daemon
fi
done
-------
#!/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/xsetwacom set stylus rotate 0 ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----
displaynum=
getXuser;
if [ x"$XAUTHORITY" != x"" ]; then
export DISPLAY=
if /usr/bin/xrandr --output LVDS --rotate normal; then
fi
killall rotate_daemon
sleep 0.5;
modprobe -r hdaps_ec
fi
done
-------