projectvikram / projectvikram.github.io

GSF VIKRAM - An inclusive rural digitalization platform by GramSheel Foundation
GNU General Public License v3.0
0 stars 5 forks source link

My Introduction to Wi-Fi 'Hard block' and 'rfkill' #3

Open srija-ieee opened 4 years ago

srija-ieee commented 4 years ago

While I was adjusting the brightness of my laptop, my internet suddenly got disconnected. I checked router and Wi-Fi connection, they were perfectly fine, I noticed Wi-Fi symbol disappeared from the drop-down menu, even the settings showed no options to turn it 'on' and the notification said 'No Wi-Fi Adapter Found' as shown in the screen shot below :

pic 1

Surmising an issue in the Wi-Fi driver, I removed the exisiting Wi-Fi packages using 'apt' & 'purge' tools and then re-installed them, but couldn't find any change!!

I then checked the list of pci buses on my system using 'lspci' command and realised “Network Bus’’ was missing.

With my collegue’s intervention I came across ‘rfkill’ tool..

'rfkill' - is a tool that gives an interface to know the status, activate and deactivate the radio transmittors in a computer. It is mainly associated with wireless tramsittors in the system like 'Wi-Fi' , 'Bluetooth' and Mobile Broadband Devices .

When these devices are deactivated they fall into 'soft block' ( a state in which the device can be re-activated using software) or 'hard block' ( a state in which the device cannot be re-activated using a software )

( References: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/power_management_guide/rfkill

https://linux.die.net/man/1/rfkill )

Using the command ''rfkill list'' I found that the wireless LAN was hard blocked and as understood hard block cannot be unblocked using software...

As mentioned in the beginning of my writeup, I remembered I was adjusting the brightness using keyboard buttons (Function +F12) supposing this action might have blocked Wi-FI I tried it again but no luck...

Then I tried 'Function + Prtscr' ( ‘PrtScr’ has a transmittor symbol on it) and finally it worked!!!

Looking back at my initial action I might accidentally stroked ‘PrtScr’ key (which is right beside F12) while holding 'Function (Fn)' key

It is important to be vigilant of the actions and keyboard strokes you give while using the keyboard otherwise we may end up triggering changes in hardware setup!!!!

obonac commented 4 years ago

This should be written as an article in the PV Journal - in my opinion.

https://github.com/pvjournal/pvjournal.github.io - please fork, update and raise a pull request.

Use the template in the _posts folder

obonac commented 4 years ago

Move the article from https://projectvikram.github.io/tech/networking/drsrija-intro-rfkill/

https://pvjournal.github.io/posts/

obonac commented 4 years ago

Refer https://medium.com/@ayushya/move-directory-from-one-repository-to-another-preserving-git-history-d210fa049d4b for future