mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-01 02:28:41 +00:00
Permanently disable WiFi powersave. Previous implementation wasn't working on Bionic. Now is.
This commit is contained in:
parent
881ceb2ffb
commit
40e5ce955b
2 changed files with 6 additions and 3 deletions
|
@ -88,6 +88,12 @@ create_board_package()
|
|||
rm /var/swap
|
||||
fi
|
||||
fi
|
||||
# disable power management on network manager
|
||||
if [ -f /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf ]; then
|
||||
sed -i 's/wifi.powersave.*/wifi.powersave = 3/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
|
||||
else
|
||||
echo -e "[connection]\nwifi.powersave = 3" > /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
|
||||
fi
|
||||
# disable deprecated services
|
||||
systemctl disable armhwinfo.service >/dev/null 2>&1
|
||||
#
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[connection]
|
||||
# Values are 0 (use default), 1 (ignore/don't touch), 2 (disable) or 3 (enable).
|
||||
wifi.powersave = 2
|
Loading…
Add table
Add a link
Reference in a new issue