NetworkManager supports WiFi powersaving but the function is rather undocumented.
From the source code: wifi.powersave can have the following value:
- NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value
- NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting
- NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave
- NM_SETTING_WIRELESS_POWERSAVE_ENABLE (3): enable powersave
Then I propose 2 files, only one of them needs to be put under /etc/NetworkManager/conf.d/
.
One is forcing to disable powersaving, while the other one enable it.
Once you have put the file in the right folder, simply restart NetworkManager:
sudo systemctl restart NetworkManager
There is a discussion on the linustechtips.com forum about power saving and the rfc2863 protocol. Unfortunately the user did not follow my instructions, but he mixed them with other instructions taken from the internet, not solving the problem. If anyone wants to intervene and also correct what I have suggested to the user, he is welcome.
https://linustechtips.com/topic/1428381-kubuntu-keep-log-me-off-my-wifi/?do=findComment&comment=15386100