22 January 2010

Ethernet and wifi not working after long suspend

I noticed that after suspend my wifi stops working. The same seems to happen with my ethernet when the suspend time is longer.

Reloading appropriate modules seems to help. For my wireless it is ath5k and for ethernet sis190:
sudo modprobe -r ath5k; sudo modprobe ath5k
sudo modprobe -r sis190; sudo modprobe sis190
Then I found out that  in /etc/pm/config.d/ a file can be added for specifying which modules should be unloaded when suspending machine. Adding both my modules to file /etc/pm/config.d/00unload_modules:
SUSPEND_MODULES="$SUSPEND_MODULES ath5k sis190"
solved the issue. Not sure about $SUSPEND_MODULES some sources have it some not.

By the way I added also some additional modules: usbhid and usb_storage. It might help when I suspend and resume with different devices connected to my USB. Since I remove usb_storage, the usb memory should got disconnected safely.

Still however I have a problem with my ethernet. As soon as I change the MAC it stops working and only reloading the module helps:/

No comments:

Post a Comment