andrew-bibb / cmst

QT GUI for Connman
173 stars 37 forks source link

Connection to OpenVPN is not restored after waking up from sleep mode #280

Open Katarn opened 1 year ago

Katarn commented 1 year ago

Hello!

I'm using OpenVPN and I need it to reconnect to the VPN server after I put the computer to sleep mode and then wake it up. But only if it was active at the time the computer went to sleep. I would like to have the same logic when you restart the computer: if the connection was active, it should be restored after the reboot. If the connection was inactive, then after the reboot, it should not automatically connect to the VPN.

However, the problem is that when I wake up the computer from sleep mode, the VPN connection is lost and does not re-connect itself.

I tried to solve this problem through the connman-vpn configuration file, setting the AutoConnect = true parameter, however, every time I connect to the VPN via cmst, this parameter turns out to be false.

On the Details tab, when choosing a VPN connection, the Configuration button is in a disabled state.

Cmst version: 2022.05.01-1 Connman version: 1.41