Installation of iw
To use iw , use the package manager to perform the installation from the repositories.
- Ubuntu / Debian based systems:
$ sudo apt install iw
- RHEL / CentOS:
# yum install iw
Use of iw
After a successful installation iw can be executed in the terminal as root and be called with further parameters.
Among other things, the tool offers several options for configuring available WLAN adapters:
- Control of power management
- Control of transmission power
- Output hardware properties of the WLAN device
- Output connection status of the WLAN device
- Scan the neighboring WLAN networks for signal strength (reception quality) / transmission rate and encryption method used
Examples
Here are some examples of how to use iw :
- Get current WLAN interfaces:
# iw dev
- Current device capabilities of the WLAN device:
# iw list
- Switch off power management (problematic: poor transmission / reception power):
# iw dev wlan0 set power_save off
- Get current power management status:
# if dev wlan0 get power_save
Power management in conjunction with NetworkManager
Since the setting is lost during a reboot, it is recommended to permanently enter the settings in the file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf . For example the value “2” for power management “Off”.
Add the following entry to default-wifi-powersave-on.conf :
[Connection] wifi.powersave = 2
2 Comments
me · May 8, 2020 at 1:48 PM
Hi, little mistake: I guess you mean “iw dev wlan0 get power_save” instead of “if dev wlan0 get power_save” (iw not if)
nobody11 · October 31, 2022 at 1:02 AM
if dev wlan0 get power_save
^^ did you mean: “iw”