Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7610

Official Display • Re: Pi Touch Screen 2 screen rotation ... PLEASE HELP

$
0
0
I'm having trouble with graphics rotation as well. I'm using a Pi4 and a 7" Raspberry Pi Touch Display 2. The distro is the Raspberry Pi Bookworm lite 32 bit. All the solutions offered in this thread rotate text by 90 degrees but not graphics. If I rotate 180 degrees, both text and graphics rotate. The two rotation methods offered (cmdline.txt and config.txt) seem to be additive.

I've added:

Code:

video=DSI-1:720x1280@60
to the end of cmdline.txt.

Here is the relevant piece of config.txt:

Code:

# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3d-pi4dtoverlay=vc4-kms-dsi-ili9881-7inch,rotation=90max_framebuffers=2
I'm using X11 with no display manager. I can use xloadimage:

Code:

#!/bin/bashXorg -retro -s 0 vt07 &sleep 2export DISPLAY=:0xloadimage -geometry 720x1280 -shrink DSC_0001.jpg
And it displays in portrait mode even though text is displayed in landscape. If I then try to use xrandr to rotate the X screen,:

Code:

#!/bin/bash##/usr/bin/Xorg vt7 -s 0 -retro &sleep 2export DISPLAY=:0xrandr --output DSI-1 --rotate rightsleep 1xloadimage -shrink DSC_0001.jpg
The sceen is blank. If I kill xloadimage, the X retro screen shows in landscape mode. Touch doesn't work (yet) but a mouse works correctly in the landscape retro screen. In my actual application I'm using feh in slideshow mode. feh appears to be running in the background, picking up images and loading them somewhere. I don't get any errors from feh. The screen is blank. I can see activity on the USB drive that holds my images, and iotop shows read activity at regular intervals.

Any ideas?

Statistics: Posted by MrPorcine — Wed Jan 07, 2026 6:55 pm



Viewing all articles
Browse latest Browse all 7610

Trending Articles