This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

(SOLVED) USB wifi stops working after waking up from standby

tjesker

Sat Oct 03, 2015 11:25:40 am

I have Zorin OS Core 10 on a laptop and manually installed a rtl8812au driver for a Glam Hobby 600Mbps AC600 Dual Band USB WiFi Dongle & Wireless Network Adapter. The wifi works great except after I open the laptop lid and the laptop wakes up from standby. It sees available networks but does not connect automatically and when I try to connect manually it stops working altogether. If I reboot, everything works great again.

Any suggestions on what I might need to do to get it to work after waking up from standby?

Swarfendor437

Sat Oct 03, 2015 12:42:08 pm

Always best to do some research before buying:

http://www.htpcbeginner.com/linux-compa ... ters-2012/

That said, I think there has always been some issues with 'hibernation/sleep' mode with GNU/Linux - which is somewyas to do with the Kernel, and others in respect of Hardwarre manufacturers making things more compatible with Windows than GNU/Linux. ;) :D

tjesker

Sun Oct 04, 2015 8:56:37 pm

Swarfendor437

Sun Oct 04, 2015 10:58:50 pm

Hi, thanks for getting back to us - this will help other forum members. Will mark as [SOLVED]. :D

tjesker

Mon Oct 05, 2015 11:17:41 am

Not sure why but the solution I mentioned doesn't work 100% of the time when I open the lid.

As a band aid I've been keeping a terminal window open with
Code:
/etc/init.d/networking restart
as the last command entered so that I only have to press the up arrow to bring it up again and then ENTER and the root password to get the wifi adapter working again.

Would be interested in any other suggestions for a better solution.

Swarfendor437

Mon Oct 05, 2015 11:36:06 am

madvinegar? ;) (This is not a suggestion but a request to madvinegar the mod for input) :D

madvinegar

Tue Oct 06, 2015 5:14:28 pm

What is the wireless driver you are using? rtl8812au ?
You can run the command
Code:
lspci -nnk | grep -iA2 net


to verify it.

Lets assume that the driver is indeed rtl8812au

Open terminal and run
Code:
sudo gedit /etc/pm/config.d/modules


Inside add the line:
Code:
SUSPEND_MODULES="rtl8812au"


Suspend the laptop and see of that works.
If the above is not enough, do also the following. Open terminal and run:
Code:
sudo gedit /usr/lib/pm-utils/sleep.d/0000wireless


Inside, copy paste the following:

Code:
#!/bin/sh

# reload rtl to get wireless to recover properly

case "$1" in
resume|thaw)
rmmod rtl8812au
modprobe rtl8812au
;;
esac


Save and close the file.
Then in terminal run:

Code:
sudo chmod a+x /usr/lib/pm-utils/sleep.d/0000wireless


Suspend the laptop and see of that works.

tjesker

Wed Oct 07, 2015 12:18:37 am

Thanks much madvinegar. The first option appears to have done the trick. Glad you included the step about how to confirm the driver because somehow it was not the one I said. Really appreciate your help.

madvinegar

Wed Oct 07, 2015 6:01:08 pm

Glad I helped my friend.