Skip to content

Instantly share code, notes, and snippets.

@geekman
Created August 17, 2022 08:10
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 geekman/6e32d27f3405d2b04f831b3748e6b19a to your computer and use it in GitHub Desktop.
Save geekman/6e32d27f3405d2b04f831b3748e6b19a to your computer and use it in GitHub Desktop.
systemd unit to disable WiFi power-save
# /etc/systemd/system/wifi-powersave@.service
[Unit]
Description=Disables power-save on WiFI interface %I
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=oneshot
ExecStart=/usr/bin/iw %i set power_save off
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment