Bug 448942

Summary: Powerdevil does not call logind SetIdleHint on user idle
Product: [Plasma] plasmashell Reporter: Federico <nierro92>
Component: Power management & brightnessAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: bibitocarlos, jan.claussen10, kde, natalie_clarius
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Federico 2022-01-22 10:35:15 UTC
Currently, when user is idle, logind SetIdleHint method is not called.  
This is needed to communicate to any external utility that the desktop is in idle mode (eg: screen is dimmed).  

In this particular case, the feature is useful for my own [Clight](https://github.com/FedeDP/Clight) project (an utility to manage automatic brightness either using Ambient Light Sensors or webcams)  to properly run using KDE dimmer (without using the dimmer provided by Clight itself), because it listens on IdleHint changes to understand when the automatic backlight calibration should be paused.

Is this feasible?
Thanks!
Federico
Comment 1 Kai Uwe Broulik 2022-01-22 10:58:27 UTC
Should be fairly straightforward to add this in https://invent.kde.org/plasma/powerdevil/-/blob/master/daemon/powerdevilpolicyagent.cpp
Comment 2 jan.claussen10 2022-11-24 22:09:44 UTC
+1
Comment 3 Nicolas Fella 2023-01-20 13:34:56 UTC
*** Bug 464473 has been marked as a duplicate of this bug. ***