On 18.02.2023 18:46, Marco Calistri wrote:
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
ACPI video brightness driver should restore hardware state to this value on resume. It actually prints message that it's doing it.
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
Keyboard backlight and screen brightness are two independent things.
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.
Yes, but it also may be that first kernel restores brightness and then your desktop environment overrides it. Try booting into run level 3, set brightness, suspend and resume. Is brightness also reset in this case?
Which file is used by Tumbleweed for an after suspend brightness adjustment?
Thanks and regards,