Rotate Astrobox Touch display


This might be a dumb question but is there maybe some easy way (command line or config edit is okay) to rotate the Astrobox Touch display 180 degrees? Basically flip it upside down? I printed the 5 inch Astrobox Touch case (ultras slow and fine since I plan to keep it a while and want it to look good) and it turned out quite nice however it is more vertical than I like when using it…in fact if I just flip it over so it sits more horizontal it would be at a much better angle…I’d prefer not to redesign and reprint it but if I could just rotate the display it would be much more useable.

Also what size screws are recommended?

Screen Rotation?

For all readers, this is ONLY for the 5" screen, do not do this on the 3.5" or your screen will stop working.

It’s not super simple but you should be able to manage :wink: You need to modify two config files for a 180 degree rotation and reboot:

  • /etc/X11/xorg.conf.d/99-calibration.conf
Section "InputClass"
Identifier      "calibration"
MatchProduct    "ADS7846 Touchscreen"
Option  "Calibration"   "3905 208 3910 288"
Option  "SwapAxes"      "0"
  • /boot/config.txt

add the following line to the end of the file:



Thanks much Daniel, I will give it a try tonight!!!


Alright, I need to do the same with a 3.5" screen. How to proceed?


For 3.5" you do this:

  1. edit /boot/config.txt


  2. edit /etc/X11/xorg.conf.d/99-calibration.conf

    Option "Calibration" "3932 300 294 3801"
    Option "Calibration" "300 3932 3801 294"