I have spent days trying to google a solution to no avail, did not find a solution on the forum either so here goes:
Config:
I have two screens connected to a Intel NUC 11;
1. HDMI, 1920x1080 60Hz (set as Primary)
2. Thunderbolt3 (USB-C), 2560x1440 60Hz
Layout is 2 - 1
Running Bullseye, X11, Gnome.
Problem:
On cold boot every is fine, the resolutions I want are configured. But when I leave it alone and it locks the screen, strange things happen when I unlock it. Sometimes only one of the below is happening, but usually both;
- Layout has been switched. ie to move mouse from 1 to 2 I must use the outer edges, not the adjacent ones as configured. Checking 'Display settings' it indeed reflects this too.
- Lower resolution than I have set is chosen and active. Sometimes it is possible to select the correct resolution and apply, but often the higher resolutions are missing.
After a reboot, all modes are available, and correct resolution can be chosen. A logout/login is not enough though, nor is a restart of GDM3.
This is what I get from xrandr when this happens, right now screen layout has been reversed and the higher resolutions are missing from xrandr output;
Code: Select all
$ xrandr --listmonitors
Monitors: 2
0: +*DP-3 1920/621x1080/341+0+0 DP-3
1: +DP-1 1920/697x1080/392+1920+0 DP-1
$ xrandr -q
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
DP-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 697mm x 392mm
1920x1080 24.00* 23.98
1280x1024 75.02 60.02
1280x800 59.81
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
640x480 75.00 60.00 59.94
720x400 70.08
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-3 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 621mm x 341mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1152x864 75.00
1280x720 60.00 50.00 59.94
1440x576 50.00
1024x768 75.03 70.07 60.00
1440x480 60.00 59.94
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DP-4 disconnected (normal left inverted right x axis y axis)
Code: Select all
xrandr -q
Screen 0: minimum 320 x 200, current 4480 x 1440, maximum 16384 x 16384
DP-1 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 697mm x 392mm
3840x2160 60.00 + 30.00 29.97 29.56
2560x1440 59.95*
2048x1280 59.92
2048x1152 60.00
1920x1200 59.88
1920x1080 60.00 60.00 50.00 59.94 24.00 23.98
1600x1200 60.00
1680x1050 59.95
1280x1024 75.02 60.02
1280x800 59.81
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
640x480 75.00 60.00 59.94
720x400 70.08
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-3 connected primary 1920x1080+2560+139 (normal left inverted right x axis y axis) 621mm x 341mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1152x864 75.00
1280x720 60.00 50.00 59.94
1440x576 50.00
1024x768 75.03 70.07 60.00
1440x480 60.00 59.94
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DP-4 disconnected (normal left inverted right x axis y axis)
I do find it strange that xrandr detects cabling as being only DP (DisplayPort) as I have none of those.
Hope this makes sense to someone, or is enough to start debug.
**Note** For every time before reboot this happens the resolution gets worse (lower). Just logged in and are getting 1024x768 and no higher resolutions are available... Please help.
Thanks