Bug 423781 - Corruption in systemsettings5 window and logoff pause/cancellation after suspend/resume with nvidia
Summary: Corruption in systemsettings5 window and logoff pause/cancellation after susp...
Status: RESOLVED DUPLICATE of bug 427329
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.19.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-02 05:19 UTC by Peter Levine
Modified: 2020-10-09 01:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
journalctl entries for systemsettings5 process initialization (4.08 KB, text/x-log)
2020-07-02 21:25 UTC, Peter Levine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Levine 2020-07-02 05:19:26 UTC
I switched back to using the Nvidia driver (450.51) after having used the intel driver with Nvidia offloading for a number of months.  My problem is that after I sleep/resume, the systemsettings sidebar is black.  Attempting to click in the area does nothing.  Also, attempting to logout is either delayed for a minute or entirely unsuccessful.  Disabling effects, switching rendering backends, and running 'plasmashell --replace' has no effect.  The problem occurs with or without the use of nvidia's power management systemd unit files.  The only thing that fixes it is to restart sddm or reboot.

STEPS TO REPRODUCE
1. Set "Lid closed" action to sleep in "Energy Saving"
2. Close lid and open lid
3. Open systemsettings5 or try to logoff

OBSERVED RESULT
See https://www.youtube.com/watch?v=G7jIDrTaTSQ


Operating System: Gentoo Linux
KDE Plasma Version: 5.19.2
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Kernel Version: 5.7.6-gentoo
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 31.1 GiB of RAM
Graphics Processor: GeForce GTX 1050/PCIe/SSE2
Comment 1 Peter Levine 2020-07-02 21:25:08 UTC
Created attachment 129853 [details]
journalctl entries for systemsettings5 process initialization
Comment 2 Peter Levine 2020-07-19 07:39:19 UTC
I've switched back to using the intel driver to render xorg-server. Though it seems that the issue doesn't show up, if I were to resume from sleep and then render systemsettings5 offloaded to nvidia (i.e., __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 systemsettings5), it loads with the same black area.  Rendered entirely with intel, there's no problem.
Comment 3 Mikhail "L117" Nikolenko 2020-08-27 12:31:30 UTC
Same here. Resuming on proprietary NVidia drivers causes System Settings to show black rectangle instead of sections.

Operating System: Gentoo Linux
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2
Kernel Version: 5.4.60-gentoo
OS Type: 64-bit
Processor: AMD FX(tm)-8120 Eight-Core Processor
Memory: 8 GiB
Graphics Processor: GeForce GT 1030
Comment 4 Mikhail "L117" Nikolenko 2020-08-27 12:34:45 UTC
Following nvidia module options are applied:

# cat /etc/modprobe.d/nvidia.conf
# Nvidia drivers support
alias char-major-195 nvidia
alias /dev/nvidiactl char-major-195

# To tweak the driver the following options can be used, note that
# you should be careful, as it could cause instability!! For more
# options see /usr/share/doc/nvidia-drivers-450.57-r1/README
#
# !!! SECURITY WARNING !!!
# DO NOT MODIFY OR REMOVE THE DEVICE FILE RELATED OPTIONS UNLESS YOU KNOW
# WHAT YOU ARE DOING.
# ONLY ADD TRUSTED USERS TO THE VIDEO GROUP, THESE USERS MAY BE ABLE TO CRASH,
# COMPROMISE, OR IRREPARABLY DAMAGE THE MACHINE.
options nvidia \
	NVreg_DeviceFileGID=27 \
	NVreg_DeviceFileMode=432 \
	NVreg_DeviceFileUID=0 \
	NVreg_ModifyDeviceFiles=1 \
	NVreg_PreserveVideoMemoryAllocations=1 \
	NVreg_TemporaryFilePath=/tmp \
	NVreg_UsePageAttributeTable=1 \
	NVreg_UpdateMemoryTypes=1 \
	NVreg_EnableMSI=1 \
	NVreg_RegisterForACPIEvents=1

options nvidia-drm modeset=1
Comment 5 Mikhail "L117" Nikolenko 2020-08-29 10:22:47 UTC
Tried suspend/resume with fresh KDE Neon (neon-user-20200827-0945) + Safe Graphics (Otherwise nouveau can not be removed easily after boot) and proprietary NVidia drivers. Everything works fine, no corruption. Seems like this bug is Gentoo-specific. I'll try to figure out what causes corruption.
Comment 6 Mikhail "L117" Nikolenko 2020-08-30 09:52:50 UTC
Downgrade to nvidia-drivers-440-x solved this issue for me.
Comment 7 Peter Levine 2020-10-08 00:34:02 UTC

*** This bug has been marked as a duplicate of bug 427329 ***
Comment 8 Darin Miller 2020-10-09 01:09:01 UTC
NVidia driver 455.28 fixes the System Settings "Black Menu" issue on Kubuntu 20.10.