do not suspend/sleep

3 messages, 2 authors, 2021-02-02 · open the first message on its own page

do not suspend/sleep

From: Randy Dunlap <hidden>
Date: 2021-02-01 23:48:17

Hi all.

I usually run my systems (laptops) so that they will suspend to RAM
after 30 or 60 minutes of no use (no input), but when I am building
e.g. 3 kernels, that will take more than 30 minutes and I don't want
the system to suspend during that time.

I was wondering what options are available to prevent entering suspend.
I am willing to manually enter a command to make that happen if one
is available.

I was considering a way to generate a fake kbd or mouse input every
M (e.g. 29) minutes.
If that is feasible, what would someone suggest to use here?
(I can script the "wait M minutes" part :) Just need the "how to
inject a keystroke or mouse input" part.)

My first idea was some way to prevent suspend/sleep if the system load
level is > N (e.g. 4 -- user input), but I don't know where to do that.

thanks for any suggestions.

-- 
~Randy

Re: do not suspend/sleep

From: Barnabás Pőcze <hidden>
Date: 2021-02-02 01:52:35

Hi


2021. február 2., kedd 0:47 keltezéssel, Randy Dunlap írta:
Hi all.

I usually run my systems (laptops) so that they will suspend to RAM
after 30 or 60 minutes of no use (no input), but when I am building
e.g. 3 kernels, that will take more than 30 minutes and I don't want
the system to suspend during that time.

I was wondering what options are available to prevent entering suspend.
I am willing to manually enter a command to make that happen if one
is available.
[...]
Have you looked at systemd-inhibit(1)?

Regards,
Barnabás Pőcze

Re: do not suspend/sleep

From: Randy Dunlap <hidden>
Date: 2021-02-02 01:54:24

On 2/1/21 5:51 PM, Barnabás Pőcze wrote:
Hi


2021. február 2., kedd 0:47 keltezéssel, Randy Dunlap írta:
quoted
Hi all.

I usually run my systems (laptops) so that they will suspend to RAM
after 30 or 60 minutes of no use (no input), but when I am building
e.g. 3 kernels, that will take more than 30 minutes and I don't want
the system to suspend during that time.

I was wondering what options are available to prevent entering suspend.
I am willing to manually enter a command to make that happen if one
is available.
[...]
Have you looked at systemd-inhibit(1)?
No, I'm wasn't aware of that, but I'll take a look.

Thanks.

-- 
~Randy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help