reduce wifi reconnection time after deep sleep #150
This commit is contained in:
parent
861eac8cca
commit
00cf2ba3ec
5 changed files with 23 additions and 3 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
sxmo_statusbarupdate.sh
|
||||
|
||||
(sleep 15 && sxmo_resetscaninterval.sh) &
|
||||
|
||||
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/postwake" ]; then
|
||||
"$XDG_CONFIG_HOME/sxmo/hooks/postwake"
|
||||
fi
|
||||
|
|
11
scripts/core/sxmo_resetscaninterval.sh
Executable file
11
scripts/core/sxmo_resetscaninterval.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# this script resets the wireless scan interval (value is in ms)
|
||||
# it is invoked with a delay after waking from sleep
|
||||
# to prevent the scan interval from being too quick, and thus
|
||||
# too battery consuming, whilst no networks are found
|
||||
|
||||
# the kernel parameter must be writable for the user
|
||||
# or this script must have the setsuid bit set!
|
||||
|
||||
echo 16000 > /sys/module/8723cs/parameters/rtw_scan_interval_thr
|
Loading…
Add table
Add a link
Reference in a new issue