Re: [TurboVNC-Users] Automatic suspend inhibit with active TurboVNC session

2025-01-03 Thread 'DRC' via TurboVNC User Discussion/Support
At least in my testing, IdleSinceHint is 0 for the SSH sessions that the TurboVNC Viewer creates for tunneling, so I doubt that any of those sessions would stop the suspend.  Also, the SSH sessions (and associated logind sessions) created for tunneling only persist while the TurboVNC Viewer is

Re: [TurboVNC-Users] Automatic suspend inhibit with active TurboVNC session

2025-01-03 Thread 'Felix Natter' via TurboVNC User Discussion/Support
hello DRC, thank you for looking into this issue! A colleague and I tried the setup again (we are both in HO), and we also cannot see a login session generated by (turbo-)VNC. Probably this is never generated, and we were wrong :-/ Are you saying that a TurboVNC session that uses ssh tunneling li

Re: [TurboVNC-Users] Automatic suspend inhibit with active TurboVNC session

2025-01-03 Thread 'DRC' via TurboVNC User Discussion/Support
I can't make the TurboVNC sessions show up with 'loginctl list-sessions' at all.  The only thing I see in that list are GDM and the SSH sessions, so there will be a login session associated with a TurboVNC session only if there is an active connection to that TurboVNC session that uses SSH tunn

Re: [TurboVNC-Users] Automatic suspend inhibit with active TurboVNC session

2024-12-23 Thread 'DRC' via TurboVNC User Discussion/Support
I’ll look into it, but my previous message was fishing for advice regarding how to set the boolean idle state based on the non-boolean idle time, since TurboVNC already measures the latter. I presume that other applications do this based on an idle timeout? But I also presume that the timeout would

Re: [TurboVNC-Users] Automatic suspend inhibit with active TurboVNC session

2024-12-23 Thread 'Felix Natter' via TurboVNC User Discussion/Support
Dear DRC, you _might_ be able to use xprintidle (https://github.com/g0hl1n/xprintidle) for that (if that honors the VNC session and the X session reports correctly). You can copy code from it because it is GPL-2. One simulteanous session per user would indeed be a problem for me ;-) Since we hav

Re: [TurboVNC-Users] Automatic suspend inhibit with active TurboVNC session

2024-12-22 Thread 'DRC' via TurboVNC User Discussion/Support
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 u

[TurboVNC-Users] Automatic suspend inhibit with active TurboVNC session

2024-12-21 Thread 'Felix Natter' via TurboVNC User Discussion/Support
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 se