You are not logged in.
hi guys i have a fujitsu t902 and i've been stumped for the last while trying to get acpid to flip my screen around when i set it into tablet mode. acpi_listen shows the event, but whether I put the action in its own file in acpid/actions or just append the handler.sh script, i get zero results. the script is read, but xrandr and xsetwacom are not executed.
the relevant bits from /etc/acpi/handler.sh
...
video/tabletmode)
case "$4" in
00000001)
echo "on" > /var/log/tlbt
logger 'TLBT on'
xrandr --verbose -o inverted >> /var/log/tlbt
xsetwacom -v set "Wacom ISDv4 101 Pen stylus" Rotate half >> /var/log/tlbt
xsetwacom -v set "Wacom ISDv4 101 Finger touch" Rotate half >> /var/log/tlbt
xsetwacom -v set "Wacom ISDv4 101 Pen eraser" Rotate half >> /var/log/tlbt
;;
00000000)
echo "off" > /var/log/tlbt
logger 'TLBT off'
xrandr --verbose -o normal >> /var/log/tlbt
xsetwacom -v set "Wacom ISDv4 101 Pen stylus" Rotate none >> /var/log/tlbt
xsetwacom -v set "Wacom ISDv4 101 Finger touch" Rotate none >> /var/log/tlbt
xsetwacom -v set "Wacom ISDv4 101 Pen eraser" Rotate none >> /var/log/tlbt
;;
*)
logger "ACPI action undefined: $4"
echo "na" > /var/log/tlbt
;;
esac
;;
...
/var/log/tlbt just reads "on" or "off", so I know the switch-case is working right.
Last edited by Pillgrimm (2017-10-13 23:24:29)
Offline