With this utility and traybar indicator you can easily manage screen and touch rotation of your device.
This package will install daemons that will run on boot and will manage the screen rotation.
You can also switch from High DPI to Normal DPI mode to work easily on attached monitors with native DPI on Xorg.
I'm experimenting other features that may be added soon.
This packages is not compatible with Ansible-playbook setup due to rotation scripts that may conflict. Clean your system before use this. You may try this clean script at your own risk: Clean Ansible Playbook script
This is an indipendent module of another project: https://github.com/stockmind/gpd-pocket-ubuntu-respin
It can work without that setup but is recommended to run into an environment configured with those project files for a better user experience.
- python
- python-gi
- gksu
- xinput
- gir1.2-appindicator3-0.1
- gobject-introspection
- python2
- python2-gobject
- xinput
- gksu
Gnome users must install an extension for Gnome Shell (Choose one):
- https://extensions.gnome.org/extension/1031/topicons/
- https://extensions.gnome.org/extension/495/topicons/
This extensions will enable legacy tray icons on top bar.
Clone repository and run as root
sudo ./install.sh
This will install gpdscreen rotation scripts, daemons and icons. This will also remove old versions of my gpdtouch scripts.
Reboot after install is required.
Clone repository and run as root
sudo ./uninstall.sh
This will also remove old versions of my gpdtouch scripts.
Check Troubleshooting section. If your problem persist or is not on the list check Problem reporting section before open an issue.
Sometimes it may happen that rotation of touch or display is wrong due to several factor, particularly on GNOME or derived Desktop Environments. You can fix this simply selecting with mouse the GPD Screen Rotation icon on the tray bar ( ) and clicking on the desired rotation on menu.
Ex. If your display is rotated in landscape correctly but touchscreen is not aligned, you can select "Rotate landscape" to fix this. The opposite is also valid. The script will do it's best to compensate the alignment problems that may happen.
You can try to use the "Reset touchscreen" option from the GPD Screen Rotation icon on your tray bar ( ). It will ask for your password. Wait for 5 seconds then retry to use touchscreen. If problem persist try to put system in sleep for a bit or reboot your device.
In some system it may happen that tray icon won't show at boot. Try to run in a terminal
gpdscreen-indicator
If it works add "gpdscreen-indicator" command to your system "Startup Application" utility to run it at boot.
Check also that your Desktop Environment is XDG-Compliant: https://wiki.archlinux.org/index.php/Desktop_entries#Autostart
To report a problem clone the repo, run "problem-reporting.sh" script and attach the output to your github issue. This will help debugging.
sudo ./problem-reporting.sh
Base rotation script and daemons are based on initial bash work of chrisawcom
Contributions by beeftornado, maxengel
Icons used: Material Design by Google
If my work helped you consider a little donation to buy me a coffe... or an energy drink! 😄