I want to put my pc in sleep-mode every day at 01:00 at night.
My Debian version is 10.
I have searched the internet but cannot find the proper answer?
I tried to do it with the program autopoweroff but by the looks of it this app does not support systemd.
In what direction do I need to search?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
timer for sleep at 01:00
-
- Posts: 1406
- Joined: 2009-09-10 20:15
- Location: Saint-Petersburg, Russian Federation
- Been thanked: 11 times
Re: timer for sleep at 01:00
It depends from your computer work mode, when it turned on.
By cron.dayly, by at command from /etc/rc.local/, by command from daemon.
daemon can be run by unit, from /etc/rc.local, by autostart.
Peter.
By cron.dayly, by at command from /etc/rc.local/, by command from daemon.
daemon can be run by unit, from /etc/rc.local, by autostart.
Peter.
Re: timer for sleep at 01:00
@audiolover,
You could set up a cron job (as root), like
00 01 * * * systemctl suspend
This should work (but I haven't tested).
You will need to wake it by hand (or by WOL).
If you need a scheduled wake up, you'll need to use rtcwake.
You could set up a cron job (as root), like
00 01 * * * systemctl suspend
This should work (but I haven't tested).
You will need to wake it by hand (or by WOL).
If you need a scheduled wake up, you'll need to use rtcwake.
-
- Posts: 62
- Joined: 2013-12-22 15:50
- Been thanked: 1 time
Re: timer for sleep at 01:00
Thank you all for helping me. I just found a little program, it is in the packagemanager and it is called "Qshutdown". It does exactly what I need with a nice gui. Programmable for once or for every day of the week. The gui is important as this pc goes to a friend who has to be able to perform this task without knowledge of Linux!
I am happy.
I am happy.