Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


7" touchscreen on HDMI how to rotate 180 deg.?
#7
Erm...

In .xinitrc we find this clause

Code:
if [ $DSI_SCN_TYPE = 'none' ]; then
   if [ $HDMI_SCN_ORIENT = "portrait" ]; then
       SCREEN_RES=$(echo $SCREEN_RES | awk -F"," '{print $2","$1}')
       DISPLAY=:0 xrandr --output HDMI-1 --rotate left
   fi


If

1) we modify this to include the possibility of HDMI_SCN_ORIENT having the value "inverted" upon which rotating "inverted"

2) modify the webUI Peripherals screen to allow selection of "Inverted" as an HDMI screen orientation

Then we get what we want for the displayed HDMI output. I have no idea how to deal with the touchscreen input however.

@BjoernStefan

You can test my proposal from the command line on your moOde player. Execute the following command

Code:
DISPLAY=:0 xrandr --output HDMI-1 --rotate inverted

This worked for me on a Pi 5B based moOde 9.3.0 player here with an attached HDMI display (using HDMI port 0, closest to the USB-C power socket). Again, I have no idea how to deal with the touch screen input.

The setting won't persist through a reboot, of course.

Regards,
Kent

PS - As written, my suggested command should work for Pi models which have only a single HDMI port and with Pi 4B/5B models (which have two HDMI ports) if the display is connected to port 0.

PPS - changes to the kernel settings will affect only the orientation of the text console. Once the moOde local display is enabled, we have to change X-window settings instead.
Reply


Messages In This Thread
RE: 7" touchscreen on HDMI how to rotate 180 deg.? - by TheOldPresbyope - 04-11-2025, 02:10 PM

Forum Jump: