It seems like it may be possible by calling SetIdleHint(), but I’m not sure what criteria I should use to determine the idle state. Also, I need to do some testing to determine whether it is necessary to use the login D-Bus instance with this, which would limit you to one simultaneous session per user account.

On Dec 21, 2024, at 6:06 AM, 'Felix Natter' via TurboVNC User Discussion/Support <turbovnc-users@googlegroups.com> wrote:


Dear turbovnc developers/users,
dear DRC,

we are using systemd-logind's suspend mechanism for setting idle computers
to sleep. This works with ssh and physical sessions, but not with (T)VNC
sessions (the vncserver computer will go to sleep even if you are interacting
with the desktop in the VNC session).

You can see this when the "IdleSinceHint" of the tvnc session does not update:
$ enable logind automatic suspend (/etc/systemd/logind.conf):
IdleAction=suspend
IdleActionSec=30min
$ systemctl restart systemd-logind
$ loginctl list-sessions
$ loginctl show-session <id> -p IdleSinceHint

I could use systemd-inhibit(1) on the vncserver instance,
but I would like to reuse the tvnc session also in the
office. Of course I can run systemd-inhibit on *any* process
that runs all day, but I would like to have a more automated solution :-)

Do you have any idea/solution?

Many Thanks and Best Regards!
Felix

--
You received this message because you are subscribed to the Google Groups "TurboVNC User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbovnc-users+unsubscr...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/CAPBq%2BwYNm9vC8mf8oLBLLy73eh7Rw9BwcxD9qB0eCYJtcGfevA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "TurboVNC User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbovnc-users+unsubscr...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/turbovnc-users/5833A68E-2BEF-4C74-8215-33766C4A00F7%40virtualgl.org.

Reply via email to