Moode Forum
[SOLVED] Waveshare 5.5 AMOLED HDMI Display - screen rotate - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [SOLVED] Waveshare 5.5 AMOLED HDMI Display - screen rotate (/showthread.php?tid=7507)



[SOLVED] Waveshare 5.5 AMOLED HDMI Display - screen rotate - dewen - 03-11-2025

Hi :
I just installed Moode 9.2.6 on my Raspberry Pi 5 and encountered some issues, 
so I need help on the forum.

I’m using a Waveshare 5.5-inch AMOLED HDMI display.
Its native resolution is 1080x1920 in portrait mode.
[attachment=4475]
I can adjust the screen orientation in the "Peripheral Setup" section,
but for HDMI display, it only offers "landscape" and "portrait" modes.

[attachment=4476]
Currently, the display is in horizontal mode if I set the screen orientation to "portrait",
but it's upside down.
[attachment=4477]

Is there a way to rotate it 180 degrees? ( e.g. command to rotate 90,180,270 degree )

Thank you !


RE: Waveshare 5.5 AMOLED Display rotate - dewen - 03-12-2025

(03-11-2025, 03:08 PM)dewen Wrote: Use Web SSH with command
DISPLAY=:0 xrandr --output HDMI-1 --rotate right
The screen rotate to correct place.

For Touch rotate, I followed Touch Rotation from Waveshare Wiki
90 degree: Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"

My problem is, how can I add DISPLAY=:0 xrandr --output HDMI-1 --rotate right
to an autostart file when boot, so I don't need to do it again.

Thank you. 



RE: Waveshare 5.5 AMOLED Display rotate - steve4star - 03-12-2025

You can edit the ~/.xinitrc and add the xrandr command there.
Have you tried in the peripheral config to set the display as HDMI and rotated ?


RE: Waveshare 5.5 AMOLED Display rotate - dewen - 03-13-2025

(03-12-2025, 04:29 PM)steve4star Wrote: You can edit the ~/.xinitrc and add the xrandr command there.
Have you tried in the peripheral config to set the display as HDMI and rotated ?

[attachment=4486]

As you taught me, there is already an xrandr command in ~/.xinitrc. 
I changed 'left' to 'right,' and it works! Thank you!