Saturday, October 13, 2018

When Linux wireless does not awake from suspend mode-here's how to fix it

r8169                  34108  0 
mii                     4381  1 r8169
binfmt_misc             6587  1 
videodev               34361  1 uvcvideo
v4l1_compat            13251  2 uvcvideo,videodev
rt3090sta             905769  0 
vboxdrv               230432  2 vboxnetadp,vboxnetflt
joydev                  8740  0 
...
The Realtek 8169 ethernet device network connection is lost after returning from sleep.
So go into the hardware specification

type in Terminal

sudo lsmod
 
the result for this search is
 
...
r8169                  34108  0 
mii                     4381  1 r8169
binfmt_misc             6587  1 
videodev               34361  1 uvcvideo
v4l1_compat            13251  2 uvcvideo,videodev
rt3090sta             905769  0 
vboxdrv               230432  2 vboxnetadp,vboxnetflt
joydev                  8740  0  


 So name I was looking for is the name of "r8169" kernel module from the list above. Next thing is to add this kernel module to the list of kernel modules to unload before going to sleep and reload after returning from sleep.  Do this by editing (creating it if it doesn't exist)
 /etc/pm/config.d/unload_modules file like this:
sudo gedit /etc/pm/config.d/unload_modules
Now we add following to that file (you should replace "r1869" with the name of kernel module that is making problems for your configuration):
SUSPEND_MODULES="$SUSPEND_MODULES r8169"
That is it. Now put your PC to sleep and test is your troublesome hardware working after resume.


Courtesy of Techy Talk

No comments:

Post a Comment