https://bugs.kde.org/show_bug.cgi?id=495003
sun yuanze <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|[email protected] |[email protected] CC| |[email protected] --- Comment #8 from sun yuanze <[email protected]> --- Created attachment 198770 --> https://bugs.kde.org/attachment.cgi?id=198770&action=edit a evidence file for the bug #495003 which is about the brightness. Same symptom on an Intel i915 laptop, so this is not AMDGPU-specific, and the measurements below narrow it down to "PowerDevil scales against the wrong maximum" rather than a failed write. ENVIRONMENT ThinkPad E14 Gen 2, i5-1135G7 (Iris Xe, i915), Plasma 6.8.3, powerdevil 6.8.3, Wayland, Arch Linux, kernel 7.3.5-arch1-1. The only backlight device is /sys/class/backlight/intel_backlight with max_brightness = 96000. After one s2idle suspend/resume (lid close, ~56 min asleep) the panel came back visibly dim while the applet reported 100%: $ busctl --user call org.kde.Solid.PowerManagement \ /org/kde/Solid/PowerManagement/Actions/BrightnessControl \ org.kde.Solid.PowerManagement.Actions.BrightnessControl brightness i 10000 $ ... brightnessMax i 10000 $ cat /sys/class/backlight/intel_backlight/{brightness,actual_brightness,max_brightness} 28801 28801 96000 MAPPING Probing setBrightness() and reading back from sysfs: KDE slider 10% 25% 50% 75% 100% sysfs 2881 7201 14401 21601 28801 That is: raw = round(kde/10000 * 0.3 * 96000). Every write succeeds, but only against 30% of the real range. Comment 5 reports brightness = 19661 with max = 65535, which is also exactly 0.3 * max. Two different GPUs landing on the same 30% factor looks like a hard-coded value somewhere rather than a random stale read, so it may be worth checking what multiplies the 0-10000 range. HARDWARE AND KERNEL ARE FINE Writing 96000 directly through logind (Session.SetBrightness("backlight", "intel_backlight", 96000)) immediately gives full brightness, with no other change. And, as in comment 6, "systemctl --user restart plasma-powerdevil.service" restores correct scaling (setBrightness(5000) -> 48000, setBrightness(10000) -> 96000). ~/.config/powerdevilrc contains no saved brightness (only LidAction), and systemd-backlight@ only runs at boot/shutdown, so this is not a persisted value. The wrong scaling persists for the whole session; I have seen it start only once so far. REPRODUCTION HELP Where is the device maximum read, and is it supposed to be refreshed on udev change or on PrepareForSleep(false)? If a debug category logs the value being read, I can sample max_brightness across several suspend cycles and attach the result. -- You are receiving this mail because: You are watching all bug changes.
