When my Ubuntu 14.04 machine awakes from hibernation, sometimes the network is disable and enabling it does not make it work again. Running
sudo service network-manager restart
alone does not solve the problem. But
sudo ifconfig wlan0 down && sudo ifconfig wlan0 up
tend to solve the problem for a wlan connection.
However, it fails to start a PPP connection through 3G or GPRS unless I re-boot. Re-starting the smartphone used as a modem does not help here.
How can I re-start all network modules without re-booting?
The machine is connected through a USB cable to the smartphone. I am using the network-manager and the nm-applet to start the connection.
It's a persistent problem, in earlier versions it was already a problem.
I won't enter on the reason why the network gets disabled after hibernation. I believe there's information somewhere about how to deal with this bug though. However, it was not a big issue for me.
sudo lsmod | grep ppp ppp_deflate 12950 0 ppp_async 17413 1 crc_ccitt 12707 1 ppp_async sudo lsmod | grep usb usb_serial_simple 17386 2 usbserial 45141 6 usb_serial_simple usb_storage 66545 1 uas