Bug 494577 - Monitor Brightness Resets to Previous Dimmed Value After Screen Wakeup on Fedora KDE
Summary: Monitor Brightness Resets to Previous Dimmed Value After Screen Wakeup on Fed...
Status: CLOSED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Brightness and Color widget (show other bugs)
Version: master
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-12 00:36 UTC by hossainsany
Modified: 2024-11-16 06:25 UTC (History)
6 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 hossainsany 2024-10-12 00:36:29 UTC
SUMMARY
On Fedora 40 with KDE Plasma 6.2.0, the brightness of one of my two monitors (LG 24GN600-B) gets stuck at the previous dimmed value after the screen turns off due to power management. Adjusting the brightness slider no longer has the expected effect, and the monitor doesn't brighten beyond the dimmed value, requiring a restart to resolve the issue. The other monitor does not have this problem.

STEPS TO REPRODUCE
1. Set the brightness of the affected monitor to any value, e.g., 75%, through the brightness control menu.
2. Let the screen dim and then turn off automatically due to power management settings.
3. Wake the screen back up.

OBSERVED RESULT
The monitor should restore the brightness to the previously set value (e.g., 75%).

EXPECTED RESULT
The monitor brightness is stuck at the dimmed value, even though the brightness slider can be set to 100%. Adjusting the brightness slider doesn't increase the actual screen brightness above the dimmed value. Setting it to a lower value (e.g., 10%) does dim the monitor further, but no value higher than the dimmed value makes the screen brighter. A system restart is required to restore normal brightness behavior.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 40 KDE Plasma
KDE Plasma Version:  6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Comment 1 S. Umar 2024-10-20 12:28:16 UTC
I can confirm this on the same setting (Fedora 40 with all updates) but DELL monitors. One has to set brightness every time.
Comment 2 Luca 2024-10-20 15:33:45 UTC
I can confirm this issue as well with multiple systems and setups. I'm running archlinux.
Comment 3 S. Umar 2024-10-20 15:45:02 UTC
In my case it is not happening on my home desktop (same configuration) but a single monitor. Is this true for everyone?
Comment 4 Luca 2024-10-20 15:48:44 UTC
for me it happens with all external monitors independent of the manufacturer. the brightness can be restored manually by changing the value in brightness app which indicates that the value corresponding value is not considered after the wakeup.
Comment 5 S. Umar 2024-10-20 15:50:29 UTC
By external monitor you mean you are using a laptop with an external monitor?
Comment 6 Luca 2024-10-20 16:51:54 UTC
yes, that's correct
Comment 7 Alan Swartz 2024-10-22 19:47:10 UTC
I have the same issue on my desktop using a single Dell monitor.
Comment 8 kde.q7h2f 2024-11-15 09:15:10 UTC
Same here: external monitor gets to 80% brightness each time I reboot.

My configuration is:
- Operating System: Fedora Linux 40
- KDE Plasma Version: 6.2.3
- KDE Frameworks Version: 6.8.0
- Qt Version: 6.7.2
- Kernel Version: 6.11.6-200.fc40.x86_64 (64-bit)
- Graphics Platform: Wayland
- Processors: 12 × AMD Ryzen 5 5625U with Radeon Graphics
- Memory: 14.4 GiB of RAM
- Graphics Processor: AMD Radeon Graphics
- Manufacturer: LENOVO
- Product Name: 21ED004NSP
- System Version: ThinkPad E15 Gen 4

Monitor: Dell Inc. DELL U2415

Please, let me know if you would need extra information about the issue.
Comment 9 S. Umar 2024-11-15 14:25:18 UTC
Upgraded to Fedora 41, same issue !
Comment 10 Jakob Petsovits 2024-11-15 19:03:28 UTC
That's a lot of confirmations. I wonder if you are all hitting the same issue, or if they are slightly different.

The original bug report mentions that the brightness slider doesn't work as expected anymore, "the monitor doesn't brighten beyond the dimmed value". This would happen if hardware brightness controls are lost and KWin on Wayland uses software brightness instead. There was a change that went into Plasma 6.2.3, which will make sure that the slider disappears instead of now confusingly controlling software brightness: https://invent.kde.org/plasma/kwin/-/merge_requests/6670. But this does not fix the underlying issue that Plasma gave up on hardware brightness controls.

There was another change that went into 6.2.1, which will retry any monitor commands several times (spaced out over a few seconds) before giving up on hardware brightness: https://invent.kde.org/plasma/powerdevil/-/merge_requests/441 plus a small addition for completeness, https://invent.kde.org/plasma/powerdevil/-/merge_requests/445.

The initial bug report was reported against Plasma 6.2.0 - could I ask for confirmation from the OP (hossainsany@proton.me) to report if this is still failing for you?

Other comments are mentioning that non-dimmed brightness needs to be restored by adjusting the slider in the brightness applet. This indicates that hardware brightness controls are generally working, so the root cause would be different from the originally reported issue. I improved the dimming code somewhat in Plasma 6.2.1 by restoring brightness values for each display individually: https://invent.kde.org/plasma/powerdevil/-/merge_requests/433. However, this isn't yet good enough if a dimmed monitor was unplugged and only comes back later. We need to further improve robustness for un-dimming monitors. Also see: https://invent.kde.org/plasma/powerdevil/-/issues/38
Comment 11 S. Umar 2024-11-15 20:16:58 UTC
I am at frameworks 6.8.0, plasma 6.2.3, apps 24.08.3 on Fedora 41. This is only happening on my dual monitor desktop, not on my home desktop with a single monitor (all DELL but different models, the dual monitors are the same model). When screen goes to sleep and you wake it up with mouse movement (no locking) the screens are dimmed. Brightness slider still shows the brightness at the original setting.
Moving the slider slightly restores the brightness.
Comment 12 hossainsany 2024-11-15 21:32:00 UTC
(In reply to Jakob Petsovits from comment #10)
> That's a lot of confirmations. I wonder if you are all hitting the same
> issue, or if they are slightly different.
> 
> The original bug report mentions that the brightness slider doesn't work as
> expected anymore, "the monitor doesn't brighten beyond the dimmed value".
> This would happen if hardware brightness controls are lost and KWin on
> Wayland uses software brightness instead. There was a change that went into
> Plasma 6.2.3, which will make sure that the slider disappears instead of now
> confusingly controlling software brightness:
> https://invent.kde.org/plasma/kwin/-/merge_requests/6670. But this does not
> fix the underlying issue that Plasma gave up on hardware brightness controls.
> 
> There was another change that went into 6.2.1, which will retry any monitor
> commands several times (spaced out over a few seconds) before giving up on
> hardware brightness:
> https://invent.kde.org/plasma/powerdevil/-/merge_requests/441 plus a small
> addition for completeness,
> https://invent.kde.org/plasma/powerdevil/-/merge_requests/445.
> 
> The initial bug report was reported against Plasma 6.2.0 - could I ask for
> confirmation from the OP (hossainsany@proton.me) to report if this is still
> failing for you?
> 
> Other comments are mentioning that non-dimmed brightness needs to be
> restored by adjusting the slider in the brightness applet. This indicates
> that hardware brightness controls are generally working, so the root cause
> would be different from the originally reported issue. I improved the
> dimming code somewhat in Plasma 6.2.1 by restoring brightness values for
> each display individually:
> https://invent.kde.org/plasma/powerdevil/-/merge_requests/433. However, this
> isn't yet good enough if a dimmed monitor was unplugged and only comes back
> later. We need to further improve robustness for un-dimming monitors. Also
> see: https://invent.kde.org/plasma/powerdevil/-/issues/38

Hi, after upgrading to Fedora 41, the issue has been resolved for me. The monitor brightness now behaves correctly after waking up.

Current software versions:
    KDE Plasma Version: 6.2.3
    KDE Frameworks Version: 6.8.0
    Qt Version: 6.8.0
    Kernel Version: 6.11.7-300.fc41.x86_64 (64-bit)
    Graphics Platform: Wayland

Thank you for the updates and improvements!
Comment 13 S. Umar 2024-11-15 21:44:25 UTC
Is this a singe monitor or dual monitor? single monitor systems are behaving correctly for me too but not the dual monitor system.
Comment 14 S. Umar 2024-11-15 21:51:24 UTC
Just noticed that you are on Wayland....I am on X11 perhaps this is a hint.
Comment 15 hossainsany 2024-11-15 21:54:09 UTC
(In reply to S. Umar from comment #13)
Mine's dual monitor from different brands, one is LG and the other is Asus. I was having the issue on the LG monitor.
Comment 16 Jakob Petsovits 2024-11-16 04:49:39 UTC
Thanks for the quick response(s). If the originally reported issue is working now for the reporter, I think it's best to close this bug as fixed so that we don't end up discussing subtly different issues in here, when those issues are hard to tell apart from each other.

Everyone who is still experiencing a related bug, please open a new bug report for your particular setup and reproduction steps. You can also check if any of the other reported issues are a close match and follow those instead - here's the link to all open PowerDevil bugs which would include brightness control issues:

https://bugs.kde.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=CONFIRMED&bug_status=ASSIGNED&bug_status=REOPENED&list_id=2900442&product=Powerdevil&query_format=advanced

Thank you, and sorry for the hassle.