You are not logged in.

#1 2013-06-14 00:57:43

cikguaiyad
Member
Registered: 2013-06-04
Posts: 5

[SOLVED] Issue with wireless adapter, RFKILL.

I have a built in wireless adapter.
Everytime I want to use my wifi network, i'll have to manually bring up the interface by,

# ip link set wls2p0 up

But initially it will reply, device blocked by RFKILL.
So i check with rfkill.

# rfkill list all
0: phy0: Wireless LAN
	Soft blocked: yes
	Hard blocked: no

In order to use wifi, i have to unblock and bring the interface up again by doing:

# rfkill unblock all
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

# ip link set wls2p0 up

Then i can connect using NetworkManager.
The thing is, i have to do it again after restart. The point is, I am not lazy to just type 2 codes every time I restart the system.
But, it is kinda annoying if i had to do it every time, can I just unblock it permanently?
Please somebody shed me some lights.

Last edited by cikguaiyad (2013-06-14 02:27:58)

Offline

#2 2013-06-14 01:15:54

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Issue with wireless adapter, RFKILL.

Rfkill provides a service file for exactly this!  There are a couple actually, as there is a block and unblock.  Do "pacman -Ql rfkill | grep service" and see the wonders of the package.  You then have a choice though.  If there are multiple things that you would like to be unblocked un boot, you can enable services for each one of them (the service is called rfkill-unblock@.service), or you can do a single service specifying "all". 

The other option is to set the rfkill module to load trying various parameters.  There are two options for the rfkill module, and I have never used them, but they appear to aply to what you are asking here.  Do "modinfo rfkill" and look at the bottom of the ouput for the parm lines.

Offline

#3 2013-06-14 02:26:38

cikguaiyad
Member
Registered: 2013-06-04
Posts: 5

Re: [SOLVED] Issue with wireless adapter, RFKILL.

WonderWoofy wrote:

Rfkill provides a service file for exactly this!  There are a couple actually, as there is a block and unblock.  Do "pacman -Ql rfkill | grep service" and see the wonders of the package.  You then have a choice though.  If there are multiple things that you would like to be unblocked un boot, you can enable services for each one of them (the service is called rfkill-unblock@.service), or you can do a single service specifying "all". 

The other option is to set the rfkill module to load trying various parameters.  There are two options for the rfkill module, and I have never used them, but they appear to aply to what you are asking here.  Do "modinfo rfkill" and look at the bottom of the ouput for the parm lines.

Thanks WonderWoofy, I am not aware of such options. I just did:

# systemctl enable rfkill-unblock@all.service

Just after restarted, my wifi interface brought up automatically. This is a lifesaver smile
I'll mark as solved.

Last edited by cikguaiyad (2013-06-14 02:35:09)

Offline

#4 2013-06-14 02:28:20

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Issue with wireless adapter, RFKILL.

I hope that there is an extra period typo in that command you posted there...

Offline

#5 2013-06-14 02:35:31

cikguaiyad
Member
Registered: 2013-06-04
Posts: 5

Re: [SOLVED] Issue with wireless adapter, RFKILL.

WonderWoofy wrote:

I hope that there is an extra period typo in that command you posted there...

Ouch, my bad. Sorry.

Offline

#6 2013-06-14 02:36:59

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Issue with wireless adapter, RFKILL.

Just making sure you aren't going to potentially run into problems down the road as a result of the smallest character you could have possilby slipped into that command.

Offline

Board footer

Powered by FluxBB