You are not logged in.

#1 2016-03-05 11:55:02

marmistrz
Member
Registered: 2016-01-05
Posts: 110

[solved] Wireless blocked by RF-kill even though it's not installed

I've installed Arch Linux recently, came back home where I have only wireless connection.
To my surprise, the wireless doesn't work for me. I tried diagnosing the cause with ip link `set wlp3s0 up` but what I get is

Operation not possible due to RF-kill

To my further surprise, rfkill is not installed at all.

What the heck is going on? Why does rfkill block something when it's not installed at all? A bug or a feature?
I have Internet access only on my Linux Mint install. My Arch is completely offline, since I have no ethernet access at home.

Last edited by marmistrz (2016-03-11 10:40:19)

Offline

#2 2016-03-05 12:11:19

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [solved] Wireless blocked by RF-kill even though it's not installed

Offline

#3 2016-03-05 12:46:54

marmistrz
Member
Registered: 2016-01-05
Posts: 110

Re: [solved] Wireless blocked by RF-kill even though it's not installed

Rather a soft kill, since the flight mode button on my laptop does nothing. And the internet works on a parallel Mint install.
Why does it happen only under Arch?

Offline

#4 2016-03-05 12:56:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [solved] Wireless blocked by RF-kill even though it's not installed

marmistrz wrote:

Why does rfkill block something when it's not installed at all?

rfkill is a kernel module.  The package rfkill which provides the binary rfkill is just a userspace tool to interact with the kernel module.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2016-03-05 15:15:34

marmistrz
Member
Registered: 2016-01-05
Posts: 110

Re: [solved] Wireless blocked by RF-kill even though it's not installed

First of all: why does the kernel block WiFi only in Arch?
Second: So how can I install rfkill if my Arch installation is completely offline (I'm writing from my Mint installation)
It's why wiki is of little use to me.

What's interesting, there's nothing /var/lib/NetworkManager, and some post (can't find it right now) said it was enough to edit NetworkManager.state here.
Moreover, the Network Manager applet from the Cinnamon desktop doesn't even ask me for the password, similar to this one. https://bbs.archlinux.org/viewtopic.php?id=185742
The question remains: how to install anything without a working Internet connection on Arch.

Last edited by marmistrz (2016-03-05 15:20:37)

Offline

#6 2016-03-05 15:49:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [solved] Wireless blocked by RF-kill even though it's not installed

marmistrz wrote:

First of all: why does the kernel block WiFi only in Arch?

It's hard to speculate on an isolated incident.  But there are two likely possibilities: as described in the wiki, most hardware swtiches toggle both the hardblock and the softblock.  But of course only the running OS can register the softblock.  So if you toggled the switch to off while in arch, the hard and softblock would be engaged: the latter might be saved for the next reboot of the same system until disengaged.

It is a frustrating but real quirk of rfkill on a wide variety of hardware that a hardware switch will toggle both the hard and soft block to be on, but when toggled back will only remove the hard block.

The second likely possibility is that - as described in that wiki link - there are different kernel configurations for rfkill that one can use.  As arch and Mint use different kernels and different configurations, it is not surprising that the rfkill module behaves differently.

marmistrz wrote:

The question remains: how to install anything without a working Internet connection on Arch.

Either find an ethernet cable and temporarily plug in to install rfkill, or chroot into your arch system from the working Mint system (or live media as necessary) and install rfkill, or get the rfkill package on a flash drive and transfer it to your arch system and install with `pacman -U`.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2016-03-05 15:53:07

marmistrz
Member
Registered: 2016-01-05
Posts: 110

Re: [solved] Wireless blocked by RF-kill even though it's not installed

Either find an ethernet cable and temporarily plug in to install rfkill, or chroot into your arch system from the working Mint system (or live media as necessary) and install rfkill, or get the rfkill package on a flash drive and transfer it to your arch system and install with `pacman -U`.

Ethernet is completely broken in my router wink

There's a problem: I mounted the Arch rootfs at `/media/marcin/arch`. Then

# chroot /media/marcin/arch
# pacman -S rfkill
(...)
error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Interestingly, /etc/mtab is a symlink to

../proc/self/mounts

Offline

#8 2016-03-05 15:54:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [solved] Wireless blocked by RF-kill even though it's not installed

The arch-chroot script does a lot behind the scenes for you - so if you are chrooting from a non-arch system, you'll need to do that prep yourself.  Please see here:
https://wiki.archlinux.org/index.php/Change_root


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2016-03-05 16:14:13

marmistrz
Member
Registered: 2016-01-05
Posts: 110

Re: [solved] Wireless blocked by RF-kill even though it's not installed

Ok, thanks.

I installed gnome-keyring as found somewhere else and this was the fix. This should be better documented.

Offline

#10 2016-03-05 16:31:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [solved] Wireless blocked by RF-kill even though it's not installed

marmistrz wrote:

I installed gnome-keyring as found somewhere else and this was the fix. This should be better documented.

Where did you find this?  Where should this be documented?  By who should it be documented?

If you want it in the wiki, put it in the wiki.  If you aren't willing to share what you learned (even by posting the link to what you found here) why would you expect anyone else to share this information?

Life is a two-way street.

It doesn't make any sense to me that gnome-keyring would have anything to do with rfkill.  And I'd be surprised if this wasn't a coincidence (is gnome keyring all you installed?  You got connected to the internet to install new packages and didn't install rfkill?)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2016-03-05 16:38:33

marmistrz
Member
Registered: 2016-01-05
Posts: 110

Re: [solved] Wireless blocked by RF-kill even though it's not installed

Here: https://bbs.archlinux.org/viewtopic.php?id=185742

Sure, I'll put it into wiki. The question is: where. In the network configuration section? It'd seem intuitive, as it was my first try. In the Cinnamon page? Another good idea, since it pertains specifically Cinnamon.

I didn't touch anything but gnome-keyring. In particular, I didn't touch rfkill at all. Absolutely no idea why this helped.

Offline

#12 2016-03-05 17:21:19

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [solved] Wireless blocked by RF-kill even though it's not installed

Networkmanager probably saves network password with help of gnome-keyring, but it has nothing to do with soft-block or rfkill issue. It is there in wiki https://wiki.archlinux.org/index.php/Ne … ager#GNOME

Offline

#13 2016-03-05 18:10:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [solved] Wireless blocked by RF-kill even though it's not installed

That other thread has nothing to due with rfkill.  So I believe I was right to suspect this was a coincidence.  Gnome-keyring is not a solution to an "Operation not possible due to rfkill" error.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#14 2016-03-08 17:10:26

marmistrz
Member
Registered: 2016-01-05
Posts: 110

Re: [solved] Wireless blocked by RF-kill even though it's not installed

So I'll surprise you: the RFkill problem disappeared when I tried the command again with gnome-keyring installed. Maybe the network applet did some blocking on its own?

Offline

Board footer

Powered by FluxBB