Skip to contentSkip to conversation

Samsung Galaxy S6 to android 6.0.1 powersave

Openvpn-devel [email protected]... 4 participants 5 messages Mar 7, 2016 – Mar 8, 2016

lore
Share & tools
lore
#1 lore raw

Hi,

Quoted 5 lines · On Mon, Mar 7, 2016 at 9:55 AM, <[email protected]...> wrote:

An interesting tid-bit about Samsung Galaxy S6 to android 6.0.1 and OpenVPN Connect

https://forums.openvpn.net/post59478.html#p59478

Sounds, suspiciously similar to the sleep-resume issue we had on windows.. The interface probably suspends and openvpn exits?

Brings up an interesting question: should power events be handled by openvpn or by the UI or in a service that starts it (if relevant)? My view:
although openvpn need not directly handle power events, if an interface driver notifies that it wants to suspend, it should respond to it appropriately by restarting after a pause, for example. On windows, our workaround for a long time was for the GUI to suspend/restart openvpn on power events, though we changed that a while ago to put the onus of restarting back on to openvpn.

But one could argue that its the job of the process starting openvpn to respawn it if needed, instead of making it handle all kinds of failure scenarios... Any thoughts on which is a better approach?

Selva

#2 lore raw

Am 07.03.16 um 16:28 schrieb Selva Nair:

Quoted 5 lines

Hi,

On Mon, Mar 7, 2016 at 9:55 AM, <[email protected]... <mailto:[email protected]...>> wrote:

Quoted 9 lines

An interesting tid-bit about Samsung Galaxy S6 to android 6.0.1 and OpenVPN Connect

https://forums.openvpn.net/post59478.html#p59478

Sounds, suspiciously similar to the sleep-resume issue we had on windows.. The interface probably suspends and openvpn exits?

In this case that is again some Samsung "optmization". If there is one manufacture of Android that consistently breaks things it is Samsung. I have no idea what new idea they now had to break the VPNService when combined with powersaving features or if OpenVPN Connect is doing something wrong but normally the app is notified by an onRevoke call before the tun device is closed.

Arne

#3 lore raw

----- Original Message ----- From: "Arne Schwabe" <[email protected]...>
To: "Selva Nair" <[email protected]...>; "Debbie Tent" <[email protected]...>
Cc: <[email protected]>; <[email protected]>
Sent: Monday, March 07, 2016 3:40 PM
Subject: Re: [Openvpn-devel] Samsung Galaxy S6 to android 6.0.1 powersave

Quoted 17 lines

Am 07.03.16 um 16:28 schrieb Selva Nair:

Quoted 5 lines

Hi,

On Mon, Mar 7, 2016 at 9:55 AM, <[email protected]... <mailto:[email protected]...>> wrote:

Quoted 9 lines

An interesting tid-bit about Samsung Galaxy S6 to android 6.0.1 and OpenVPN Connect

https://forums.openvpn.net/post59478.html#p59478

Sounds, suspiciously similar to the sleep-resume issue we had on windows.. The interface probably suspends and openvpn exits?

Quoted 9 lines

In this case that is again some Samsung "optmization". If there is one manufacture of Android that consistently breaks things it is Samsung. I have no idea what new idea they now had to break the VPNService when combined with powersaving features or if OpenVPN Connect is doing something wrong but normally the app is notified by an onRevoke call before the tun device is closed.

Arne

I just thought it was interesting that somebody found *a* solution to what seems to be a common problem and it was worth letting ppl here know.

regards

#4 lore raw
Quoted 3 lines

I just thought it was interesting that somebody found *a* solution to what seems to be a common problem and it was worth letting ppl here know.

Indeed. It remains to be seen whether this overly aggressive power saving configuration is limited to Samsung, or whether it's a Android 6.0.x thing.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock