Turn Wi-Fi power saving off
This commit is contained in:
1 parent
d92290c06c
commit
f1dbff658a
5 files changed
+18
No files matched your search
@@ -0,0 +1,2 @@
|
||||
[connection]
|
||||
wifi.powersave = 2
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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=(
|
||||
|
||||
Reference in new issue
Block a user