Laptop screen brightness at 100% after resume (SOLVED)

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

Laptop screen brightness at 100% after resume (SOLVED)

Сообщение 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 07 дек 2025, 21:41, всего редактировалось 1 раз.
erfan
Сообщения: 51
Зарегистрирован: 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
Сообщения: 8035
Зарегистрирован: 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
Сообщения: 51
Зарегистрирован: 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
erfan
Сообщения: 51
Зарегистрирован: 08 сен 2025, 12:10
Operating system: Rosa Fresh 13 Plasma 6

Re: Laptop screen brightness at 100% after resume

Сообщение erfan »

I don't have courage to shout it loud, but it seems, that for the moment the problem looks solved.

At wake-up the brightness returns to its original before sleep estate. That is the important part. Why it do not runs the brightness settings command, I do not know, but that do not bothers me, if it returns to initial estate.

I am not 100% sure what was the solution, but I observed that it works OK after trying to solve the trouble with the keyboard layouts. I rolled back to an earlier estate, to the 6th. october 2025. snapshot with 6.4.3 plasma, kf 6.16, mesa rolled back too. A few stuff resettled correctly, like some design glitches for which I was not directly responsible or set up back to defaults I think (like the extra typographic characters setting, also without my intervention), some physical keys from the keyboard started to not be responsible from the beginning of the november, and now, with the downgrade they are working again correctly, so the downgrade might have influenced the wake-up too. Now the system looks very stable, the design part is also correct (excepting those icons, which I mentioned in another post and has to be corrected).

Also I cannot confirm that all the packages were rolled back to the snapshot's time, only plasma6 and kf6, because after doing the dnf history rollback, I had to manually downgrade some plasma6 and kf6 packages which stood at the 6.4.5 and 6.18 version and were not downgraded by the rollback to the 6.4.3 and 6.16 version. Also I cannot compare, because at that time I was on X11, and were no problems with the brightness after sleep. Now I am running on wayland with the brand new 6.18 kernel, but I checked running the official 6.12.47-5 kernel, and it looks like there is OK too - but this one I cannot confirm in longterm, because for now on I will use the 6.18 kernel.

So, until it proves the opposite, for the moment I consider the problem solved.
Ответить

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