From f1dbff658aa559c61b8ea09e3a2e8fe3349490c2 Mon Sep 17 00:00:00 2001 From: SirBlob Date: Sat, 10 Oct 2026 22:44:51 -0400 Subject: [PATCH] Turn Wi-Fi power saving off --- .../conf.d/10-blob-wifi-powersave.conf | 2 ++ docs/install.md | 2 ++ install.sh | 1 + install/steps/services.sh | 12 ++++++++++++ uninstall.sh | 1 + 5 files changed, 18 insertions(+) create mode 100644 default/networkmanager/conf.d/10-blob-wifi-powersave.conf diff --git a/default/networkmanager/conf.d/10-blob-wifi-powersave.conf b/default/networkmanager/conf.d/10-blob-wifi-powersave.conf new file mode 100644 index 0000000..111af0b --- /dev/null +++ b/default/networkmanager/conf.d/10-blob-wifi-powersave.conf @@ -0,0 +1,2 @@ +[connection] +wifi.powersave = 2 diff --git a/docs/install.md b/docs/install.md index a49eb53..13b64c7 100644 --- a/docs/install.md +++ b/docs/install.md @@ -105,6 +105,8 @@ with `--check`. `blob-audio-tuning` installs it only on machines with a tuning profile. 7. **systemd drop-ins** are written under `/etc`: the shutdown timeouts, the oomd pressure thresholds, the plocate prune paths, and the sleep hooks. + `/etc/NetworkManager/conf.d/10-blob-wifi-powersave.conf` turns Wi-Fi power + saving off, and NetworkManager is reloaded when it changes. 8. **System services** are enabled: NetworkManager, resolved, bluetooth, cups, avahi, docker, power-profiles-daemon, and oomd. `NetworkManager-wait-online.service` is masked so a slow DHCP lease cannot diff --git a/install.sh b/install.sh index 40b0734..ac58455 100755 --- a/install.sh +++ b/install.sh @@ -83,6 +83,7 @@ install_shell_profile install_bash_integration install_user_units install_systemd_dropins +install_network_config install_zen_config install_desktop_apps install_default_apps diff --git a/install/steps/services.sh b/install/steps/services.sh index aa4c9ba..55ec8b5 100644 --- a/install/steps/services.sh +++ b/install/steps/services.sh @@ -116,6 +116,18 @@ install_systemd_dropins() { fi } +install_network_config() { + local changes_before=$changes + + install_root_file "$repo_dir/default/networkmanager/conf.d/10-blob-wifi-powersave.conf" \ + /etc/NetworkManager/conf.d/10-blob-wifi-powersave.conf \ + "NetworkManager/conf.d/10-blob-wifi-powersave.conf" + + [[ $check == true ]] && return 0 + (( changes > changes_before )) || return 0 + as_root systemctl reload NetworkManager.service &>/dev/null || true +} + install_user_units() { local unit diff --git a/uninstall.sh b/uninstall.sh index 7951b0f..149cff3 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -28,6 +28,7 @@ root_files=( /etc/systemd/system/netbird@.service.d/10-blob.conf /etc/systemd/system-sleep/keyboard-backlight /etc/systemd/system-sleep/unmount-fuse + /etc/NetworkManager/conf.d/10-blob-wifi-powersave.conf ) user_units=(