https://bugs.kde.org/show_bug.cgi?id=399646
Nate Graham <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Version Fixed In|5.24.3 |5.25 Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas |ma/powerdevil/commit/c6b7c7 |ma/powerdevil/commit/761fc8 |14af1d25d04bc820bc5ce554241 |a4bf4bd70bcd9aca63fc67382c9 |999901f |4ecf884 --- Comment #12 from Nate Graham <[email protected]> --- Git commit 761fc8a4bf4bd70bcd9aca63fc67382c94ecf884 by Nate Graham, on behalf of Max Ramanouski. Committed on 23/03/2022 at 19:00. Pushed by ngraham into branch 'master'. Write brightness to all raw devices On some laptops, there are multiple enabled raw backlight devices, and backlighthelper can't choose right device. For example: NVIDIA Optimus laptop, Lenovo 15ARH05. It has two GPUs: AMD and NVIDIA, both of them provide their backlight device, both backlight devices are raw type and enabled(in case prime is used). Backlighthelper without this fix selects NVIDIA device for backlight, but on this laptop brightness is controlled by AMD gpu, so user can't control brightness. This fix implements additional list for all raw devices. This list is loaded on initUsingBacklightType. List contains pairs of sysfs path and max brightness of device. When brightness is changed, backlighthelper goes through entries starting from second(first device is written by data from m_dirname) and writes brightness with correcting difference between max_brightness in different devices. For all other cases(read brightness and other) first raw device is used. FIXED-IN: 5.25 M +76 -71 daemon/backends/upower/backlighthelper.cpp M +5 -1 daemon/backends/upower/backlighthelper.h https://invent.kde.org/plasma/powerdevil/commit/761fc8a4bf4bd70bcd9aca63fc67382c94ecf884 -- You are receiving this mail because: You are watching all bug changes.
