Chapter 36. Disable wifi sleep
-
Test if it's on:
iw wlan0 get power_save
If it's on, it will sayPower save: off
Note
Source: Stackoverflow
-
Create a unit file with
sudo systemctl --full --force edit wifi_powersave@.service
and paste in wifi_powersave@.service.Note
wifi_powersave@.service
source[Unit] Description=Set WiFi power save %i After=sys-subsystem-net-devices-wlan0.device [Service] Type=oneshot RemainAfterExit=yes ExecStart=/sbin/iw dev wlan0 set power_save %i [Install] WantedBy=sys-subsystem-net-devices-wlan0.device
For more details on editing userChrome.css, see Browser Toolbox help.
-
Enable it with
sudo systemctl disable wifi_powersave@on.service
sudo systemctl enable wifi_powersave@off.service