You are not logged in.

#1 2024-09-14 15:17:19

Sheryu
Member
Registered: 2024-09-14
Posts: 2

[SOLVED] Wifi device don't stay down after `ip link set wlan0 down`

Hello,

I have 2 wifi devices on my computer, and I wan't to disable the wifi from the motherboard.

The command `ip link set wlan0 down` is working, but after a few minutes the device is UP again.

I have only the NetworkManager.service being enabled.

Anyone have an idea about this issue ?

Thanks in advance.

Last edited by Sheryu (2024-09-14 16:40:14)

Offline

#2 2024-09-14 15:46:55

Julia
Member
From: Belgium
Registered: 2024-09-14
Posts: 11

Re: [SOLVED] Wifi device don't stay down after `ip link set wlan0 down`

Good day,

You could try putting this in your NetworkManager.conf

[main]
plugins=keyfile

[keyfile]
unmanaged-devices=interface-name:wlan0

if [[ $yourProblem = "fixed" ]] ;then
    sed -i 's/Title/[SOLVED] Title/g' your.thread | please --thank-you
fi

Offline

#3 2024-09-14 16:38:34

Sheryu
Member
Registered: 2024-09-14
Posts: 2

Re: [SOLVED] Wifi device don't stay down after `ip link set wlan0 down`

Thank you Julia, It's working.

After changing the file '/etc/NetworkManager/NetworkManager.conf' like you said, then a `systemctl restart NetworkManager` and `ip link set wlan0 down`.
The interface wlan0 stay down.

Offline

Board footer

Powered by FluxBB