My new laptop is fully put together now that I got my pen from Toshiba. The battery is here and everything.
The laptop is a Toshiba Tecra M4, and when I push the joystick button in on the screen, it rotates upside down. Here’s the python script in case anyone wants to do something similar:
#! /usr/bin/env python "Inverts the screen and back to normal again." import commands import re current = commands.getoutput("xrandr -q").split("\n") if re.match(".* (left|inverted|right) \\(", current) is not None: commands.getstatusoutput("xrandr -o normal") commands.getstatusoutput("xsetwacom set cursor rotate") else: commands.getstatusoutput("xrandr -o inverted") commands.getstatusoutput("xsetwacom set cursor rotate half")