Skip to contentSkip to conversation

Screen resolution wrong after turning monitor off and on

Bug 107858 [email protected] 1 participant 10 messages Sep 7, 2018 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=107858

Bug ID: 107858
Summary: Screen resolution wrong after turning monitor off and
on
Product: DRI
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

This is related to bug 105046, which was closed as RESOLVED FIXED. Unfortunately, the issue still exists. This is my configuration:

OS: OpenSuse Tumbleweed with kernel 4.18.0

Installed amdgpu packages:
libdrm_amdgpu1-32bit-2.4.93-1.1.x86_64
libdrm_amdgpu1-2.4.93-1.1.x86_64
xf86-video-amdgpu-18.0.1-2.1.x86_64

Prozessor: AMD Ryzen 5 2400G with Vega Graphics
Monitor:   Dell U3011 (resolution 2560x1600) connected via DisplayPort

After switching the monitor off and on, the screen resolution is sometimes changed to a very low value. Most of the time there's no problem, but sometimes the resolution is changed to 800x600. A reboot is required to set it back to 2560x1600.

It seems, that there are several different error cases. In the past, I've seeen messages in the dmesg output and in the syslog, but just now neither dmesg nor the syslog did show any errors, there are only the following lines added to /var/log/Xorg.0.log:

[ 11925.228] (II) AMDGPU(0): EDID vendor "DEL", prod id 16485
[ 11925.228] (II) AMDGPU(0): Using hsync ranges from config file
[ 11925.228] (II) AMDGPU(0): Using vrefresh ranges from config file
[ 11925.228] (II) AMDGPU(0): Printing DDC gathered Modelines:
[ 11925.228] (II) AMDGPU(0): Modeline "2560x1600"x0.0  268.50  2560 2608 2640
2720  1600 1603 1609 1646 +hsync -vsync (98.7 kHz eP)
[ 11925.228] (II) AMDGPU(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052
2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1920x1080i"x0.0   74.25  1920 2008 2052
2200  1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1280x720"x0.0   74.25  1280 1390 1430
1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "720x480"x0.0   27.00  720 736 798 858 
480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1440x480i"x0.0   27.00  1440 1478 1602
1716  480 488 494 525 interlace -hsync -vsync (15.7 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1440x576i"x0.0   27.00  1440 1464 1590
1728  576 580 586 625 interlace -hsync -vsync (15.6 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "640x480"x0.0   25.18  640 656 752 800 
480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "720x576"x0.0   27.00  720 732 796 864 
576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1280x720"x0.0   74.25  1280 1720 1760
1980  720 725 730 750 +hsync +vsync (37.5 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1920x1080i"x0.0   74.25  1920 2448 2492
2640  1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1920x1080"x0.0  148.50  1920 2448 2492
2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1920x1080"x0.0   74.25  1920 2558 2602
2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "800x600"x0.0   40.00  800 840 968 1056 
600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "640x480"x0.0   31.50  640 656 720 840 
480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "720x400"x0.0   28.32  720 738 846 900 
400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440
1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136
1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184
1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "800x600"x0.0   49.50  800 816 896 1056 
600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344
1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1280x800"x0.0   83.50  1280 1352 1480
1680  800 803 809 831 -hsync +vsync (49.7 kHz e)
[ 11925.228] (II) AMDGPU(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440
1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[ 11925.229] (II) AMDGPU(0): Modeline "1600x1200"x0.0  162.00  1600 1664 1856
2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz e)
[ 11925.229] (II) AMDGPU(0): Modeline "1920x1200"x0.0  193.25  1920 2056 2256
2592  1200 1203 1209 1245 -hsync +vsync (74.6 kHz e)
[ 11925.229] (II) AMDGPU(0): Modeline "1920x1440"x0.0  234.00  1920 2048 2256
2600  1440 1441 1444 1500 -hsync +vsync (90.0 kHz e)
[ 11925.963] (II) AMDGPU(0): Allocate new frame buffer 800x600
[ 11925.963] (II) AMDGPU(0):  => pitch 3584 bytes

The EDID information is correct, but for some reason the amdgpu driver asumes, that the highest possible resolution is 800x600.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=107858

--- Comment #1 from Michel Dänzer <[email protected]> --- (In reply to Lothar Paltins from comment #0)

Quoted 6 lines
[ 11925.963] (II) AMDGPU(0): Allocate new frame buffer 800x600
[ 11925.963] (II) AMDGPU(0):  => pitch 3584 bytes

The EDID information is correct, but for some reason the amdgpu driver asumes, that the highest possible resolution is 800x600.

The drivers or even the X server never change the display configuration on their own. The change to 800x600 above must have been done by a client. Which desktop environment are you using?

Please attach the full Xorg log file, and the output of dmesg and xrandr after the problem occurred.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107858

--- Comment #2 from Lothar Paltins <[email protected]> --- Created attachment 141484
--> https://bugs.freedesktop.org/attachment.cgi?id=141484&action=edit
dmesg output before and after monitor power cycle

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107858

--- Comment #3 from Lothar Paltins <[email protected]> --- Created attachment 141485
--> https://bugs.freedesktop.org/attachment.cgi?id=141485&action=edit
Xorg.0.log output before monitor power cycle

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107858

--- Comment #4 from Lothar Paltins <[email protected]> --- Created attachment 141486
--> https://bugs.freedesktop.org/attachment.cgi?id=141486&action=edit
Xorg.0.log after monitor power cycle

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107858

--- Comment #5 from Lothar Paltins <[email protected]> --- Created attachment 141487
--> https://bugs.freedesktop.org/attachment.cgi?id=141487&action=edit
xrandr output before monitor power cycle

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107858

--- Comment #6 from Lothar Paltins <[email protected]> --- Created attachment 141488
--> https://bugs.freedesktop.org/attachment.cgi?id=141488&action=edit
xrandr output after monitor power cycle

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107858

--- Comment #7 from Lothar Paltins <[email protected]> ---
But the client must know the possible resolutions and this information must come from the X server and the driver.

I'm using the KDE5 desktop environment and I've attached the appropriate log files. The dmesg output is the same before and after the monitor power cycle, the other files have the suffix _good and _bad. Now there are lines with "get vblank counter failed: Invalid argument" in the Xorg.0.log file, which I didn't see previously. This all looks like a random problem, maybe the use of an unititialized variable or an out of bounds array access.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107858

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected],
                   |                            |[email protected]

--- Comment #8 from Michel Dänzer <[email protected]> --- (In reply to Lothar Paltins from comment #7)

Quoted 2 lines

But the client must know the possible resolutions and this information must come from the X server and the driver.

Right, looks like there's indeed a problem with the kernel driver DC code obtaining / processing EDID.

Quoted 2 lines

Now there are lines with "get vblank counter failed: Invalid argument" in the Xorg.0.log file, which I didn't see previously.

Those can happen occasionally with a DisplayPort connection, they should be harmless.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107858

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #9 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/516.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel