Skip to content

Instantly share code, notes, and snippets.

@loopj
Created August 10, 2023 20:44
Show Gist options
  • Save loopj/6387d699424e7a7affd5f586982b7cd9 to your computer and use it in GitHub Desktop.
Save loopj/6387d699424e7a7affd5f586982b7cd9 to your computer and use it in GitHub Desktop.
WaveShare 5.5inch AMOLED on Armbian

WaveShare 5.5inch AMOLED on Armbian

Rotate screen 90 degrees clockwise (console)

Add the following to /boot/armbianEnv.txt:

extraargs=fbcon=rotate:1

Rotate screen 90 degrees clockwise (X11)

Create a file /usr/share/X11/xorg.conf.d/90-monitor.conf with the following content:

Section "Monitor"
    Identifier "DP-1"
    Option "Rotate" "right"
    Option "PreferredMode" "1920x1080"
EndSection

Rotate touch 90 degrees clockwise

Edit /usr/share/X11/xorg.conf.d/40-libinput.conf, find the section with Identifier "libinput touchscreen catchall" and add the following line:

Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment