[Solved] Raspberry Pi 5 - Display Resolution and Orientation stuck
bearlike opened this issue · comments
The Issue I had
The resolution and orientation was stuck to 1920x1080 and portrait when I tried to install MPI4008-show
Simple fix
- Raspberry Pi OS appears to be bundled with the
ads7846
kernel module. - Most of the scripts are configuring the OS to work with the screen than installing new drivers/modules.
- Just install
sudo apt-get install xserver-xorg-input-evdev
- Add the below to your
/boot/config.txt
dtparam=i2c_arm=on
enable_uart=1
dtparam=spi=on
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
- (Optional) You can change the resolution via
Start Menu > Preference > Screen Configuration or Screen Layout Editor
. If you're working without a desktop environment, modify thehdmi_mode
andhdmi_group
on/boot/config.txt
.480x800
works best for me. - (Optional) If your Pi is confused with touch coordinates after modifying the orientation, you might need flip
swapxy
to1
. - (Optionally) Calibrate your touch screen.
- Have fun!
Tested on
Raspberry Pi OS based on Debian GNU/Linux 12 (bookworm) aarch64
Raspberry Pi 5 Model B Rev 1.0 (8 GB)
Kernel: 6.1.0-rpi7-rpi-2712