Answer the question
In order to leave comments, you need to log in
How to put a computer into sleep mode and wake it up at a specific time?
Good afternoon, please tell me how to put the computer into sleep mode and wake it up at a certain time?
I found this article:
https://cmcenroe.me/2014/11/24/scheduled-suspend-a...
It says that you need to create a timer:
nano /etc/systemd/system/auto-suspend.timer
[Unit]
Description=Automatically suspend on a schedule
[Timer]
OnCalendar=*-*-* 03:00:00
[Install]
WantedBy=timers.target
nano /etc/systemd/system/auto-suspend.service
[Unit]
Description=Suspend
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl suspend
nano /etc/systemd/system/auto-resume.timer
[Unit]
Description=Automatically resume on a schedule
[Timer]
OnCalendar=*-*-* 18:30:00
WakeSystem=true
[Install]
WantedBy=timers.target
nano /etc/systemd/system/auto-resume.service
[Unit]
Description=Does nothing
[Service]
Type=oneshot
ExecStart=/bin/true
Answer the question
In order to leave comments, you need to log in
Take a look at noUiSlider , it is (as the name suggests) quite customizable, rich in features and has no unnecessary dependencies.
Your computer is turned off, how do you want the OS to turn it on?
Look in the BIOS settings, in some there is a scheduled inclusion
There is a Wakeup calendar in BIOS.
Customize it.
In the case of my motherboard, there is an opportunity to program all week.
This is how I do it in the cron: 0 0 * * * rtcwake -m off -s 43200 that is, it goes to sleep at midnight and wakes up 12 hours later. Coolers don't spin. Loading is normal. You also need to enable wake on in the bios.
There is a sleep mode and there is a standby mode.
You have described the differences.
Wakeon Lan - for remote wakeup
It must also be enabled in both BIOS and OS.
More:
UEFi BIOS there is such an item "Enable via RTC" it can be what you need.
Power-On by Alarm - available on older devices.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question