initial commit
This commit is contained in:
20
wifi-powersave-off.sh
Executable file
20
wifi-powersave-off.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# Disable WiFi power saving for all wireless interfaces
|
||||
# Run as root or with sudo
|
||||
|
||||
for iface in $(iw dev | awk '/Interface/ {print $2}'); do
|
||||
echo "Disabling power saving for $iface..."
|
||||
iw dev "$iface" set power_save off
|
||||
done
|
||||
|
||||
echo "WiFi power saving disabled for all interfaces."
|
||||
|
||||
echo "To make this persistent across reboots, create a NetworkManager config: /etc/NetworkManager/conf.d/wifi-powersave.conf"
|
||||
cat <<EOF | sudo tee /etc/NetworkManager/conf.d/wifi-powersave.conf
|
||||
[connection]
|
||||
wifi.powersave = 2
|
||||
EOF
|
||||
|
||||
sudo systemctl reload NetworkManager
|
||||
|
||||
echo "Persistent WiFi power saving setting applied."
|
||||
Reference in New Issue
Block a user