Code for auto rotating HP Spectre x360 2017 screen and pen input under Ubuntu 17.04
- change permition for running the .sh files: right click each .sh file -> properties -> permissions -> allow executing file as program
- or run
sudo chmod +x /path/landscape.sh /path/inverted.sh /path/portrait.sh /path/portraitr.sh
- Run the python code:
python3 path/AutoRotateScreen.py
- Add the call for the python code to the
startup applications