Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
14
rated 0 times [  14] [ 0]  / answers: 1 / hits: 7524  / 2 Years ago, thu, december 2, 2021, 4:54:37

I'm on an ASUS K52F running Ubuntu 11.10 with the AR9285 wireless card. Wifi works acceptably before suspending, after it doesn't show any networks. the only solution I've found is a full reboot.


More From » 11.10

 Answers
0

You can reload the wireless driver after suspend to avoid a reboot. My driver is 'ath9k' which you can find by running 'nm-tool' and look for the line similar to



Driver:   ath9k


Then to reload the driver:



sudo rmmod ath9k
sudo modprobe ath9k


To make this happen automatically when you come back from suspend we can add the following script at /etc/pm/sleep.d/00_wireless_sleep



#!/bin/sh

case "$1" in
suspend|hibernate)
/sbin/rmmod ath9k
;;
resume|thaw)
/sbin/rmmod ath9k
/sbin/modprobe ath9k
;;
esac
exit 0


Replace the "ath9k" module name with the module you discovered from the nm-tool output mentioned above. I had to name the script "00_wireless_sleep" so it gets run after all the other resume scripts (scripts get run in reverse order on resume).
Don't forget to make file "00_wireless_sleep" executable:



sudo chmod 755 /etc/pm/sleep.d/00_wireless_sleep


[#42947] Friday, December 3, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
wherejuic

Total Points: 53
Total Questions: 123
Total Answers: 117

Location: Zambia
Member since Mon, Jan 23, 2023
1 Year ago
wherejuic questions
Thu, Aug 19, 21, 18:07, 3 Years ago
Wed, May 12, 21, 03:23, 3 Years ago
Sat, Nov 13, 21, 05:27, 3 Years ago
Mon, Sep 5, 22, 17:36, 2 Years ago
;