Bug 466267

Summary: Power management not working as expected
Product: [Plasma] Powerdevil Reporter: Graeme Murray <graeme.w.murray>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: me, p.r.worrall, therapon
Priority: NOR Keywords: wayland
Version: 5.27.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: journal messages for plasma-powerdevil.service

Description Graeme Murray 2023-02-22 21:20:12 UTC
SUMMARY
***
In Power Management, Energy saving menu, setting Screen Energy Saving or Suspend session to any value does not have any effect. System stays powered up or the screen will stay on.
***


STEPS TO REPRODUCE
1. Set screen to switch off after 1 min. Apply,
2. Set Suspend session to sleep after 1 min. Apply, 
3. Do not use system, no media playing.

OBSERVED RESULT
1. Nothing happens
2. Nothing happens

EXPECTED RESULT
1. Screen to switch off after 1 min
2. System to sleep after 1 min.
SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 37
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
From the journal, when I tried to change the settings I got :-

org_kde_powerdevil[1766]: org.kde.powerdevil: The profile  "AC" tried to activate "DimDisplay" a non-existent action. This is usually due to an installation problem, a configuration problem, or because the action is not supported

followed by :-

org_kde_powerdevil[1766]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
Comment 1 Graeme Murray 2023-02-22 21:23:56 UTC
Also should add that monitor is connected via HDMI and hardware graphics is AMD Radeon Vega 10 Graphics
Comment 2 Paul Worrall 2023-02-23 09:51:56 UTC
Created attachment 156637 [details]
journal messages for plasma-powerdevil.service

I can reproduce this only on Wayland, X11 works OK.

I am using a desktop system with only one monitor.  The monitor is connected via HDMI.

I attach the output of journalctl -b --user-unit=plasma-powerdevil.service

Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.19.0-32-generic (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD CEDAR
Comment 3 therapon 2023-02-23 23:44:27 UTC
Operating System: openSUSE Tumbleweed 20230222
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-1 (64-bit)
Graphics Platform: Wayland

I don't find the entry about DimDisplay but I do get the message about Charge thresholds not supported whenever I make changes in powerdevil. And like the OP, Energy Saving or Suspend has no effect.
Comment 4 Paul Worrall 2023-02-24 07:47:57 UTC
Resolved on Neon User Edition by an upgrade to the libkf5idletime5 package.  A similar fix has been released on Fedora (see bug 462695). Marking as a duplicate of that bug as the fix is the same.

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