Rotate Astrobox Touch display


#1

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?
#2

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"
EndSection
  • /boot/config.txt

add the following line to the end of the file:

display_rotate=2

#3

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


#4

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


#5

For 3.5" you do this:

  1. edit /boot/config.txt

    replace
    dtoverlay=waveshare35b
    with
    dtoverlay=waveshare35b,rotate=270

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

    replace
    Option "Calibration" "3932 300 294 3801"
    with
    Option "Calibration" "300 3932 3801 294"