Scheduled sleep and wake for HP Microserver Gen8/Lubuntu 16.04?

itm

itm

Associate
Joined
22 Feb 2011
Posts
199
I have an HP Microserver which I'd like to schedule to go into sleep or hibernation at the same time each day, then automatically wake at the same time the following day. I've tried this command to check basic sleep/wake functionality, but it doesn't wake the machine as intended:
sudo rtcwake -m mem -s 10 && firefox

Can anyone suggest a way of achieving what I'm trying to do?
 
That should work. Do you have "Power on by alarm" / "Power on by RTC" enabled in your BIOS?

Have you tried a longer time for the -s parameter? (perhaps it is taking more than 10 seconds to completely enter sleep mode and then miss the alarm).

What able if you set -t explicitly to a time? (best to make sure the RTC is in UTC).
 
Hmmm...this is strange...I just tried this:
Code:
sudo rtcwake -m mem -s 120 && firefox
...and got this error:
Code:
rtcwake: unrecognised suspect state 'mem'
??
 
I don't see those "Power on" options anywhere in the BIOS either (they are not shown anywhere in the menu options below "Power Management Options"
 
You might need to turn on some additional ACPI options in BIOS too.

The RTC alarm is under Advanced > ACPI for one of my machines:

2022-03-01_bios_rtc_alarm.jpg
 
I don't see those additional ACPI options in my BIOS - screenshots of the Power Management Options and Advanced Options are attached.
There's a Wake-on-LAN option under the Server Availability menu, which I have enabled.
DALIvkl

DALIvkl
 
I didnt think it could be put to sleep tbh. Ive gone down the route of a cron command to shutdown everyday at 11.30pm. I have the server plugged into one of those TP Link Tapo Plugs which is then scheduled to cut power to it about 2mins after the server shuts down. My son wakes the server up through google voice commands in the morning (hes 8). Once power is restored on the smart plug the server starts up. That seems to work great for us to be honest. Saves powering overnight when no-body is using.
 
Back
Top Bottom