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

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
audiolover
Posts: 62
Joined: 2013-12-22 15:50
Been thanked: 1 time

timer for sleep at 01:00

#1 Post by audiolover »

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?

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: timer for sleep at 01:00

#2 Post by peter_irich »

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.

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: timer for sleep at 01:00

#3 Post by reinob »

@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.

audiolover
Posts: 62
Joined: 2013-12-22 15:50
Been thanked: 1 time

Re: timer for sleep at 01:00

#4 Post by audiolover »

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.

Post Reply