Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package liblxqt for openSUSE:Factory checked in at 2026-05-08 20:47:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/liblxqt (Old) and /work/SRC/openSUSE:Factory/.liblxqt.new.1966 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "liblxqt" Fri May 8 20:47:21 2026 rev:31 rq:1352051 version:2.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/liblxqt/liblxqt.changes 2026-04-22 16:58:21.344920670 +0200 +++ /work/SRC/openSUSE:Factory/.liblxqt.new.1966/liblxqt.changes 2026-05-08 20:47:22.988192685 +0200 @@ -1,0 +2,6 @@ +Fri May 8 15:56:49 UTC 2026 - Shawn Dunn <[email protected]> + +- Add 378.patch + * Fixes brightness adjustment on amdgpu systems + +------------------------------------------------------------------- New: ---- 378.patch ----------(New B)---------- New: - Add 378.patch * Fixes brightness adjustment on amdgpu systems ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ liblxqt.spec ++++++ --- /var/tmp/diff_new_pack.0hhpEm/_old 2026-05-08 20:47:23.992233863 +0200 +++ /var/tmp/diff_new_pack.0hhpEm/_new 2026-05-08 20:47:23.996234027 +0200 @@ -26,6 +26,10 @@ Source1: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc Source2: %{name}.keyring +# PATCH-FIX-UPSTREAM https://github.com/lxqt/liblxqt/pull/378 +# Makes the brightness adjustment work again on amd graphics +Patch0: 378.patch + BuildRequires: cmake >= 3.5.0 BuildRequires: fdupes BuildRequires: gcc-c++ ++++++ 378.patch ++++++ >From 63e47111bd89ca8b23f5755d94d027229581f05d Mon Sep 17 00:00:00 2001 From: stefonarch <[email protected]> Date: Tue, 28 Apr 2026 09:14:32 +0200 Subject: [PATCH] Read brightness instead of actual brightness with amdgpu --- .../driver/libbacklight_backend.c | 40 ++++++++++++------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/lxqtbacklight/linux_backend/driver/libbacklight_backend.c b/lxqtbacklight/linux_backend/driver/libbacklight_backend.c index 1ac0f2e..e1eed70 100644 --- a/lxqtbacklight/linux_backend/driver/libbacklight_backend.c +++ b/lxqtbacklight/linux_backend/driver/libbacklight_backend.c @@ -26,10 +26,10 @@ * END_COMMON_COPYRIGHT_HEADER */ /******************************************************************************** - * This library uses Linux /sys/class/backlight files to read and change the + * This library uses Linux /sys/class/backlight files to read and change the * backlight level. - * - * If screen backlight can be controlled, the Linux kernel will show inside + * + * If screen backlight can be controlled, the Linux kernel will show inside * /sys/class/backlight directory one or more directories. Each directory has * got the following files: * /sys/class/backlight/driver/max_brightness @@ -37,30 +37,30 @@ * /sys/class/backlight/driver/brightness * /sys/class/backlight/driver/type * /sys/class/backlight/driver/bl_power - * + * * The "max_brightness" file contains the maximum value that can be set to the * backlight level. - * - * In "brightness" file you can write the value of backlight and the Linux + * + * In "brightness" file you can write the value of backlight and the Linux * kernel will set that value. - * + * * The "bl_power" controls if backlight is turn on (0) or turn off (>0). - * + * * You must read actual backlight level from "actual_brightness" file. Never * read the backlight level from "brightness" file. - * + * * The "type" file is the type of control and it can be: * firmware - * platform + * platform * raw * The firmware control should be preferred to platform control. The platform - * control should be preferred to raw control. + * control should be preferred to raw control. * If there are several directories in /sys/class/backlight/, you should use * the directory which its "type" file has got the "firmware" value. - * + * * In order to write in /sys/class/backlight/driver/brightness file root - * permissions are needed. This library calls to a command line tool called - * "lxqtbacklight_backend". "lxqtbacklight_backend" has a policy in Polkit + * permissions are needed. This library calls to a command line tool called + * "lxqtbacklight_backend". "lxqtbacklight_backend" has a policy in Polkit * in order to write in /sys/class/backlight/driver/brightness file. *******************************************************************************/ @@ -159,9 +159,19 @@ static FILE* open_driver_file(const char *file, const char *driver, const char * return ret; } +static int is_amdgpu(const char *driver) +{ + return strstr(driver, "amdgpu") != NULL; +} + static int read_backlight(const char *driver) { - return read_int("actual_brightness", driver); + if (is_amdgpu(driver)) { + // AMDGPU: read from "brightness" to get needed value + return read_int("brightness", driver); + } else { + return read_int("actual_brightness", driver); + } } static int read_max_backlight(const char *driver)
