Today I have run apt upgrade, and it upgraded kernel to 5.4 from 4.19
Now the display resolution has been broken. The resolution can not be set to monitor resolution (1366x768).
I can select other resolutions (1024*768, 1280*720 etc), but 1366x768 is not available.
I am using RPi 4.
How can I fix this. I can not even revert back to 4.19 kernel.
- ksharindam
- Posts: 191
- Joined: Sat Jan 09, 2016 4:16 pm
-
- Posts: 91
- Joined: Wed Jun 10, 2020 7:04 am
Re: kernel 5.4 broke my display resolution
I'm sure there is an easier solution, however, you could try the following. Note, HDMI-A-1 is my monitor and 2560 1440 is the resolution I wanted, change it according to your needs.
Step 1
Use the info after Modeline in the step 2.
Step 2
Step 3
Step 1
Code: Select all
$ cvt 2560 1440
# 2560x1440 59.96 Hz (CVT 3.69M9) hsync: 89.52 kHz; pclk: 312.25 MHz
Modeline "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync
Step 2
Code: Select all
$ sudo xrandr --newmode "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync
Code: Select all
$ sudo xrandr --addmode HDMI-A-1 "2560x1440_60.00"
| Raspberry Pi 4-8GB | 2.0GHz | over_voltage@5 |
| Raspberry Pi OS 32bit |
| https://github.com/bassamanator/raspberrypi-scripts |
| Raspberry Pi OS 32bit |
| https://github.com/bassamanator/raspberrypi-scripts |