self power-off after user inactivity

bossi.miroslav

New member
Hello everyone! :) Please tell me if it is possible to set some trigger that monitors user inactivity. I would love to use this on our kids' interactive whiteboard, on android_x86 .. if they let the PC run idle so it shuts down by itself after a period of inactivity. (The PC has a touch monitor).

I haven't found a way to do this. Thank you very much for your willingness.
 

Lama

New member
How do you turn it on and off? Is there a power button with "restart, power-off, etc" options? If so your screen resolution and power off button positon will be important.

And how long do you want the inactive period to be?
 
Last edited:

Lama

New member
Surely ends a little taking per device/screen size/etc.. but I had a lazy easy morning so went ahead and threw this together real quick for ya bud. Stay safe, God Bless you and your family.
 

Attachments

  • Power_off_after_20m_inactivity.macro
    12.5 KB · Views: 14

Qarboz

Well-known member
Surely ends a little taking per device/screen size/etc.. but I had a lazy easy morning so went ahead and threw this together real quick for ya bud. Stay safe, God Bless you and your family.
It seems to me that there are a couple of errors
The second "set variable" will never be executed because it has the screen on constraint, while the trigger has the screen off constraint. Furthermore, the action block has no constraints so it is launched every minute
 

bossi.miroslav

New member
Hello! Thank you very much for the responses .. I tried to import the macro to my phone and then to the indicated whiteboard. On the phone, immediately after the display went off, the shutdown action occurred (although it clicked elsewhere, but I would adjust that to the resolution of the device) - i.e. without a time delay. There is another problem on the board where it is supposed to work - namely android x86 does not turn off the display at all. When I turned this off in the developer tools, when I try to turn it off, the launcher always restarts (it turns off, displays the icons again, and so on). I don't know why .. so the extinguishing apparently cannot be used as a trigger event :) wouldn't it be possible to somehow monitor the number of touches per unit of time? :)
 

bossi.miroslav

New member
Hello everyone! I found out that android_x86 9 contains unresolved issues regarding the display turning off when restarting the launcher causes it. So I reinstalled to android 8.1. On one machine it works, on another it freezes. The macro will probably be OK, the problem will be in Android itself. If the trigger event must be the screen turning off, then unfortunately I give up.. even here in the developer mode I had to set the screen not to turn off - then the PC could not be woken up and had to be turned off hard. Thank you all for your help and have a nice day :)
 
Top