Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275384

Re: Automatic suspend-to-ram solution for Workstations

From Will Mengarini <seldon@eskimo.com>
Newsgroups linux.debian.user
Subject Re: Automatic suspend-to-ram solution for Workstations
Date 2024-12-07 21:20 +0100
Message-ID <JR9rr-euMT-1@gated-at.bofh.it> (permalink)
References <JR8F3-eufp-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Felix Natter <fnatter@gmx.net> [24-12/07=Sa 20:27 +0100]:
> [...] no significant load during the last hour [...]

The system doesn't keep track of load for a
full hour, but it does for fifteen minutes.
  uptime|awk '{print $NF}'
is load average for the past 15 minutes.

> [...] no gui interaction [...] (especially with VNC [...]) [...]

That's a lot harder.  Theoretically `w` shows idle time, but
I'm not sure you can trust it with layers of GUI interaction.

Full original post:
> I am looking for an automatic suspend-to-ram (I know "sudo systemctl
> suspend" ;-)) solution for workstations: I would like the system to
> suspend if and only if:
>
> - there is no gui interaction from any user (especially with VNC
>   sessions) AND
>
> - there is no significant load during the last hour (in order to account
>   for backup jobs)
>
> I am using the mate desktop, if that makes any difference.
> Of course the desktop must be locked before suspension.
>
> Maybe systemd can support this in coop with the DE?
>
> I think Windows can do it, but Windows does not allow multiple users
> logged in at the same time, so it is an easier task.
>
> Am I asking too much?

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Automatic suspend-to-ram solution for Workstations Felix Natter <fnatter@gmx.net> - 2024-12-07 20:30 +0100
  Re: Automatic suspend-to-ram solution for Workstations Will Mengarini <seldon@eskimo.com> - 2024-12-07 21:20 +0100
  Re: Automatic suspend-to-ram solution for Workstations Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2024-12-09 14:00 +0100
    Re: Automatic suspend-to-ram solution for Workstations Max Nikulin <manikulin@gmail.com> - 2024-12-10 04:20 +0100
  Re: Automatic suspend-to-ram solution for Workstations Jan Claeys <lists@janc.be> - 2024-12-13 17:50 +0100
    Re: Automatic suspend-to-ram solution for Workstations Henrik Ahlgren <pablo@seestieto.com> - 2024-12-13 18:30 +0100

csiph-web