Linux 4.15.0-154-generic #161-Ubuntu SMP Fri Jul 30 13:04:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
It's on a Lenovo G50 laptop.
I have three user profiles set up on the machine. Only two are ever used. One (the administrator, myself) stays logged in usually, and uses the "switch user" command to return to the main login screen. Another profile, which is given most, but not administrator, privileges, logs in and out most of the time, and sometimes switches out.
During periods when only I switched in and out, things worked as needed. When both parties logged or switched in and out, after a few days it always happened that I logged in to find the internet connection lost. On the indicator panel in my toolbar, there's a button for viewing and editing connections. When it was viewed, the "Enable WiFi" option was unchecked, and grayed-out so it couldn't be re-checked. The Wi-Fi was of course working fine, and neither I nor the other manually did anything with any connection options (on this computer, Wi-Fi is left on always). I found the only way to settle the issue was a restart. This was annoying, but I did it for a time because I couldn't then be bothered to look into it.
Lately, I tried to settle the issue by connecting the laptop directly to Ethernet, just to see if it would change things. But in a few days it happened again, in the same way: this time, the "Wired connection 1" option under "Ethernet Network" was disabled and grayed-out.
How do I fix this?