I often work remote and require a stable VPN (AnyConnect) connection. Unfortunately, when Plasma goes into standby, the VPN connection is cut and also doesn't re-connect automatically. To workaround, I manually set "Block Suspend / Screen lock" in the Energy and Battery applet. This has two downsides: 1) Sometimes I forgot to this is by hand, that's why I'd like to ask for an automation 2) It also disables automatic Screen Locking, which is still quiet useful It would therefore very convenient to have an option somewhere to only disable Suspend / Hibernation, while being connected to a (certain? any?) VPN. :)
We're not adding a setting for that. It's too niche. `kde-inhibit --power` will do what you're asking if you want to convert that into a script. > Unfortunately, when Plasma goes into standby, the VPN connection is cut and also doesn't re-connect automatically. We could fix this... Under your VPN settings under general there's a setting "connect automatically"
I thought about this a bit more: - If the laptop is running connected a VPN and the battery level is critical, a standby or hibernation still should happen. Keeping standby on but having an option for a much longer period before going into standby if connected to a VPN would hence also work. Like the usual 10 minutes, e.g. an hour. That way it's more likely still connected, when I come back after a coffee. The advantage for having an automatic switch is of course, that I as a user don't need to change options all the time and also can't forget switching things.
> We're not adding a setting for that. It's too niche. I feel like more people are going to work remotely > Under your VPN settings under general there's a setting "connect automatically" Yeah, but that would mean it connects always on startup / login, correct? We also use 2FA and I need to enter a TOPT upon connecting.
>I feel like more people are going to work remotely Sure, lots do. But connecting network settings to power settings is not something we should be exposing in the UI as that part is too niche.
> `kde-inhibit --power` will do what you're asking if you want to convert that into a script. Definitely something I will consider. I think it should be possible to use dbus for monitoring, when (dis)connecting to the VPN and then invoke the script. Should work. Thanks!