Skip to content

How to completely turn off wireless adapters? [Help]

When I execute

rfkill block all

or turn my Wifi adapter off in the cinnamon network panel, the light on the front of my laptop still stays on. In windows I could "Disable" the network adapter and the light would go out. I assume this is a shortfall of the linux driver.

I don't know how to list which driver I have installed / running.

Thanks

2 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
2pgs61

Author

9
posts
50
comments
20
media
View profile

6 comments

I assume this is a shortfall of the linux driver.

Maybe it's not a shortfall at all - what if your desire for the light to go off is an overfall? (lol)

Your wireless adapter can be completely turned off regardless of whether or not the light is on. So you already know how to completely turn it off.

The light is probably controlled by an ACPI event or something - if it is, it's completely separate from any wireless functionality, so try to find fault elsewhere. Maybe look into controlling the light separately? Or if you want, you could fix and patch the driver yourself, and share it with the world. Whoever wrote it did not have controlling the lights on your exact model of computer at the top of their list of things to do.

2 points

Good idea, I hadn't thought of the possibility that it was acpi event.

2 points

Does running this turn the light off?

# ip link set <interface> down

Where "<interface>" is your wireless interface, on my computer it's "wlp3s0", so the command is:

# ip link set wlp3s0 down

When I want to turn off my wifi, that's typically how I do it. You can bring the interface back up later with:

# ip link set <interface> up
1 points

I found the interface with

ip link

but when I ran your command, the light stayed on. Also note that the network applet in cinnamon continued to show SSIDs and their signal strength even after this command. Meanwhile I could not actually ping anything. Setting the interface back "up" did not fix the problem, but in cinnamon network manager hitting "off" then "on" again reset the network to a working state. Light stayed on.

1 points

Was the network applet updating the SSID and signal strength list? My guess would have been that it was caching the information from before you took the wireless interface offline.

I'm on a macbook air and don't have a network adapter light on it. I'm also using only netctl to manage my wireless connections, so I'm not sure how the network manager might come into play.

The only thing more extreme than taking the interface itself down that I can think of is what /u/leenucks suggests with using rmmod to unload your wireless driver. You'd then need to use modprobe to reload it when you wanted to turn wifi back on.

1 points

lspci -vv | less

search for your wireless card and there is your driver, then use rmmod to unload that one

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.