This is a simple shell script that monitors the Linux IIO acceleromter for device rotation, then rotates the screen and touch inputs accordingly. It was developed and tested on a ThinkPad Yoga 12 (2nd generation).