Laptop screen brightness at 100% after resume

Ответить
erfan
Сообщения: 31
Зарегистрирован: 08 сен 2025, 12:10
Operating system: Rosa Fresh 13 Plasma 6

Laptop screen brightness at 100% after resume

Сообщение erfan »

On plasma6 wayland my laptop screen brightness after resume from sleep or hibernation does not return to it's before sleep brightness.

The brightness goes to 100%, but the system do not records this. It sees like the brightness is at the same level like before sleep (which is not true).

It is my conclusion, because when pushing the brightness buttons, it goes one level up or down from my initial, before sleep one, and the brightness jumps now directly down, without intermediary steps and sets accordingly.

Also, when this happens, in terminal if I try to adjust the brightness with kscreen-doctor sometimes I can not, only if I set with kscreen-doctor first to 100% (probably to sincronize the system with the reality, than after that to the lowered one which I use.

I have tried to adjust the brightness with kscreen-doctor or qtbus when waking up the laptop, it works from konsole, lowering the brightness to 10% the qdbus command bellow, but it has no effect running it at wake up from a file placed in /lib/systemd/system-sleep/. The model of the file I have found on internet:

Код: Выделить всё

#!/bin/sh

case $1/$2 in
pre/*)
;;
post/*)
rm /home/user/my.file
qdbus-qt6 org.kde.org_kde_powerdevil /org/kde/Solid/PowerManagement/Actions/BrightnessControl setBrightness 1000
;;
esac

The script is runing, because it also removes a file. So rm is working but not the adjustment to the desired brightness. I thought that maybe it is run too early, so I tried to insert a sleep 5 command before, but this makes the screen to light up 5 seconds later, but without the brightness being applied.

If I do not use the above file, it always wakes at 100%, BUT, if I use the above file, most of the time the laptop returns to its initial, before sleep brightness (AND NOT to the one which was set up in the script - 10%).

So, what am I missing, what to do, to make laptop screen brightness to set up on wake-up ALWAYS to the previous setting, before sleep, or to a predefined one?
erfan
Сообщения: 31
Зарегистрирован: 08 сен 2025, 12:10
Operating system: Rosa Fresh 13 Plasma 6

Re: Laptop screen brightness at 100% after resume

Сообщение erfan »

Often it resumes at 100% brightness. So no matter if that file is there or not or what it writes. The file is working, because the rm command runs OK.

What can I try, something else, on Rosa with Plasma6 on Wayland to force the brightness after wake-up to be the previous one or to a given value?

Thank You!
Аватара пользователя
VictorR2007
Сообщения: 8015
Зарегистрирован: 12 сен 2011, 13:00
Operating system: ROSA 2023.1

Re: Laptop screen brightness at 100% after resume

Сообщение VictorR2007 »

It seems no one on the forum has computers like yours. It's hard to help you without being able to compare the results on similar machines.
Perhaps an update to mesa-25.3.x, which was compiled into this additional repository today, will help.

Код: Выделить всё

https://abf-downloads.rosa.ru/x11_backports_personal/repository/rosa13/x86_64/main/release/
erfan
Сообщения: 31
Зарегистрирован: 08 сен 2025, 12:10
Operating system: Rosa Fresh 13 Plasma 6

Re: Laptop screen brightness at 100% after resume

Сообщение erfan »

Thank you very much, but unfortunately no change. :(
I updated all packages from my system which was updatable to 25.3.0 version
Ответить

Вернуться в «Desktop»