Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The built-in wifi card in my laptop (Dell XPS M1330) is crap, pretty much. I have an Asus USB wifi card which is significantly better, and it works fine. What I'd like to do is disable the built-in wifi card. Is there a way to do this (without having to boot into BIOS each time I want to disable/enable the built-in wireless)?

@mikewhatever: Here are those outputs

matt@sbod:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0b05:179d ASUSTek Computer, Inc. 
Bus 002 Device 004: ID 05a9:2640 OmniVision Technologies, Inc. OV2640 Webcam
Bus 007 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
matt@sbod:~$ lspci -nnk | grep -iA2 net
09:00.0 Ethernet controller [0200]: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express [14e4:1713] (rev 02)
    Subsystem: Dell XPS M1330 [1028:0209]
    Kernel driver in use: tg3
--
0c:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)
    Subsystem: Dell Wireless 1395 WLAN Mini-Card [1028:000b]
    Kernel driver in use: wl
share|improve this question
    
Doesn't your laptop have a button to switch wireless on and off? –  LnxSlck Jul 25 '12 at 16:47
    
Of cause, just blacklist the module. In case you need help with that, post some more info. We'll need the outputs of lsusb and lspci -nnk | grep -iA2 net. –  mikewhatever Jul 25 '12 at 16:49
1  
@LnxSlck: Yes, but it disables all wireless capability including the USB wifi card. –  Matt Jul 25 '12 at 16:59
    
@mikewhatever: I'm new to Linux. Blacklisting a module is something I would need help with, haha. Here is the outputs you requested, thanks! –  Matt Jul 25 '12 at 17:01
add comment

4 Answers 4

Add the following line to /etc/network/interfaces:

iface wlan0 inet manual

NetworManager don't manage interfaces configured in the interfaces file. Replace wlan0 with the interface you want to disable, if it's not the name of the built-in interface.

Then restart network manager

sudo service network-manager restart

share|improve this answer
    
It won't let me save because it's read-only? –  Matt Jul 25 '12 at 17:29
2  
@Matt Edit with sudo nano /etc/network/interfaces, add the line, save and exit (Ctrl+O, ENTER, Ctrl+X). –  Eric Carvalho Jul 25 '12 at 18:05
add comment

To blacklist the module of your wireless card:

  1. sudo vi /etc/modprobe.d/blacklist.conf (or create a custom one)
  2. Comment the module name with a # in the beginning of the line:

    #blacklist eth1394
    
  3. Save, run sudo update-initramfs -u and reboot

To remove a module manually without rebooting:

sudo modprobe -r eth1394

Looses effect after reboot.

To load the module:

sudo modprobe eth1394

To see modules loaded:

sudo lsmod
share|improve this answer
1  
Thanks, this was helpful! :) –  Matt Jul 25 '12 at 17:30
add comment

I think the most easy way to do this is with ifconfig.

run

ifconfig

then look at which adapter you want to turn off, in my case wlan1 is my internal wifi and wlan2 is my usb wifi. Then run

sudo ifconfig wlan1 down

and it will turn of (type ifconfig to check, note that in the network manager the adapter still shows, but it is turned of). To turn it on again:

sudo ifconfig wlan1 up

and that's it.

share|improve this answer
add comment

The built in wifi is Broacom's BCM4312, which uses the proprietary STA driver. So, no need to blacklist anything in your particular case, just deactivate the driver, using the Additional Drivers utility.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.