Bug 330110 - garbled resolution when disconnecting and reconnecting external screen
Summary: garbled resolution when disconnecting and reconnecting external screen
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: scene-opengl (other bugs)
Version First Reported In: 4.11.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-18 02:26 UTC by Alex Makin
Modified: 2020-12-22 04:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:
thomas.luebking: Catalyst+


Attachments
garbled resolution when disconnecting and reconnecting external montior (2.09 MB, image/jpeg)
2014-01-18 02:29 UTC, Alex Makin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Makin 2014-01-18 02:26:29 UTC
Hello,

I'm using KDE with openSUSE 13.1 and the proprietary AMD catalyst fglrx drivers.  As a result, I need to include the following in xorg.conf to ensure both screens display correctly:

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Viewport   0 0
                Depth     24                        # Should not change from '24'
                Virtual 3840 1920                  ## (x+64, y) to workaround potential OGL rect. artifacts/
        EndSubSection                               ## fixed in Catalyst 9.8
EndSection

Output of xrandr -q with screen plugged in:

LVDS connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768       59.6*+
   1360x768       59.6  
   1280x768       59.6  
   1280x720       59.6  
   1024x768       59.6  
   1024x600       59.6  
   800x600        59.6  
   800x480        59.6  
   640x480        59.6  
DFP1 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080      60.0*+   50.0     59.9     60.1     50.0     60.0  
   1600x1200      60.0  
   1776x1000      50.0     59.9     50.0     60.0  
   1680x1050      50.0     60.0  
   1400x1050      60.0     50.0  
   1600x900       60.0     50.0  
   1280x1024      50.0     75.0     60.0  
   1440x900       50.0     75.0     59.9  
   1280x960       50.0     60.0  
   1280x800       50.0     59.8  
   1152x864       50.0     59.9     75.0  
   1280x768       50.0     59.8  
   1280x720       60.0     50.0     59.9  
   1024x768       50.0     75.0     70.1     60.0  
   1152x648       50.0     59.9  
   1024x600       50.0     75.0     70.1     60.0  
   800x600        50.0     72.2     75.0     60.3     56.2  
   720x576        59.9     50.0  
   800x480        50.0     72.2     75.0     60.3     56.2  
   720x480        50.0     60.0     59.9  
   640x480        50.0     75.0     72.8     66.8     59.9  
CRT1 disconnected (normal left inverted right x axis y axis)

Output of xrandr -q with screen unplugged:

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192                                                          
LVDS connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm                                  
   1366x768       59.6*+                                                                                                      
   1360x768       59.6                                                                                                        
   1280x768       59.6                                                                                                        
   1280x720       59.6  
   1024x768       59.6  
   1024x600       59.6  
   800x600        59.6  
   800x480        59.6  
   640x480        59.6  
DFP1 disconnected (normal left inverted right x axis y axis)
CRT1 disconnected (normal left inverted right x axis y axis)

When I disconnect the external monitor and reconnect, the laptop screen becomes garbled (as per the attached image).  

I've noticed that turning off compositing and turning it on fixes this problem.  



Reproducible: Always

Steps to Reproduce:
1. Install proprietary fglrx drivers
2. Have multi-monitor setup 
3. Disconnect external monitor
4. Re-connect monitor
Actual Results:  
Garbled resolution on laptop when re-connecting external monitor.

Expected Results:  
Both screens to use the right resolution.
Comment 1 Alex Makin 2014-01-18 02:29:28 UTC
Created attachment 84712 [details]
garbled resolution when disconnecting and reconnecting external montior
Comment 2 Olivier van der Toorn 2015-10-20 10:59:13 UTC
I'm using Plasma 5.4 on Gentoo with the Radeon driver and see similar things when unplugging, or plugging in, a secondary screen. For me it usually displays a set of random colors. I don't remember seeing anything like this with Plasma 4.
Comment 3 Thomas Lübking 2015-10-20 13:31:14 UTC
If you change the screen layout, funny things can happen to any Qt5 appliction.
See bug #341497
=> Do you also get this problem when disabling the "kscreen 2" daemon in "kcmshell5 kded" and activate the screen "by hand" (ie. with "xrandr --output <YOUR_OUTPUT_HERE> --auto")?

Another problem we had was about vertex buffer objects going invalid when being transferred between video and system RAM (Ati stealing nvidias code? ;-)

=> See bug #344326 - try to restart "kwin_x11 --replace &" from konsole and check whether there's a similar GL warning when de/activating screens.
Comment 4 Thiago Sueto 2020-11-22 04:05:41 UTC
Hello, is this still reproducible? Especially since Catalyst and Mesa now share the same amdgpu kernel driver since kernel 4.2.
Comment 5 Bug Janitor Service 2020-12-07 04:34:00 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2020-12-22 04:34:49 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!