Bug 448942 - Powerdevil does not call logind SetIdleHint on user idle
Summary: Powerdevil does not call logind SetIdleHint on user idle
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (show other bugs)
Version: 6.2.4
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 464473 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-22 10:35 UTC by Federico
Modified: 2024-12-18 21:40 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***