Ubuntu: I have to issue “rfkill unblock wifi” at every boot


Config: Laptop, standard working wifi card, Ubuntu 14.04

At every boot, Wifi/Wlan is off/SoftBlocked, I can get it to work with the command sudo rfkill unblock wifi

but after every reboot I have to re-issue that command again (actually that's not entirely true, sometimes (5%) it seems to "stick" through a reboot).

Is there a way to tell rfkill to never block wifi, without having to tell it so explicitly every time?


You can make a service to do this. Execute the following command:

sudo nano /etc/systemd/system/rfkill-unblock-wifi.service  

then, copy and paste the following into the file:

[Unit]  Description=RFKill-Unblock WiFi Devices    [Service]  Type=oneshot  ExecStart=/usr/sbin/rfkill unblock wifi  ExecStop=  RemainAfterExit=yes    [Install]  WantedBy=multi-user.target  

Press CTRL + o and then press ENTER to save the file. Press CTRL + x to exit nano.

Finally, execute the following command to enable start up the service:

sudo systemctl enable rfkill-unblock-wifi.service  sudo systemctl start rfkill-unblock-wifi.service  

Hopefully this doesn't start before wifi is blocked.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »