Bug 350466 - Changing resolution via xrandr randomly makes desktop/wallpaper disappear
Summary: Changing resolution via xrandr randomly makes desktop/wallpaper disappear
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop Containment (show other bugs)
Version: 5.3.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 21:58 UTC by Soukyuu
Modified: 2020-01-24 15:29 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Soukyuu 2015-07-21 21:58:58 UTC
I am using xrandr to switch between 1080p and 1280x1024 on my second monitor(s). Now that arch linux packages are compiled with Qt5.5, there is no more plasma crashing on connecting a different monitor. However, sometimes the wallpaper on the second monitor will disappear, together with the right-click menu (desktop settings, etc).

Reproducible: Sometimes

Steps to Reproduce:
1. Have two monitors connected
2. Disconnect the second monitor
3. Connect another monitor
4. Change resolution with xrandr

Actual Results:  
Resolution changed, wallpaper is gone on the second monitor only, no right-click menu

Expected Results:  
Resolution changed, wallpaper is present, right-click menu working

The logs don't show anything suspicious around the time it happens. So far it happened roughly every 3rd time I changed the resolution. It doesn't seem to be a crash like bug#350195

I am using the following xranrdr command line:
"xrandr --output DVI-I-3 --auto --pos 1920x60" to switch from TV to PC monitor resolution
"xrandr --output DVI-I-3 --mode 1920x1080 --rate 59.94 --right-of DVI-I-2" the other way around

The kscreen kcm is not installed, I'm using a custom xorg.conf which sets both monitors to their native resolution at boot. The behavior started happening after updating to plasma 5.3.2 built with Qt5.5.
Comment 1 Soukyuu 2015-07-21 22:01:37 UTC
Forgot to add, the bug also affects other actions on the desktop, like mouse wheel scrolling from one virtual desktop to another. Windows can still be placed on the second monitor, and changing the virtual desktop via keyboard shortcut/first monitor wheel scroll/panel widget works and show the switching animation.

If it matters, I'm running nvidia 340xx proprietary drivers.
Comment 2 Soukyuu 2015-07-26 13:57:28 UTC
It's definitely the plasmashell process where the bug happens, killall plasmashell && plasmashell fixes the missing desktop.
Comment 3 ego 2015-10-12 12:51:54 UTC
I can confirm this behaviour too.

After fresh reboot of a laptop connected to an external monitor (directly or via docking station makes no difference) the external display goes blank after login to kde, however randomly, the laptop display instead goes blank. Before login to kde both displays are showing the login-screen. Also, while the laptop screen is blank, if closing and opening the laptop lid the plasma desktop seems to be restarted and both the external and the laptop display shows the desktop for a while before triggering a crash of plasma desktop.

I have noted in the system settings "Display Configuration" that the external monitor is only randomly detected, while using xrandr it is always detected. Running xrandr --auto seems to always produce output on both screens. Plasma 5, kscreen and xrandr does not seems to play nice together!?

KDE plasma 5.4.1
Kernel 4.1.10-200-fc22-x86_64
Intel i7-5600U
Comment 4 Jan Kriho 2015-10-14 13:52:56 UTC
I confirm the bug on Plasma 5.4.2 and Qt 5.4.2

After connecting second monitor to my laptop (Haswell Intel graphics) the plasma shell just moves to the external monitor and black background remains on the laptop display.

xrandr output after connecting second monitor
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
eDP1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 309mm x 173mm
   1920x1080     60.05*+  59.93    48.04  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+
   1280x1024     60.02  
   1440x900      59.90  
   1280x800      59.91                                                                                                                                                                                                                         
   1152x864      75.00                                                                                                                                                                                                                         
   1024x768      70.07    60.00                                                                                                                                                                                                                
   800x600       60.32    56.25                                                                                                                                                                                                                
   640x480       66.67    60.00                                                                                                                                                                                                                
   720x400       70.08                                                                                                                                                                                                                         
HDMI2 disconnected (normal left inverted right x axis y axis)                                                                                                                                                                                  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Comment 5 Nate Graham 2020-01-22 18:54:04 UTC
Can anyone confirm this with Plasma 5.17 or the 5.18 beta?
Comment 6 Jan Kriho 2020-01-24 14:03:52 UTC
I have not encountered the bug for some time (using both 5.17 and 5.14 Plasma versions)
Comment 7 Nate Graham 2020-01-24 15:29:20 UTC
Oh good!