Skip to content

Instantly share code, notes, and snippets.

@frdmn
Created March 8, 2023 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frdmn/9b3fcf8ee7e6b2223da44314e023c969 to your computer and use it in GitHub Desktop.
Save frdmn/9b3fcf8ee7e6b2223da44314e023c969 to your computer and use it in GitHub Desktop.
Disable power save mode for wireless interfaces on Raspbian 10/Buster
vi /usr/lib/systemd/system/wifi_disable_powersave.service
[Unit]
Description=Disable WiFi power save mode
After=sys-subsystem-net-devices-wlan0.device

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/iw dev wlan0 set power_save off

[Install]
WantedBy=sys-subsystem-net-devices-wlan0.device
systemctl daemon-reload
systemctl enable wifi_disable_powersave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment