Bug 414440 - Brightness gets maximized after screen times out.
Summary: Brightness gets maximized after screen times out.
Status: RESOLVED WORKSFORME
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: wayland
: 383307 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-11-24 06:41 UTC by KingSpammerNerd
Modified: 2020-05-21 04:33 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KingSpammerNerd 2019-11-24 06:41:32 UTC
SUMMARY
In a Wayland session, when the display times out and switches off, when it wakes up after a system event, the brightness gets set to maximum.

STEPS TO REPRODUCE
1. Log in and start a Plasma/Wayland session.
2. Wait for the display to time out and switch off.
3. Move mouse to wake up the display.

OBSERVED RESULT
Password dialog appears, with the brightness set to maximum.

EXPECTED RESULT
Correct brightness value is restored when "waking up" the screen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
Kernel Version: 5.3.11-1-default
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION
Using Intel HD5500 Graphics (Mesa)
Comment 1 Pietro F. Fontana 2020-03-26 16:23:31 UTC
I can confirm this issue on a Plasma/Wayland session.

Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Kernel Version: 5.5.13-1-MANJARO
OS Type: 64-bit

Device: Intel HD Graphics 620
driver: i915 v: kernel
Display: wayland
server: X.org 1.20.7
driver: modesetting

See also this other report:
https://bugs.kde.org/show_bug.cgi?id=383307
Comment 2 Pietro F. Fontana 2020-03-28 16:49:19 UTC
I can reproduce this issue just by locking and unlocking the session, the brightness is maximized after unlocking.
Comment 3 Méven Car 2020-04-08 15:51:18 UTC
I don't reproduce with a recent Plasma version with the steps described here.

What I tested :

1. set screen lock timeout to 1 minute "lock screen" kcm
2. waited 1 minute for session lock
3. waited more until the screen turned off
4. Moved mouse

The screen switches on with the previous set brightness.

1. Sleep the session
2. Moved mouse 

The screen switches on with the previous set brightness.

I suspect I don't reproduce because of a different bug, I encountered when testing :

1. in powersaving kcm set brightness to 100% when plugged in (I was plugged in)
2. Lower the brightness manually using the plasma applet
3. Turn laptop to sleep
4. Turn the laptop on again and login

I could observe the screen brightness did not change, but the plasma applet showed that I had 100% brightness.
I reproduced this behavior after locking the screen and letting turned off.

SOFTWARE/OS VERSIONS
Kde neon 
Kernel 5.3
KDE Plasma : 5.18.80
KDE Frameworks: 5.69
Qt: 5.14
Thinkpad T460s


Can you confirm the bug after checking your settings in the powersaving kcm, and check you don't have value set for brightness in whatever battery state you are testing ?
Can you confirm this was not due to a powersaving setting ?
Comment 4 Méven Car 2020-04-14 06:48:32 UTC
*** Bug 383307 has been marked as a duplicate of this bug. ***
Comment 5 Pietro F. Fontana 2020-04-15 20:58:37 UTC
Update, I still experience the issue but it became harder to reproduce.

I tried the following:
1. set screen dim timeout to 1min, set screen energy saving timeout to 2min
2. set automatic screen lock to 1min
3. wait until the screen is locked and turned off
alternative 3. lock the screen and wait until it turns off
4. wake up the screen and unlock it

I am not able to reproduce the issue, but I still experience it everyday when I leave the computer locked for a longer period.
The Plasma applet behaves in a consistent way on my system, it always displays the current brightness.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.2
Kernel Version: 5.6.3-2-MANJARO
Display: wayland
server: X.org 1.20.8
driver: modesetting
Comment 6 Méven Car 2020-04-21 07:30:56 UTC
(In reply to Pietro F. Fontana from comment #5)
> 
> I am not able to reproduce the issue, but I still experience it everyday
> when I leave the computer locked for a longer period.

Do you have a powerdevil/powersaving settings set for the brightness ?
Aka `kcmshell powerdevilprofilesconfig`

Do you use hibernation on your laptop, especially when the computer is "locked for a longer period" ?

If we can't reproduce it anymore, maybe we can resolve this one with status "Works for me".
Comment 7 Pietro F. Fontana 2020-04-21 08:12:54 UTC
(In reply to Méven Car from comment #6)
> Do you have a powerdevil/powersaving settings set for the brightness ?
> Aka `kcmshell powerdevilprofilesconfig`

Yes, none of them is set to maximum brightness.

> Do you use hibernation on your laptop, especially when the computer is
> "locked for a longer period" ?

The system does not suspend or hibernate automatically when connected to AC.

> If we can't reproduce it anymore, maybe we can resolve this one with status
> "Works for me".

I would say that the problem is still there, but it's not easy to reproduce.
Comment 8 Bug Janitor Service 2020-05-06 04:33:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2020-05-21 04:33:25 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!