I run Openbox/LXDE on a somewhat special platform (a Banana Pi Pro) which doesn't have DPMS support. I have to run specific commands to put my HDMI screen to standby and switch it back on. My scripts work nicely when called directly, and now I want to call them the same way a screensaver is called: one script (let's call it screen_save
) is to be called after X minutes of inactivity and another script (screen_restore
) is to be called on an input event, provided screen_save
was called in between this input event and the previous one.
Do I have to write a daemon similar to xscreensaver
which monitors the input and calls my scripts when necessary, or is there an existing screensaver daemon which could be configured to call my scripts? Or maybe there's a hook to xorg
, openbox
or lxde
which I could use?