Bug 388670

Summary: No 1080p or 720p resolutions on 4k display
Product: [Plasma] KScreen Reporter: bug2017
Component: commonAssignee: Sebastian Kügler <sebas>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: NOR    
Version: git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: edid.bin for Sharp LQ156D1JW04

Description bug2017 2018-01-08 10:14:45 UTC
Created attachment 109730 [details]
edid.bin for Sharp LQ156D1JW04

On KDE4 It was possible to switch to 1080p or 720p, both resolutions important for games, because the iGPU can't handle 4k with sufficient frame rate.
On Plasma5 the mode list is filled with 4:3 resulutions like 1920x1440. Selecting a resulition like 1080p in a game like sauerbraten results in a big black border (left and right black from the 4:3 mode, top and bottom to convert 4:3 back to 16:9)

The edid file contains only the native 4k resolutions.
Comment 1 Sebastian Kügler 2018-01-08 10:21:08 UTC
Thanks for the report!

Could you please run xrandr -q (assuming you're running X11, not Wayland) on this system and post the output here? This helps us to identify where the problem may lie.
Comment 2 bug2017 2018-01-08 10:34:45 UTC
The output on plasma5:

Screen 0: minimum 320 x 200, current 3840 x 2160, maximum 8192 x 8192
eDP-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 346mm x 194mm
   3840x2160     60.00*+
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   1600x1200     60.00  
   1400x1050     59.98  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)

The output from kde4 (old snapshot):

Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
eDP1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 350mm x 190mm
   3840x2160     60.00*+
   3200x1800     60.00  
   2880x1620     60.00  
   2560x1440     60.00  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     60.00  
   1920x1080     60.00  
   1600x1200     60.00  
   1400x1050     59.98  
   1600x900      60.00  
   1280x1024     60.02  
   1280x960      60.00  
   1368x768      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   640x480       59.94  
   720x405       60.00                                                                                                                         
   640x360       60.00                                                                                                                         
DP1 disconnected (normal left inverted right x axis y axis)                                                                                    
DP2 disconnected (normal left inverted right x axis y axis)                                                                                    
HDMI1 disconnected (normal left inverted right x axis y axis)                                                                                  
HDMI2 disconnected (normal left inverted right x axis y axis)                                                                                  
HDMI3 disconnected (normal left inverted right x axis y axis)                                                                                  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Comment 3 Sebastian Kügler 2018-01-08 10:52:56 UTC
Thanks for the quick reply!

I suppose the old snapshot also contains a different Xorg version or different (version) of the graphics driver?

In any case, your Xorg doesn't provide these modes anymore. The reasons for this can be manifold, but you can probably get them back by adding a modeline. Plasma just reads whatever information xrandr provides, so as soon as you get back the missing modes into xrandr, it'll also work with Plasma.

I'll mark this as an upstream problem, since we can't fix this in Plasma or KScreen, not because it's not an actual issue, but because it needs to be handled outside of Plasma's codebase.