wlan0 No such device

32,420

Solution 1

The answer to your question is to use sudo iwconfig wlp4s0 power off But I doubt if it will fix your issue as the ath9k module blocks power management changes unless you

sudo modprobe -r ath9k
sudo modprobe -r ath9k ps_enable=1

You may actually want to try

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
systemctl restart network-manager.service

Solution 2

Your wlan0 name adapter is wlp4s0.

Correct use of wlp4s0:

iwconfig wlp4s0
sudo iwconfig wlp4s0 power off
Share:
32,420

Related videos on Youtube

stackinator
Author by

stackinator

Updated on September 18, 2022

Comments

  • stackinator
    stackinator almost 2 years

    I am trying to run these two commands in an attempt to fix my intermittent wireless connection

    iwconfig wlan0
    sudo iwconfig wlan0 power off
    

    But I get this error

    wlan0     No such device
    
    • Jeremy31
      Jeremy31 over 5 years
      Please edit to add results for lsusb; lspci -nnk | grep -iA3 net; iwconfig
    • stackinator
      stackinator over 5 years
      @Jeremy31 updated per your recommendation
    • Ember
      Ember over 5 years
      sounds like you're using the wrong name for the network device use ifconfig to see what your network device name is(it will be on the left hand side along with lo)
    • stackinator
      stackinator over 5 years
      updated per your recommendation. Does that change anything?
    • Ember
      Ember over 5 years
      whatever name you get on the left top of the command ifconfig is your network device name and should be used instead of wlan0 (wlp4s0 in your case)
  • Jeremy31
    Jeremy31 over 5 years
    The issue with using wlan0 is that it doesn't exist, your wifi interface is wlp4s0. The ps_enable will switch back to default on a reboot and the sudo sed command can be reversed by changing where the 2 and 3 are