NetworkManager may enable Wi-Fi power saving by default.
To ensure stable networking, set wifi.powersave = 2 to disable power saving.
| Value | Meaning |
|---|---|
| 0 | Default |
| 1 | Enable power saving |
| 2 | Disable power saving |
| 3 | Force enable |
Open the configuration file:
sudo nano /etc/NetworkManager/conf.d/wifi-powersave.confInsert the following content:
[connection]
wifi.powersave = 2[connection]defines the NetworkManager connection configuration section.wifi.powersave = 2disables Wi-Fi power saving.
Apply the changes by restarting the service:
sudo systemctl restart NetworkManagerCheck service status:
systemctl status NetworkManagerList available connections:
nmcli connection showExample output:
NAME UUID TYPE DEVICE
mywifi xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx wifi wlan0
Ensure the connection name is exactly mywifi.
sudo nmcli connection modify mywifi connection.autoconnect yes- Automatically reconnect when Wi-Fi disconnects.
- Automatically connect at system boot.
sudo nmcli connection modify mywifi connection.autoconnect-priority 20If multiple Wi-Fi profiles exist, NetworkManager selects the highest priority value.
Default priority: 0
Higher value = Higher connection preference.
Example:
| Profile | Priority |
|---|---|
| home | 10 |
| mywifi | 20 |
| mobile | 5 |
In this case, mywifi connects first.
nmcli connection show mywifi | grep autoconnectExpected output:
connection.autoconnect: yes
connection.autoconnect-priority: 20
cat /etc/NetworkManager/conf.d/wifi-powersave.confiw dev wlan0 get power_saveExpected output:
Power save: off