The main purpose is to read the accelerometer and automatically configure xrandr. When you rotate your tablet, the orientation will automatically follow along.
accelerometer c library rotation tablet x11 xrandr
These details are provided for information only. No information here is legal advice and should not be used as such.