Bug 495289 - after sleep, brightness of external monitor is not restored correctly
Summary: after sleep, brightness of external monitor is not restored correctly
Status: RESOLVED DUPLICATE of bug 452492
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 6.2.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-24 08:57 UTC by slartibart70
Modified: 2024-11-20 15:28 UTC (History)
3 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 slartibart70 2024-10-24 08:57:27 UTC
Let my laptop sleep overnight, after logging in to an existing plasma session, the external (DP) monitor is way too dark.
The only workaround is to log-off and log on again.
(fiddling with tools does not help)

My setup:
power-management: display & brightness: dim automatically: never
(interesting side-effect: changing the screen-brightness slider only affects the laptop built-in screen, not the external monitor)

My utility-script helps in setting the (for me) suitable config:
ddcutil --display 1 setvcp 0x10 30
brightnessctl -d 'amdgpu_bl1' set 20%

This does not help to regain intial brightness after wakeup, though

`kscreen-doctor -o` confirms my setup
Output: 1 eDP-1
        Brightness control: supported, set to 20%
Output: 2 DP-5
        Brightness control: supported, set to 30%
...this remains true even after waking up from sleep, although the brightness of the DP-connected monitor is too dark

These settings also correspond to the monitor-setup (hardware-keys). Asking my monitor-OSD/menu confirms that brightness is indeed 30%

Fiddling with 
sudo tee  /sys/class/backlight/amdgpu_bl1/brightness <<< 52
obviously only affects the built-in laptop-monitor, not the DP one

For me, this looks like plasma is doing some other kind of darkening that i cannot control on the commandline?
(any dbus commands that may help?)

Im prette fedup with the neccessity to logoff/login only to restore screen-brightness.
Yes, i can grab the plasmoid-brightness slider and pull the DP brightness all the way up to 80%, which then somehow matches my intended brightness.
This only helps temporarily, because logging off/on later remembers this setting and the DP monitor is waaay to bright (so i need to fix this with the ddcutil script above)

Something is not working correctly since plasma 6.2.0 (and still broken in 6.2.1 and 6.2.2)
any help is appreciated
Comment 1 slartibart70 2024-10-24 08:57:54 UTC
Operating System: Fedora Linux 40
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.11.5-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
Memory: 58,5 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: LENOVO
Product Name: 21K5000JGE
System Version: ThinkPad P14s Gen 4
Comment 2 Nate Graham 2024-11-20 15:28:16 UTC

*** This bug has been marked as a duplicate of bug 452492 ***