I recently turned on my computer and accidentally left it sitting at the login prompt for hours, needlessly sucking power. A display manager would automatically suspend in that case, but I don't want one.

So can I configure the computer to go to sleep (I guess using systemctl suspend) after idling a few minutes at the login prompt (and ideally also in a logged in tty)?

  • How do you know it's not already sleeping and waiting for input to wake it up? Jul 19, 2021 at 2:01
  • because the screen is stil on ^^
    – xeruf
    Jul 20, 2021 at 15:53
  • Okay, the title misled me - I didn't read the second paragraph. See "man systemd-sleep.conf". Jul 22, 2021 at 5:54
  • can you provide a more detailed pointer? I can't find a relevant configuration option there.
    – xeruf
    Mar 3 at 21:55
  • I don't know what you mean by "login prompt". If you haven't already, shutdown the machine and power it down. Wait a few minuts and power it up. Then wait a while to see if it blanks the scrren. Try wiki.debian.org/Suspend. I use lighDM as a display manager on Debian 10 Buster and I have no problems. But I see a login console after I logout - and my screen blanks after a little while after I stop using it. Also, check your /var/log/{messages,syslog} files. And dmesg. Mar 3 at 23:27


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.