GlobalProtect-openconnect icon indicating copy to clipboard operation
GlobalProtect-openconnect copied to clipboard

Wifi not working after ubuntu sleep

Open jsBrian opened this issue 3 years ago • 6 comments

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

jsBrian avatar Jul 14 '22 08:07 jsBrian

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. Screenshot from 2022-07-22 17-16-05

The only thing that works is killing and restarting the client.

The9Cat avatar Jul 22 '22 21:07 The9Cat

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.

yuezk avatar Jul 25 '22 01:07 yuezk

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.

herzrasen avatar Oct 18 '22 15:10 herzrasen

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 😕

stdedos avatar Jan 10 '24 13:01 stdedos

+1

tinkermakar avatar May 01 '24 19:05 tinkermakar

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

yuezk avatar May 06 '24 10:05 yuezk