0

I have a Rock960 board running Ubuntu server. It suffers from a "bug" where SSH is extremely laggy because WiFi power management is turned on.

I've tried various solutions to permanently disable it:

None of them work (permanently). Something on the system is forcing power management on a few seconds after it's turned off, whether manually or through some config file. I've fixed this by running a bash script via rc.local which polls iw every few seconds and disables power management if it's turned on. This works, but it's frustrating not knowing what the actual problem is. Even running a cronjob every minute isn't enough.

The system is using NetworkManager as far as I can tell, but none of the configuration overrides seem to work.

Is there a way of figuring out what's enabling power management (perhaps via a log)?

The script, in case anyone finds it useful:

#!/bin/bash

management_off="Power Management: off"

while true; do
  status=`/sbin/iw wlan0 | grep "Power Management"`

  if  [ "$status" != "$management_off" ]; then
    /sbin/iw wlan0 set power_save off
  fi

  sleep 5

done
Josh
  • 150

1 Answers1

0

Change in /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf wifi.powersave = 2 this should disable it with Network-Manger.source git hub

Without Network-Manger you can create an udev rule. KERNEL=="wlan*", ACTION=="add", RUN+="/sbin/iwconfig wlan0 power off" For wlan* set the name of your interface.

nobody
  • 5,792