Display settings lost when leaving screen saver / screen switch

Bug #1993027 reported by edA-qa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kwin (Ubuntu)
Opinion
Undecided
Unassigned

Bug Description

The settings of the screen, in particular brightness and gamma, are being lost in numerous situations:
- leaving a screen saver/lock
- switching users
- random time
- logging in

This applies to settings set via xrandr, or using the nvidia-settings tool.

This did not happen in previous versions of Ubuntu (20.04 for example). I am using Kubuntu as a desktop.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-50.56-generic 5.15.60
Uname: Linux 5.15.0-50-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia wl
.proc.driver.nvidia.capabilities.gpu0: Error: path was not a regular file.
.proc.driver.nvidia.capabilities.mig: Error: path was not a regular file.
.proc.driver.nvidia.gpus.0000.65.00.0: Error: path was not a regular file.
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 515.76 Mon Sep 12 19:21:56 UTC 2022
 GCC version:
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: unknown
CompositorRunning: None
CurrentDesktop: KDE
Date: Sat Oct 15 11:43:15 2022
DistUpgraded: 2022-09-22 20:03:38,859 ERROR found exception: 'E:Sub-process /usr/bin/dpkg returned an error code (1)'
DistroCodename: jammy
DistroVariant: ubuntu
DkmsStatus:
 bcmwl/6.30.223.271+bdcom, 5.15.0-48-generic, x86_64: installed
 bcmwl/6.30.223.271+bdcom, 5.15.0-50-generic, x86_64: installed
 virtualbox/6.1.38, 5.15.0-48-generic, x86_64: installed
 virtualbox/6.1.38, 5.15.0-50-generic, x86_64: installed
ExtraDebuggingInterest: No
GraphicsCard:
 NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] [10de:1c03] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. GP106 [GeForce GTX 1060 6GB] [1043:85a4]
MachineType: Micro-Star International Co., Ltd. MS-7A94
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-50-generic root=UUID=937cdc48-c0d2-45e6-a578-a819d2b1378f ro quiet splash vt.handoff=7
SourcePackage: xorg
UpgradeStatus: Upgraded to jammy on 2022-09-22 (22 days ago)
dmi.bios.date: 07/12/2019
dmi.bios.release: 5.13
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.B0
dmi.board.asset.tag: Default string
dmi.board.name: X299 RAIDER (MS-7A94)
dmi.board.vendor: Micro-Star International Co., Ltd.
dmi.board.version: 1.0
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Micro-Star International Co., Ltd.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1.B0:bd07/12/2019:br5.13:svnMicro-StarInternationalCo.,Ltd.:pnMS-7A94:pvr1.0:rvnMicro-StarInternationalCo.,Ltd.:rnX299RAIDER(MS-7A94):rvr1.0:cvnMicro-StarInternationalCo.,Ltd.:ct3:cvr1.0:skuDefaultstring:
dmi.product.family: Default string
dmi.product.name: MS-7A94
dmi.product.sku: Default string
dmi.product.version: 1.0
dmi.sys.vendor: Micro-Star International Co., Ltd.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.0.5-0ubuntu0.1
version.libgl1-mesa-glx: libgl1-mesa-glx 22.0.5-0ubuntu0.1
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
edA-qa (eda-qa) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Supporting manual xrandr settings is generally not a priority for shell developers. The shell expects to own and control everything, and that the user has chosen their settings in the GUI provided by the shell / desktop environment.

But we can make it an enhancement request to see if it's possible for them all to co-exist.

affects: xorg (Ubuntu) → ubuntu
affects: ubuntu → kwin (Ubuntu)
Revision history for this message
edA-qa (eda-qa) wrote :

I think the limitation would be okay if the system provided a way to adjust the display properties. But there is no brightness/contrast setting, at least not in the Kubuntu system settings. If there is actually a hidden config variable somewhere, I'd be happy to set that.

That is, I use xrandr because I don't have ability to control the screen brightness in the GUI provided settings.

Note, this also applies to the settings set by nvidia-settings. So there was an expectation in the past the settings would not be changed elsewhere. I think tools like redshift, and other brightness control apps, are also expecting their settings to be retained.

Revision history for this message
Scarlett Gately Moore (scarlettmoore) wrote :

Brightness can be set under systemsettings -> power management. Unfortunately, contrast cannot. There have been workarounds with colorschemes eg: https://www.reddit.com/r/kde/comments/nqkka3/guide_increasing_contrast_on_blurred_screens/

This is not something we ( kubuntu ) can fix. I would suggest doing a feature request upstream bugs.kde.org under systemsettings. Thanks

Changed in kwin (Ubuntu):
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.