You are not logged in.

#1 2012-08-14 22:57:46

zhehao
Member
Registered: 2010-12-19
Posts: 21

How to change time before computer goes into standby [systemd]

Since switching over from the old SysV init to systemd, I've noticed that my computer will go into standby if I'm inactive for more than 5 seconds. How do I configure systemd to wait for a longer period of time before going into standby? I couldn't find anything about this in the man pages or the wiki. Also, is there a way to temporarily prevent the computer from going to sleep? Say, when you're watching a movie or reading an ebook?

Offline

#2 2012-08-15 06:12:05

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: How to change time before computer goes into standby [systemd]

This is a bug somewhere.

To answer your question: InhibitDelayMaxSec= in /etc/systemd/logind.conf sets the time before suspend.

However, the problem is that your machine should not be suspended in the first place (if you are using it!). I guess the bug is related to HandleSleepKey= in the same file. Try setting that to "off".

Offline

#3 2012-08-15 07:06:42

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: How to change time before computer goes into standby [systemd]

It may help to be clearer about what you mean by standby. Tomegun is talking about "suspend". You're saying "standby" which affects the monitor/screen but you say you're computer is going into standby.

Offline

#4 2012-08-15 07:14:51

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: How to change time before computer goes into standby [systemd]

Ah, I assume he meant suspend.

Offline

#5 2012-08-15 09:42:39

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: How to change time before computer goes into standby [systemd]

If it was 5 minutes rather than 5 seconds, I'd say it's probably standby/DPMS so

setterm -blank 0 -powerdown 0
xset s off

etc, would be worth trying (or the desktop manager equivalents). But 5 seconds? No idea, a bug in suspend, standby... or something else misconfigured sad

Offline

#6 2012-08-15 13:23:26

zhehao
Member
Registered: 2010-12-19
Posts: 21

Re: How to change time before computer goes into standby [systemd]

Sorry about the ambiguity. Yes, it's standby. The monitor is going into standby.

Offline

Board footer

Powered by FluxBB