Bug 508889 - Option to disable standby / hibernation when connected to a VPN in order to avoid connection loss
Summary: Option to disable standby / hibernation when connected to a VPN in order to a...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.4.4
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-29 09:57 UTC by postix
Modified: 2025-08-29 10:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2025-08-29 09:57:31 UTC
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. :)
Comment 1 David Edmundson 2025-08-29 10:14:08 UTC
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"
Comment 2 postix 2025-08-29 10:14:53 UTC
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.
Comment 3 postix 2025-08-29 10:16:39 UTC
> 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.
Comment 4 David Edmundson 2025-08-29 10:19:48 UTC
>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.
Comment 5 postix 2025-08-29 10:22:30 UTC
> `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!