Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled system standby and wakeup #1145

Open
adolci opened this issue Jun 14, 2020 · 5 comments
Open

Scheduled system standby and wakeup #1145

adolci opened this issue Jun 14, 2020 · 5 comments

Comments

@adolci
Copy link

adolci commented Jun 14, 2020

Description

Add the possibility to configure a scheduled standby for the system (for physical devices) with the auto wakeup.
Benefits:

  • reduce noise
  • reduce energy consumption
  • increases disk and other hardware components life time

Example

A preinstalled system utility is available for this purpose: rtcwake - https://linux.die.net/man/8/rtcwake
On crontab:
00 22 * * * /usr/sbin/rtcwake -m off -s 39600
This will shutdown the system (-m off) at 10:00 p.m. every day and boot again at 9 a.m. (-s 39600)

@ovpc
Copy link
Collaborator

ovpc commented Jun 14, 2020

Will this actually work on a sbc ? They don't have a bios or clock internally afaik. Nice idea though. Thank you!

@adolci
Copy link
Author

adolci commented Jun 14, 2020

Will this actually work on a sbc ? They don't have a bios or clock internally afaik. Nice idea though.

I think it will not work because it need a Real Time Clock device. On man page there is a note that could help:

This is normally used like the old apmsleep utility, to wake from a suspend state like ACPI S1 (standby) or S3 (suspend-to-RAM). Most platforms can implement those without analogues of BIOS, APM, or ACPI.

Of course this functionality is limited to some hardware devices

At the moment I tested it on my Odroid HC2 and it work well.

adolci added a commit to adolci/nextcloudpi that referenced this issue Jun 14, 2020
@adolci
Copy link
Author

adolci commented Jun 14, 2020

Pull request: #1146

@Larsene
Copy link

Larsene commented Jul 1, 2020

No way with the raspberry Pi (no internal clock). You can do that - as i do - with a Witty Pi Card : http://www.uugear.com/product/witty-pi-3-realtime-clock-and-power-management-for-raspberry-pi/

Plus, you'll be able to power external disk and Raspberry from a single 12V power block, if you want to.

@sunjam
Copy link

sunjam commented Sep 4, 2020

All you will need is to purchase an external real time clock for the Pi. There are many variations available for $5 - $10 USD that plug into the GPIO pins. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

5 participants