Page 1 of 1

Multi-level power saving

Posted: 05 Jul 2019, 13:29
by jhall
So far I'm loving Porteus Kiosk for both our public and staff kiosks. The one thing that's giving me trouble is the Power Saving. I would like these systems to power down into standby or suspend after 30 minutes of idle, but then shut down completely at a specified time every day. I've tried setting rtc_wake a minute before the scheduled_action, but either the scheduled doesn't run at all or the system returns to standby prior to the run time. I've also tried multiple idle settings - freeze, standby, and suspend; the system never halts if it's in any of these sleep states, even if I set halt_idle. Any ideas? Could this possibly be a change request for future builds so if you set an idle or action, the system is also set to wake up for that event?

Thank you!
Jon

Multi-level power saving

Posted: 05 Jul 2019, 14:52
by fanthom
Hello Jon,

When PC enters the standby/suspend states then all processes are frozen thus scheduled_actions cant be performed as it reads the clock only once during kiosk startup, runs standard 'sleep' command and performs defined action.

If RTC wake really brings the PC from suspend to a normal operating state (never tested this myself) then you may be able to utilize cron to shutdown the PC at certain time:
https://porteus-kiosk.org/faq.html#22

In this particular scenario the cron daemon is better than our 'scheduled_actions=' parameter as it reads the time from the hardware clock frequently.
Please wake the kiosk few minuted before the shutdown so cron can read the time properly and perform the shutdown.

Let us know if that worked.

Thanks

Multi-level power saving

Posted: 05 Jul 2019, 20:53
by jhall
Hi Fanthom,
So far that's working perfectly. Thank you! :Yahoo!:
Next week I'll see if I can get it to work with rtcwake to turn back on at 8am, but even if that's not possible I think calling halt through cron will suffice.

Multi-level power saving

Posted: 05 Jul 2019, 22:07
by fanthom
Will work if you program RTC wake (using cron) before doing the final shutdown (using cron).

Thanks