I have added rotate=180 to the cmdline.txt and have one generic monitor attached (upside down mounted).
cmdline.txt: ... video=HDMI-A-1:1280x1024M@60,rotate=180
At the console and GUI the orientation is right.
In the console (e.g. gpm) the mouse follows the movement on the desk as expected.
However, when using an UI without X/Wayland the mouse is inverted (ie. all directions opposite to the expected movement) and is shown upside down.
This is an image with X and recent SDL testwm, but the same effect happens when running testwm from the console.
Here are some excerpts from raspinfo:
System Information
------------------
Raspberry Pi 5 Model B Rev 1.0
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
Raspberry Pi reference 2024-07-04
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 48efb5fc5485fafdc9de8ad481eb5c09e1182656, stage2
Linux rpi5-clean 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux
Revision: c04170
Videocore information
---------------------
2024/09/10 14:40:30
Copyright (c) 2012 Broadcom
version 5be4f304 (release) (embedded)
vc_gencmd_read_response returned -1
error=1 error_msg="Command not registered"
EEPROM
------
*** UPDATE AVAILABLE ***
BOOTLOADER: update available
CURRENT: Tue 10 Sep 13:40:30 UTC 2024 (1725975630)
LATEST: Tue 12 Nov 16:10:44 UTC 2024 (1731427844)
RELEASE: default (/lib/firmware/raspberrypi/bootloader-2712/default)
Use raspi-config to change the release.
dtoverlay is vc4-kms-v3d
When using xrandr -o inverted within X and disable the rotate= from the cmdline.txt the mouse movement is as expected but I don't want to use X with the RetroPie setup as it might cause knock-on effects.
Has someone else encountered this by chance?
I am trying to find the root cause for this: Does the Rpi report wrong values or does SDL misinterpret the values?
cmdline.txt: ... video=HDMI-A-1:1280x1024M@60,rotate=180
At the console and GUI the orientation is right.
In the console (e.g. gpm) the mouse follows the movement on the desk as expected.
However, when using an UI without X/Wayland the mouse is inverted (ie. all directions opposite to the expected movement) and is shown upside down.
This is an image with X and recent SDL testwm, but the same effect happens when running testwm from the console.
Here are some excerpts from raspinfo:
System Information
------------------
Raspberry Pi 5 Model B Rev 1.0
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
Raspberry Pi reference 2024-07-04
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 48efb5fc5485fafdc9de8ad481eb5c09e1182656, stage2
Linux rpi5-clean 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux
Revision: c04170
Videocore information
---------------------
2024/09/10 14:40:30
Copyright (c) 2012 Broadcom
version 5be4f304 (release) (embedded)
vc_gencmd_read_response returned -1
error=1 error_msg="Command not registered"
EEPROM
------
*** UPDATE AVAILABLE ***
BOOTLOADER: update available
CURRENT: Tue 10 Sep 13:40:30 UTC 2024 (1725975630)
LATEST: Tue 12 Nov 16:10:44 UTC 2024 (1731427844)
RELEASE: default (/lib/firmware/raspberrypi/bootloader-2712/default)
Use raspi-config to change the release.
dtoverlay is vc4-kms-v3d
When using xrandr -o inverted within X and disable the rotate= from the cmdline.txt the mouse movement is as expected but I don't want to use X with the RetroPie setup as it might cause knock-on effects.
Has someone else encountered this by chance?
I am trying to find the root cause for this: Does the Rpi report wrong values or does SDL misinterpret the values?
Statistics: Posted by MartyMax — Sat Dec 14, 2024 4:48 pm