4 ms·
I regularly have to $sudo systemctl restart NetworkManager.service after suspend on Ubuntu LTS :(.
by antnisp 10y ago
I regularly have to $sudo systemctl restart NetworkManager.service after suspend on Ubuntu LTS :(.
- therealjumbo 10y ago16.04 or 14.04? I have to do the same after suspend on 16.04 gnome ubuntu, on my personal laptop. Network manager is such a shame on a system that otherwise gives me no trouble. I stay in the terminal and the web browser the vast majority of the time, so I don't need tons of fancy desktop stuff, but if it stays out of my way? Meh, sure whatever. At work, I have a RNDIS USB network device I need to connect to (work laptop, not personal) and Network Manager is just insane, I don't even know what its trying to do. It only works if I delete the connection every time it boots, and re-add it. I just wish I could figure out where to add it in a config file and never touch it, but all the documentation seems out of date. Ubuntu is trying to do so many changes in such a short period of time I guess they were bound to have some difficulties but it does seem like Network Manager is the worst of the bunch, otherwise everything else seems great.
- likeclockwork 10y agoHey, You can make a oneshot systemd unit that's WantedBy=suspend.target that just restarts it for you. It should look something like this(didn't test because I'm not on my laptop right now): [Unit] Description=Restart NetworkManager after resume from suspend. After=suspend.target [Service] Type=oneshot ExecStart=/usr/bin/systemctl restart NetworkManager.service [Install] WantedBy=suspend.target