Il 18/02/23 11:44, Andrei Borzenkov ha scritto:
On 18.02.2023 04:31, Marco Calistri wrote:
Hello,
I've been able to set a specific brightness intensity at evry boot, by using an /etc/init.d/after.local script,
Showing this script may provide some hints. Also why do you need it? Normally the brightness is expected to be set using desktop environment configuration and preserved across reboot. Here this expected condition do not occurs, due that I use such script: echo -n 1 > /sys/class/backlight/acpi_video0/brightness
but anytime my system awakes from suspended mode, the brightness resets to a very high intensity.
from dmesg I see:
[ 3.128757] i915 0000:00:02.0: [drm] Skipping intel_backlight registration [ 33.797331] ideapad_acpi VPC2004:00: Keyboard backlight control not available [28383.336476] video LNXVIDEO:00: Restoring backlight state
This should restore device brightness to whatever was set before suspend. Assuming your system is using ACPI backlight driver. I'm not sure about it... What I see from dmesg is: [ 28.188464] ideapad_acpi VPC2004:00: Keyboard backlight control not available
How could I resolve this?
You need to find out what and when changes the brightness. It could also be your desktop environment. Well, for the boot my issue is resolved but for the after suspend mode it is not and from what I see by Google it is a very common issue among Linux users.
Which file is used by Tumbleweed for an after suspend brightness adjustment?
Thanks and regards,
-- Marco Calistri Build: openSUSE Tumbleweed 20230216 Kernel: 6.1.12-1-default - XFCE: (4.18.1)