You are not logged in.
How can I temporarily disable wifi when I'm not using it to save battery?
Thank you in advance!
Offline
rfkill
Offline
or ... just don't put the interface up.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
rfkill
I get this:
[x@r4 ~]$ rfkill list wifi
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
[x@r4 ~]$ rfkill block phy0
[b]Bogus block argument 'phy0'[/b].
What does it mean?
or ... just don't put the interface up.
What do you mean? I don't have a hardware switch for it, if that's what you are referring to.
Last edited by persio809 (2016-06-03 02:57:36)
Offline
jasonwryan wrote:rfkill
I get this:
[x@r4 ~]$ rfkill list wifi 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no [x@r4 ~]$ rfkill block phy0 [b]Bogus block argument 'phy0'[/b].
What does it mean?
you get only phy0 in rfkill list?? Do you have working wifi in first place??
Arch is home!
https://github.com/Docbroke
Offline
you get only phy0 in rfkill list?? Do you have working wifi in first place??
Yes, that's the only thing I get, and yes, it's working.
[persio@r4 ~]$ rfkill list wifi
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
Offline
Trilby wrote:or ... just don't put the interface up.
What do you mean? I don't have a hardware switch for it, if that's what you are referring to.
Nearly all of the power usage of the wifi radio is in transmission. If you're not connected then you're not transmitting. Yes, it would still use some power but very little. You probably wouldn't notice a difference between it being not connected and it being totally off.
If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr
Offline
I get this:
[x@r4 ~]$ rfkill list wifi 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no [x@r4 ~]$ rfkill block phy0 [b]Bogus block argument 'phy0'[/b].
Use the index, not the name:
[x@r4 ~]$ rfkill block 1
and see what happens.
Last edited by dif (2016-06-03 07:10:17)
Offline
that worked! thank you @dif
Offline
I mean what I said. Don't put the interface up. When you turn your computer on in archlinux, all the network interfaces are down by default. You must use the command `ip link set <interface> up` (e.g. `ip link set wlp3s0 up`) as the first step of getting a connection.
You may have also installed some network management tool that does this for you. Just disable/stop that tool. Rfkill is a massive overkill for this. As an analogy, if you want to preserve the battery on your cell phone, just turn it off - there is no need to lock it in a Farraday cage to prevent it from getting any signals when it is off.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline