* do not suspend/sleep
@ 2021-02-01 23:47 Randy Dunlap
2021-02-02 1:51 ` Barnabás Pőcze
0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2021-02-01 23:47 UTC (permalink / raw)
To: linux-input, Linux PM list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: do not suspend/sleep
2021-02-01 23:47 do not suspend/sleep Randy Dunlap
@ 2021-02-02 1:51 ` Barnabás Pőcze
2021-02-02 1:53 ` Randy Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Barnabás Pőcze @ 2021-02-02 1:51 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-input, Linux PM list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: do not suspend/sleep
2021-02-02 1:51 ` Barnabás Pőcze
@ 2021-02-02 1:53 ` Randy Dunlap
0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2021-02-02 1:53 UTC (permalink / raw)
To: Barnabás Pőcze; +Cc: linux-input, Linux PM list
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:
>
>> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-02 1:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 23:47 do not suspend/sleep Randy Dunlap
2021-02-02 1:51 ` Barnabás Pőcze
2021-02-02 1:53 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).