Shutdown after system is idle for specified number of time?

Is there a way to configure Lakka to shutdown after system is idle for specified number of time, let’s say 2 hours with no user input?

Not that I know of, no.

It might be possible using login manager configuration files (logind.conf) by setting IdleAction to poweroff

Please check /storage/.config/logind.conf.d which will allow user override and add at least :

IdleAction=poweroff
IdleActionSec=120min

Restart the service (or reboot)

systemctl restart systemd-logind

To be tested :wink:

1 Like

Works very effectively shuts down Lakka regardless if you use it or not :face_with_hand_over_mouth:

I think this solution would require RA to register a session in logind and report its idle status. But then it could as well manage everything by itself in the first place (like Kodi does).