linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 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@vger.kernel.org, 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

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