WiFi Power Management – How to Permanently Disable Power Management on WiFi

power-managementwireless

So I have a problem with my wifi, every time I reboot my system the power management is again 'On'. I have trier to create a "wireless" file the following code inside but no luck in this location /etc/pm/power.d :

#!/bin/sh
/sbin/iwconfig wlo1 power off

What im a missing?

Ubuntu 16.04

Best Answer

In Ubuntu 16.04 and above run this command to turn off power management.

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Reboot