The issue still exists but I created a workaround using a script to
automatically remove and reload ath9k when resuming under /usr/lib/pm-
utils/sleep.d
[CODE]#!/bin/sh
. "${PM_FUNCTIONS}"
module="ath9k"
fix_mouse()
{
echo "\*\*\*\* FIXING THE MOUSE \*\*\*\*"
/bin/chvt 1
/bin/chvt 7
#gtk-update-icon-cache /usr/share/icons/hicolor/
echo "mouse should be fixed now"
}
fix_wifi()
{
echo "\*\*\*\* FIXING THE WIFI \*\*\*\*"
cur_freq=`sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq`
min_freq=`sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
echo "cpu speed is $cur_freq"
echo "changing cpu speed to $min_freq"
#cpufreq-selector -f $min_freq #TIME COMMAND TAKES A WHILE FOR SOME REASON
cpufreq-set -f $min_freq #THIS COMMAND IS FASTER FOR SOME REASON
echo "cpu speed set to $min_freq"
echo "sleeping for 1 second"
sleep 1
echo "done sleeping"
echo "removing module $module"
rmmod $module
echo "probing module $module"
modprobe $module
# echo "changing cpu speed back to $cur_freq"
# cpufreq-selector -f $cur_freq
}
case "$1" in
hibernate|suspend)
echo "BLAH status: $1"
;;
thaw|resume)
echo "status: $1"
fix_mouse
#fix_wifi
;;
*)
exit $NA
;;
esac[/CODE]
Also, cpufreq-selector seems to have a bug which causes it to take 30
seconds to set the cpu speed. So I installed cpufreq-set which works
instantly.
--
Wifi cant connect after suspend with highest cpu freq set
https://bugs.launchpad.net/bugs/628310
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs