Bug 484129 - KDE turns down screen brightness to low percentage
Summary: KDE turns down screen brightness to low percentage
Status: RESOLVED WORKSFORME
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6, regression
Depends on:
Blocks:
 
Reported: 2024-03-21 07:08 UTC by Szőts Ákos
Modified: 2024-09-03 15:19 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szőts Ákos 2024-03-21 07:08:37 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

After resuming from sleep or when I switch to a different input on my monitor, the screen brightness is down to 9%. I have to manually align it on my monitor back to 20-something just to notice that KDE didn't check its current value and sets it to 9% again.

So in the applet I set it to 20% but after a suspend/resume cycle or when I switch to a different input with my KDE PC is still on, I see _on the other input_ that my screen brightness is down again.

In "Power saving" module the "Change screen brightness" option is off, so I don't know where else to turn it off within KDE.

Anyhow, I switched off DDC/CI inside my monitor which breaks some of other stuff but it's still less annoying that way.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240318
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-1-default (64-bit)
Graphics Platform: X11
Graphics Processor: NVIDIA GeForce RTX
System Version: 1.0

ADDITIONAL INFORMATION
Comment 1 Re Play 2024-04-05 12:58:11 UTC
Same issue on Arch Linux with 6.0.3 and Wayland. For me, it turns down the brightness to 5%. This issue only started to occur when I upgraded from 5.27 to 6.03. I think 5% was the brightness I had my monitor set to when I performed the upgrade. So my guess is that since version 6 this value isn't overwritten correctly anymore. Did something change with how the monitor brightness is being saved between 5 and 6?

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.8.2-arch2-1 (64-bit)
Graphics Platform: Wayland

HARDWARE
Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor
Memory: 31,1 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B650 AORUS ELITE AX
Comment 2 Jakob Petsovits 2024-07-29 12:26:10 UTC
(In reply to Szőts Ákos from comment #0)
> In "Power saving" module the "Change screen brightness" option is off, so I
> don't know where else to turn it off within KDE.

I'd say it's probably "Dim automatically", which also reduces monitor brightness. Could you try out disabling that instead of all DDC brightness controls? If that's the culprit, that would make this bug report a duplicate of Bug 452492 (*).

(*) The short version is that Plasma/PowerDevil doesn't (yet) store and restore brightness by itself across sleep or disconnection. A lot of work has gone into per-display brightness support, which brings us closer to getting this fixed properly. But we're not quite there yet.
Comment 3 Jakob Petsovits 2024-07-29 12:31:14 UTC
(In reply to Re Play from comment #1)
> So my guess is that since version 6 this value isn't overwritten correctly anymore.
> Did something change with how the monitor brightness is being saved between 5 and 6?

A little bit, but not in a way that would persist your original brightness value at the time of upgrade. As mentioned above, Plasma doesn't store monitor brightness in the first place and that's the root of some bugs because the monitor isn't always around when Plasma wants to make a change to brightness or revert it to the previous value.
Comment 4 Bug Janitor Service 2024-08-13 03:46:43 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2024-08-28 03:47:43 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.
Comment 6 gwarser 2024-09-02 08:57:58 UTC
Happened to me right now. I have brightness set to 20%. Set my power config yesterday to "Dim automatically" after 4min, "Turn off screen" after 6min, sleep after 9 minutes and use hybrid sleep. Today I noticed new Manjaro update, so I leave my PC when it was updating. When I return and wake up my PC, the brightness was set to 6%.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.11.0-rc4-7-MANJARO (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Manufacturer: Micro-Star International Co., Ltd
Product Name: MS-7B86
System Version: 4.0
Comment 7 Jakob Petsovits 2024-09-02 09:09:48 UTC
(In reply to gwarser from comment #6)
> Happened to me right now. I have brightness set to 20%. Set my power config
> yesterday to "Dim automatically" after 4min, "Turn off screen" after 6min,
> sleep after 9 minutes and use hybrid sleep. Today I noticed new Manjaro
> update, so I leave my PC when it was updating. When I return and wake up my
> PC, the brightness was set to 6%.

Note that I'm looking at this issue - not sure if there's a separate issue from Bug 452492 or if this is an outright duplicate, but the problem is known and a solution is on my list of things I want to fix in the next little bit. I collected various thoughts in this developer-focused issue: https://invent.kde.org/plasma/powerdevil/-/issues/38