Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why does rfkill block all on boot? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rasmus
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2002
Posts: 78

PostPosted: Sat Nov 09, 2013 1:27 pm    Post subject: Why does rfkill block all on boot? [SOLVED] Reply with quote

After upgrading to 3.10 on my laptop, wifi and bluetooth stopped working. It turned out to be rfkill that blocked them. After inserting a 3G modem in the computer so I could emerge the rfkill tool I could at least unblock them. I tried booting on a 3.8 kernel (I never upgraded to 3.9.*) and then nothing was blocked. Back on 3.10, the computer always boots with all rf killed. Since I run a bunch of services that depend on net, this is very annoying.

Is there a way of turning off this annoying behaviour without leaving rfkill out when building the kernel, or should I simply out an "rfkill unblock all" somewhere in the boot scripts?

The card is an Intel 3945.

Thank you.


Last edited by rasmus on Sun Dec 08, 2013 8:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
rasmus
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2002
Posts: 78

PostPosted: Sun Dec 08, 2013 8:08 pm    Post subject: Reply with quote

OK, replying to my own message, I tried a few things today.

This didn't work: I created the file /etc/modprobe.d/rfkill.conf, looking like this:
Code:
options rfkill default_state=1
options rfkill master_switch_mode=2

This worked, but was too ugly for my taste: I created more /etc/local.d/rfkill.start, which just contained
Code:
rfkill unblock all

Writing the udev rule file /etc/udev/rules.d/10-rfkill.rules seems to have done the trick.
Code:
KERNEL=="rfkill?", SUBSYSTEM=="rfkill", ATTR{type}=="wlan", ATTR{state}="1"
KERNEL=="rfkill?", SUBSYSTEM=="rfkill", ATTR{type}=="bluetooth", ATTR{state}="1"

Unfortunately I can't softblock rfkill anymore with this rule in place, but hardblocking works so I'm not terribly bothered.
Back to top
View user's profile Send private message
RandomF0x
n00b
n00b


Joined: 11 Jul 2024
Posts: 1

PostPosted: Thu Jul 11, 2024 7:01 pm    Post subject: Reply with quote

3,867 days later and probably across the world, but I just found your answer helpful - I made this account just to say that. Thanks you for providing answer.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum