Notably after a resume the backlight control should still be max 255,
e.g. here it is
root@jak-t14-g3:/sys/class/backlight/amdgpu_bl1# grep . * 2>/dev/null
actual_brightness:15
bl_power:0
brightness:15
max_brightness:255
scale:unknown
type:raw
Basically yes it passes -1:
(gdb)
#0 gsd_power_backlight_abs_to_percentage (min=-1, max=-1, value=-1) at
../plugins/power/gpm-common.c:54
__func__ = "gsd_power_backlight_abs_to_percentage"
#1 0x000060bb8f841733 in gsd_backlight_set_brightness_val_async
(backlight=0x60bbaeda21d0 [GsdBacklight], value=<optimized out>,
callback=<optimized out>, user_data=<optimized out>, cancellable=0x0)
at ../plugins/power/gsd-backlight.c:480
task_data = <optimized out>
error = 0x0
task = 0x60bbaeda6200 [GTask]
monitor = <optimized out>
percent = <optimized out>
__func__ = {<optimized out> <repeats 39 times>}
** Tags added: rls-oo-incoming
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/2081294
Title:
gsd_power_backlight_abs_to_percentage: assertion 'max > min' failed
Status in GNOME Settings Daemon:
New
Status in gnome-settings-daemon package in Ubuntu:
Confirmed
Bug description:
The key shortcuts as well as slider controls in GNOME for setting the
brightness of the screen on a amdgpu_bl1 laptop stops working after a
sleep/resume cycle. The GNOME logs are the following after pressing
the brightness increase and decrease Fn keys on the keyboard:
12:46:37 (sd-bright): amdgpu_bl1: Failed to write brightness to device:
Invalid argument
12:46:37 gsd-power: gsd_power_backlight_abs_to_percentage: assertion 'max >
min' failed
12:46:36 (sd-bright): amdgpu_bl1: Failed to write brightness to device:
Invalid argument
12:46:36 gsd-power: gsd_power_backlight_abs_to_percentage: assertion 'max >
min' failed
12:46:36 (sd-bright): amdgpu_bl1: Failed to write brightness to device:
Invalid argument
12:46:36 gsd-power: gsd_power_backlight_abs_to_percentage: assertion 'max >
min' failed
12:46:35 (sd-bright): amdgpu_bl1: Failed to write brightness to device:
Invalid argument
12:46:35 gsd-power: gsd_power_backlight_abs_to_percentage: assertion 'max >
min' failed
12:46:34 (sd-bright): amdgpu_bl1: Failed to write brightness to device:
Invalid argument
12:46:34 gsd-power: gsd_power_backlight_abs_to_percentage: assertion 'max >
min' failed
Setting the backlight manually using the sysfs interface or the gsd-
backlight-helper program still works:
$ sudo strace /usr/libexec/gsd-backlight-helper
/sys/class/backlight/amdgpu_bl1 15
...
openat(AT_FDCWD, "/sys/class/backlight/amdgpu_bl1/brightness", O_WRONLY) = 4
write(4, "15", 2) = 2
close(4) = 0
This is why I am filing this bug against gnome-settings-daemon and not
the kernel.
To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-settings-daemon/+bug/2081294/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp