If like me you have had issues with your wireless USB dongle turning off when your Pi thinks it is idle there is an easy way you can fix this.
- We make a quick edit
- We restart the networking processes
- We verify it has worked
Making the Edit
You need to edit your
/etc/network/interfaces, we need to do this as sudo.
sudo nano works just as well if you don’t like vim.)
The change we need to make is to add
wireless-power off to this configuration file, this tells the wireless USB dongle not to attempt to do its own power management.
We should add this to the bottom of the file.
As an example here is my complete file (don’t just copy and paste my entire file, do whatever works for you!);
Restarting the Network Processes
Once we have made this edit we simply need to restart the networking processes, we do this by calling the following;
Verify the change has worked
Once things have restarted we need to make sure that when we run
iwconfig we can see as part of the output “Power Management:off”.
If you an see “Power Management:off” our change has worked.