I have been using a VPN connection on an old ThinkPad with Ubuntu 18.04 (and before that 16.04) for several years without any problems and the VPN connection was stable for hours (if not days). After changing the machine (to Macbook Pro) and upgrading to 20.04, the same VPN connection will terminate after about 5 minutes if there is no other activity on the machine. All the time I am interacting with the machine (mouse or keyboard activity), the VPN remains connected. So I suspect this is something to do with the MacBook Pro's power saving.
I have disabled all the power saving/sleep settings (that I can find) and the auto screen dimming settings. But even then, if I am not moving the mouse or typing, the VPN connection is lost after a few minutes.
Any suggestions for troubleshooting and (hopefully) resolving would be much appreciated!