You are not logged in.

#1 2024-11-09 13:35:09

hikmateustad
Member
Registered: 2022-01-23
Posts: 67

[Solved] Permanently disable inbuilt wireless adapter

I just want to use external TP-Link USB wireless adapter which is working fine.

Each time I login both are enabled and I have disable the internal interface to work with external one (sudo ip link set wlan0 down)

[hikmateustad@archlinux ~]$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 28:92:4a:5a:c5:ac brd ff:ff:ff:ff:ff:ff
    altname enp2s0
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether a4:17:31:64:45:a1 brd ff:ff:ff:ff:ff:ff
4: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 5c:62:8b:d7:5c:1a brd ff:ff:ff:ff:ff:ff
[hikmateustad@archlinux ~]$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 28:92:4a:5a:c5:ac brd ff:ff:ff:ff:ff:ff
    altname enp2s0
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
    link/ether 0a:4d:eb:fa:c8:0c brd ff:ff:ff:ff:ff:ff permaddr a4:17:31:64:45:a1
[hikmateustad@archlinux ~]$ sudo ip link set wlan0 down
[hikmateustad@archlinux ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 003: ID 2357:0138 TP-Link 802.11ac NIC
[hikmateustad@archlinux ~]$ lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
01:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 05)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
[hikmateustad@archlinux ~]$ 

I disabled the kdewallet service permanently, since then on each login I get a prompt to enter wifi password. Is a way to store it permanently?

Thank you in advance for your time.

Last edited by hikmateustad (2024-11-09 15:40:21)

Offline

#2 2024-11-09 13:56:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,162

Re: [Solved] Permanently disable inbuilt wireless adapter

First thoughts are to either softblock it with rfkill (rfkill-block@.service), or to blacklist the module for it.

Offline

#3 2024-11-09 15:06:40

hikmateustad
Member
Registered: 2022-01-23
Posts: 67

Re: [Solved] Permanently disable inbuilt wireless adapter

Scimmia wrote:

First thoughts are to either softblock it with rfkill (rfkill-block@.service), or to blacklist the module for it.

You got me thinking and search and finally https://bbs.archlinux.org/viewtopic.php?id=220177 solved it.

Thanks

Offline

Board footer

Powered by FluxBB