GlobalProtect-openconnect
                                
                                
                                
                                    GlobalProtect-openconnect copied to clipboard
                            
                            
                            
                        Wifi not working after ubuntu sleep
If I leave GlobalProtect running while my computer goes into sleep mode and come back later my wifi doesn't work until I disconnect GlobalProtect. This wouldn't be too much of an issue, but disconnecting is also very slow (takes several minutes) in this case.
I'm running version 1.4.8-ppa1~ubuntu21.10
I'm having the same problem on Ubuntu 22.04 (version 1.4.8-ppa1-ubuntu22.04. Still, I'm very grateful to have a working client since the one supplied by PaloAlto does not work most of the time.
Also of note: I thought I'd be clever by disconnecting before sleeping.  Then I get this popup.

The only thing that works is killing and restarting the client.
I'm trying to reproduce it locally. I'm using Manjaro and it will display as Connected after waking from the sleep mode. But VPN has been disconnected actually, then I click the Disconnect button, then it will disconnect quickly. Everything else works fine, I can reconnect the VPN and it works fine, too. So it seems less annoying in Manjaro.
Anyway, I'm going to reproduce it in a real Ubuntu environment. And will try to fix it if I could reproduce it.
I'm having the same problem (not always though). Is there any way to disconnect via commandline? It would then be possible to disconnect before suspending.
Can we have the --disconnect option?
It seems to always happen in my system. I'd like to create a small bash wrapper in the /usr/lib/systemd/system-sleep/.
It'd be nice if there was also a --connect option, if (re-)connection could be handled non-interactively.
I cannot find a man page, or having the
$ gpclient --help
2024-01-10 15:19:42.859 INFO  [2330436] [main@24] GlobalProtect started, version: 1.4.9
spit something productive for me 😕
+1
I'm working on this. It seems like we can leverage the systemd service hooks. https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate