Multi-level power saving

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
Post Reply
jhall
Ronin
Ronin
Posts: 3
Joined: 05 Jul 2019, 12:46
Distribution: Porteus Kiosk 4.8

Multi-level power saving

Post#1 by jhall » 05 Jul 2019, 13:29

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

User avatar
fanthom
Site Admin
Site Admin
Posts: 5152
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Multi-level power saving

Post#2 by fanthom » 05 Jul 2019, 14:52

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
Please add [Solved] to your thread title if the solution was found.

jhall
Ronin
Ronin
Posts: 3
Joined: 05 Jul 2019, 12:46
Distribution: Porteus Kiosk 4.8

Multi-level power saving

Post#3 by jhall » 05 Jul 2019, 20:53

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.

User avatar
fanthom
Site Admin
Site Admin
Posts: 5152
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Multi-level power saving

Post#4 by fanthom » 05 Jul 2019, 22:07

Will work if you program RTC wake (using cron) before doing the final shutdown (using cron).

Thanks
Please add [Solved] to your thread title if the solution was found.

Post Reply