Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Display resolution changes after screen lock

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Dobeedoo
Posts: 30
Joined: 2018-01-24 05:50

Display resolution changes after screen lock

#1 Post by Dobeedoo »

Hi,
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)
And this is what it should look like

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 have tried different cables, so should not be about that, also have everything patched to latest, including the NUC's bios.

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

Dobeedoo
Posts: 30
Joined: 2018-01-24 05:50

Re: Display resolution changes after screen lock

#2 Post by Dobeedoo »

As no one here seems to know what this is all about, I'll update with the latest. Today the screen that are connected through USB-C (thunderbolt), but detected above as DP-1, did not wake up at all. The selected resolution when opening "Displays" was "1024x768 (4:3)", and the only other one was "800x600 (4:3)".

This can't only happen to me, do I really have that kind of luck? Any suggestions, anyone? Are there any better place to ask for help? Xrandr maintainer perhaps? What would you guys do?

CwF
Global Moderator
Global Moderator
Posts: 2625
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 190 times

Re: Display resolution changes after screen lock

#3 Post by CwF »

I'd be curious if this has anything to do with a deteriorating shared memory pool available for the video...? Maybe that doesn't/can't happen, I'm not the laptopish guy.

Dobeedoo
Posts: 30
Joined: 2018-01-24 05:50

Re: Display resolution changes after screen lock

#4 Post by Dobeedoo »

CwF wrote: 2022-11-27 18:42 I'd be curious if this has anything to do with a deteriorating shared memory pool available for the video...? Maybe that doesn't/can't happen, I'm not the laptopish guy.
Thanks for replying! You have an interesting angle... I'm not technical enough to diagnose this, but say there is a memory leak somewhere, that'd probably explain why it is getting worse and worse, until it (guessing now) don't have enough memory to drive both screens... and why a restart makes it all great again...

Though, this is no laptop, it's an Intel NUC 11, haven't touched the memory settings for video in bios, but might be a clue. Thanks!

Dobeedoo
Posts: 30
Joined: 2018-01-24 05:50

Re: Display resolution changes after screen lock

#5 Post by Dobeedoo »

For anyone interested, this is still an issue, no settings on the NUC itself changes this behaviour. Will test out a non-deb based distro just to see if same behaviour is following. I'd be surprised if it is hardware, but as of now, no clue. Please help if you have an idea. Thanks

Dobeedoo
Posts: 30
Joined: 2018-01-24 05:50

Re: Display resolution changes after screen lock

#6 Post by Dobeedoo »

It seems to be somewhat random(?!) After having got a strange resolution, and screen locked itself, it mended itself after a few logins... but kept changing. Another non-deb distro, not using Xrandr, did not show this behaviour... But I would so like to stick with Debian this time, though it seems unlikely anyone will find and fix this issue anytime soon...
anyways... Merry Christmas!

Post Reply