Bug 473562

Summary: Screen is dimmed in half the configured time
Product: [Plasma] Powerdevil Reporter: Konstantin Kharlamov <Hi-Angel>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: me, natalie_clarius, nate
Priority: NOR    
Version: 5.27.7   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Konstantin Kharlamov 2023-08-20 15:12:40 UTC
SUMMARY

Disregarding the value I have set in `System Settings → Energy Saving → Dim screen` (which is currently set to 8 minutes) the screen always gets dimmed much earlier. I just measured and it is 4 minutes.

Workaround: `systemctl --user start plasma-powerdevil`, unfortunately that way you lose control over your brightness settings. So ATM is repeatedly switch stop and start the service as I work which is very annoying.

STEPS TO REPRODUCE
1. Go to `System Settings → Energy Saving`
2. On every available tab set `Dim screen` timeout to 8 minutes.
3. Wait for 4 minutes

OBSERVED RESULT

Screen gets dimmed

EXPECTED RESULT

Screen has light as usual

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.27.7
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

I'm not sure if it's relevant, but when I restart `plasma-powerdevil`, I get these lines in the log:

    org.kde.powerdevil: Handle button events action could not check for screen configuration
    org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
Comment 1 Konstantin Kharlamov 2023-08-20 15:13:30 UTC
> Workaround: `systemctl --user start plasma-powerdevil`

Sorry, just noticed: it's supposed to be `systemctl --user stop plasma-powerdevil`. Can't edit the report.
Comment 2 Nate Graham 2023-08-22 21:46:24 UTC
I can reproduce the issue. Whatever duration I set for "Dim Screen," the screen is indeed dimmed in half that time.
Comment 3 Konstantin Kharlamov 2023-08-23 00:29:14 UTC
I think it's a dup of https://bugs.kde.org/show_bug.cgi?id=304696

I sent an MR https://invent.kde.org/plasma/powerdevil/-/merge_requests/213
Comment 4 Nate Graham 2023-08-23 01:37:30 UTC
Oh wow, that's been open for 11 years! Yikes, how embarrassing. Thanks so much for fixing it!

*** This bug has been marked as a duplicate of bug 304696 ***