Fedora Linux Support Community & Resources Center
  #1  
Old 7th May 2017, 02:02 AM
quemexordium Offline
Registered User
 
Join Date: Sep 2016
Location: London
Posts: 3
linuxfedorafirefox
How to blacklist my built-in wireless card

Hello everyone. I'm relatively new to Linux. I've been using Fedora since the start (For a couple of months now). I bought a TP LINK TL-WN722N_V2 usb wireless adapter with rtl8188 chipset. My device wasn't recognized in lsusb at first and there were no signs of it working at all. So I followed this tutorial and installed the driver for this chipset:
Code:
sudo dnf install git dkms
cd /usr/src
sudo git clone https://github.com/lwfinger/rtl8188eu.git
sudo dkms add ./rtl8188eu
sudo dkms build 8188eu/1.0
sudo dkms install 8188eu/1.0
sudo modprobe 8188eu
So there were no errors and I've installed it succesfully. Now I can see the lights on my usb adapter but it's still not recognized in lsusb. Here's the output:

Code:
Bus 002 Device 003: ID 8087:07da Intel Corp. 
Bus 002 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 001 Device 004: ID 0c45:644a Microdia 
Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 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 003 Device 003: ID 2357:010c  
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
But now there are two options on my wireless settings: 1-) PCI Wi-Fi 2-)USB Wi-Fi
So I assume it's working properly. My problem is that I can't turn off or blacklist my built-in wireless card without affecting the USB wireless adapter. Whenever I turn off the built-in one, the other one turns off as well and whenever I try to turn on only the USB adapter, my built-in wireless card turns on too.

I'm running Fedora 25 GNOME (4.10.13-200.fc25.x86_64). I need help with disabling/blacklisting my built-in wireless card.

Any help would be highly appreciated. Thanks.

Here are some things that might be helpful:

Output of iwconfig:

Code:
virbr0    no wireless extensions.

lo        no wireless extensions.

virbr0-nic  no wireless extensions.

enp7s0    no wireless extensions.

wlp0s20u1  unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wlp8s0    IEEE 802.11  ESSID:"Tenda_3281B8"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: C8:3A:35:32:81:B8   
          Bit Rate=150 Mb/s   Tx-Power=16 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=64/70  Signal level=-46 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:75   Missed beacon:0
Output of ifconfig:

Code:
enp7s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether e0:db:55:d0:13:7b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 312  bytes 27448 (26.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 312  bytes 27448 (26.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:a9:28:84  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp8s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.16  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::e07e:732a:4782:8927  prefixlen 64  scopeid 0x20<link>
        ether 84:a6:c8:e2:3f:c4  txqueuelen 1000  (Ethernet)
        RX packets 5911  bytes 4990207 (4.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5701  bytes 771563 (753.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Output of lspci:
Code:
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (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: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 HM77 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 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] (rev ff)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05)
08:00.0 Network controller: Intel Corporation Centrino Wireless-N 2230 (rev c4)
Update:

I managed to blacklist my built-in wireless card with creating "blacklist.conf" in /etc/modprobe.d/ and adding the line: "blacklist iwlwifi". But when I rebooted my machine, my usb wireless adapter didn't work either. There were no lights on it etc. And I didn't see USB Wi-Fi option in my wireless settings. I think they're somehow interconnected. When both my built-in and usb wireless adapter is turned on, my usb wireless adapter doesn't find any networks. It says "No Networks" which is a bit odd because although my built-in wireless is connected, my usb wireless adapter should be able to scan networks as well.

Last edited by quemexordium; 7th May 2017 at 01:33 PM.
Reply With Quote
  #2  
Old 8th May 2017, 10:09 PM
SteveGYBE Offline
Registered User
 
Join Date: Jun 2007
Location: Lytham St Annes, Lancashire, UK
Posts: 675
linuxfedorafirefox
Re: How to blacklist my built-in wireless card

Can you disable the PCI wireless card in the computer BIOS? If you can do that, Linux should not even see the hardware so will not load any drivers for it.
Reply With Quote
  #3  
Old 9th May 2017, 03:37 AM
gordon64
Guest
 
Posts: n/a
linuxfirefox
Re: How to blacklist my built-in wireless card

if Steve's suggestion does not work try this next

remove your blacklist conf file

use root powers to move all intel firmware files out there current location to somewhere safe,
and back them up to usb to be safer

I have removed all such firmware but as you probably will find they are in /lb/firmware try

Code:
locate iwlwifi-100-5.ucode
then use root powers to move them all out with something like

Code:
sudo su
mkdir /root/fw
mv /pathway2/iwlwifi* /root/fw/
now full reboot.....assuming your device uses firmware, the wifi module won't load properly but the wireless software might now work for your usb
Reply With Quote
  #4  
Old 9th May 2017, 05:09 PM
quemexordium Offline
Registered User
 
Join Date: Sep 2016
Location: London
Posts: 3
linuxfedorafirefox
Re: How to blacklist my built-in wireless card

Quote:
Originally Posted by SteveGYBE View Post
Can you disable the PCI wireless card in the computer BIOS? If you can do that, Linux should not even see the hardware so will not load any drivers for it.
Thanks for your reply. There's no such option in my BIOS settings. Here are the options:

Intel(R)SpeedStep - Enabled
Virtualization Enabled
Integrated NIC Enabled
USB Emulation Enabled
USB Powershare Enabled
USB Wake Support Disabled
SATA Operation AHCI
Adapter Warnings Disabled
Function Key Behaviour Function Key
Intel Rapid-Start Technology
Miscellaneous Devices

So I assumed it was "Integrated NIC" and I disabled it, saved and booted the machine. But apparently it wasn't Integrated NIC because my built-in wireless was still up and connected.

I also want to mention that, there are two options in my wi-fi settings but when I click on USB wi-fi option, it doesn't find any networks which is odd. Although my built-in wireless card is connected, my usb wi-fi should be able to scan networks but it doesn't.

I don't think that my usb device is working properly due to software issues. I should've posted my dmesg and journalctl -fa outputs as well but I forgot. So here they are:

When I unplug my usb wireless adapter, run journalctl -fa as root and plug it in back, these lines show up:
Code:
May 07 04:54:10 localhost.localdomain kernel: usb 3-1: new high-speed USB device number 4 using xhci_hcd
May 07 04:54:10 localhost.localdomain kernel: usb 3-1: New USB device found, idVendor=2357, idProduct=010c
May 07 04:54:10 localhost.localdomain kernel: usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 07 04:54:10 localhost.localdomain kernel: usb 3-1: Product: 802.11n NIC
May 07 04:54:10 localhost.localdomain kernel: usb 3-1: Manufacturer: Realtek
May 07 04:54:10 localhost.localdomain kernel: usb 3-1: SerialNumber: 00E04C0001
May 07 04:54:10 localhost.localdomain kernel: Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
May 07 04:54:10 localhost.localdomain kernel: EEPROM ID = 0x8129
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.3240] (wlan0): driver supports SSID scans (scan_capa 0x3F).
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.3244] (wlan0): using WEXT for WiFi device control
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.3265] manager: (wlan0): new 802.11 WiFi device (/org/freedesktop/NetworkManager/Devices/7)
May 07 04:54:10 localhost.localdomain mtp-probe[4212]: checking bus 3, device 4: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1"
May 07 04:54:10 localhost.localdomain mtp-probe[4212]: bus: 3, device: 4 was not an MTP device
May 07 04:54:10 localhost.localdomain kernel: r8188eu 3-1:1.0 wlp0s20u1: renamed from wlan0
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.3638] device (wlan0): interface index 8 renamed iface from 'wlan0' to 'wlp0s20u1'
May 07 04:54:10 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.3688] device (wlp0s20u1): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
May 07 04:54:10 localhost.localdomain kernel: MAC Address = 18:d6:c7:1b:be:23
May 07 04:54:10 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.7053] (wlp0s20u1): driver supports SSID scans (scan_capa 0x3F).
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.7053] (wlp0s20u1): using WEXT for WiFi device control
May 07 04:54:10 localhost.localdomain kernel: R8188EU: INFO indicate disassoc
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <warn>  [1494122050.8131] device (wlp0s20u1): set-hw-addr: new MAC address 9E:CE:08:1D:82:7D not successfully set (scanning)
May 07 04:54:10 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
May 07 04:54:10 localhost.localdomain wpa_supplicant[1257]: nl80211: Could not configure driver mode
May 07 04:54:10 localhost.localdomain wpa_supplicant[1257]: nl80211: deinit ifname=wlp0s20u1 disabled_11b_rates=0
May 07 04:54:10 localhost.localdomain wpa_supplicant[1257]: rfkill: Cannot get wiphy information
May 07 04:54:10 localhost.localdomain wpa_supplicant[1257]: ioctl[SIOCSIWAP]: Operation not permitted
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.8372] sup-iface[0x556ca8ed9ec0,wlp0s20u1]: supports 1 scan SSIDs
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.8403] device (wlp0s20u1): supplicant interface state: starting -> ready
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.8404] device (wlp0s20u1): state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
May 07 04:54:10 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
May 07 04:54:10 localhost.localdomain kernel: R8188EU: INFO indicate disassoc
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <warn>  [1494122050.9471] device (wlp0s20u1): set-hw-addr: new MAC address 9E:CE:08:1D:82:7D not successfully set (scanning)
May 07 04:54:10 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.9498] device (wlp0s20u1): supplicant interface state: ready -> disabled
May 07 04:54:10 localhost.localdomain NetworkManager[1052]: <info>  [1494122050.9756] device (wlp0s20u1): supplicant interface state: disabled -> inactive
May 07 04:54:12 localhost.localdomain kernel: R8188EU: INFO indicate disassoc
May 07 04:54:12 localhost.localdomain kernel: R8188EU: INFO indicate disassoc
May 07 04:54:12 localhost.localdomain NetworkManager[1052]: <warn>  [1494122052.2043] device (wlp0s20u1): set-hw-addr: new MAC address 9E:CE:08:1D:82:7D not successfully set (scanning)
May 07 04:54:12 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
May 07 04:54:12 localhost.localdomain NetworkManager[1052]: <info>  [1494122052.2075] device (wlp0s20u1): supplicant interface state: inactive -> disabled
May 07 04:54:12 localhost.localdomain NetworkManager[1052]: <info>  [1494122052.2249] device (wlp0s20u1): supplicant interface state: disabled -> inactive
May 07 04:54:12 localhost.localdomain kernel: R8188EU: INFO indicate disassoc
May 07 04:54:12 localhost.localdomain NetworkManager[1052]: <warn>  [1494122052.3324] device (wlp0s20u1): set-hw-addr: new MAC address 9E:CE:08:1D:82:7D not successfully set (scanning)
May 07 04:54:12 localhost.localdomain kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
May 07 04:54:12 localhost.localdomain NetworkManager[1052]: <info>  [1494122052.3351] device (wlp0s20u1): supplicant interface state: inactive -> disabled
May 07 04:54:12 localhost.localdomain NetworkManager[1052]: <info>  [1494122052.3543] device (wlp0s20u1): supplicant interface state: disabled -> inactive
Code:
//... hundreds of same lines above
[ 1890.348349] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1891.623549] R8188EU: INFO indicate disassoc
[ 1891.728457] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1891.753795] R8188EU: INFO indicate disassoc
[ 1891.858506] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1893.137503] R8188EU: INFO indicate disassoc
[ 1893.242992] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1893.273466] R8188EU: INFO indicate disassoc
[ 1893.376789] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1894.654152] R8188EU: INFO indicate disassoc
[ 1894.759570] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1894.787922] R8188EU: INFO indicate disassoc
[ 1894.812512] usb 3-1: USB disconnect, device number 3
[ 1949.002421] usb 3-1: new high-speed USB device number 4 using xhci_hcd
[ 1949.170802] usb 3-1: New USB device found, idVendor=2357, idProduct=010c
[ 1949.170807] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1949.170809] usb 3-1: Product: 802.11n NIC
[ 1949.170812] usb 3-1: Manufacturer: Realtek
[ 1949.170813] usb 3-1: SerialNumber: 00E04C0001
[ 1949.171789] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[ 1949.193507] EEPROM ID = 0x8129
[ 1949.219123] r8188eu 3-1:1.0 wlp0s20u1: renamed from wlan0
[ 1949.240834] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1949.574442] MAC Address = 18:d6:c7:1b:be:23
[ 1949.576013] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1949.581444] R8188EU: INFO indicate disassoc
[ 1949.684472] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1949.712045] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1949.714881] R8188EU: INFO indicate disassoc
[ 1949.818540] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1950.944075] R8188EU: INFO indicate disassoc
[ 1950.970141] R8188EU: INFO indicate disassoc
[ 1951.075724] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1951.100357] R8188EU: INFO indicate disassoc
[ 1951.203776] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[ 1952.476101] R8188EU: INFO indicate disassoc
//hundreds of same lines below...
Reply With Quote
  #5  
Old 9th May 2017, 05:28 PM
quemexordium Offline
Registered User
 
Join Date: Sep 2016
Location: London
Posts: 3
linuxfedorafirefox
Re: How to blacklist my built-in wireless card

Quote:
Originally Posted by gordon64 View Post
if Steve's suggestion does not work try this next

remove your blacklist conf file

use root powers to move all intel firmware files out there current location to somewhere safe,
and back them up to usb to be safer

I have removed all such firmware but as you probably will find they are in /lb/firmware try

Code:
locate iwlwifi-100-5.ucode
then use root powers to move them all out with something like

Code:
sudo su
mkdir /root/fw
mv /pathway2/iwlwifi* /root/fw/
now full reboot.....assuming your device uses firmware, the wifi module won't load properly but the wireless software might now work for your usb
I did as you said. Rebooted. My built-in wireless card didn't work as expected but my usb wireless adapter didn't work either. I don't know how but they're somehow interconnected or something. When my built-in wireless card is working and connected, I see the lights on my usb wireless adapter (although it doesn't connect to any network nor scans networks) but when I disable my built-in wireless adapter, my usb wireless adapter dies too which is really odd.

UPDATE:

I talked with the person who created the driver files for that device on github and that's what he said:

"Your user-space system (NetworkManager, etc.) is not recognizing the USB device. That is a problem with that driver that I do not know how to fix.

Your solution will be to go to a new kernel (4.10) and use the rtl8xxxu in it.
"

Last edited by quemexordium; 10th May 2017 at 10:23 PM.
Reply With Quote
Reply

Tags
blacklist, builtin, card, wireless

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blacklist/deactivate 1 graphics card.... KKJensen Hardware & Laptops 6 11th July 2011 09:41 PM
blacklist tv-card fc14 hobert Hardware & Laptops 6 6th June 2011 01:26 PM
Built in Wireless card Question... SeRi@lDiE Hardware & Laptops 8 1st July 2006 04:25 AM
Built-in wireless or seperate wi-fi card.... Zigzagcom Hardware & Laptops 4 6th September 2005 09:06 AM


Current GMT-time: 14:15 (Thursday, 29-06-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat