wi-fi and bluetooth not working simultaneously

I have recently upgraded to Ubuntu 14.04 LTS 64-bit. I had this configuration working for three years with Ubuntu 12.04 LTS. I went for a fresh installation (not distro upgrade), the only thing I kept are the home folders (/home mountpoint) of my users. Scenario:

  1. I can access my wi-fi network
  2. I can stream music via bluetooth with A2DP

If I try to do both at the same time now, e.g stream audio from deezer, the internet connection stops. I can’t even ping google.com; so I think this is not a browser related issue. If I switch-off the bluetooth everything gets back to normal. I’ve got no clue on where to start debugging my problem.

Here the output of lspci -knn | grep Net -A2; lsusb

03:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] [8086:008a] (rev 34) Subsystem: Intel Corporation Centrino Wireless-N 1030 BGN [8086:5305] Kernel driver in use: iwlwifi
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 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 001 Device 004: ID 1bcf:2883 Sunplus Innovation Technology Inc. 
Bus 001 Device 003: ID 8086:0189 Intel Corp.  
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

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

You can fix it by turning off bluetooth and wireless coexistence.

Run in terminal

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi bt_coex_active=N"

and reboot.

It looks like kernel developers have overdone that functionality slightly 😉

This setting can be always undone by

sudo rm /etc/modprobe.d/iwlwifi-opt.conf

You can read this to understand what it does

Solution 2

Run the following command:

echo "options iwlwifi 11n_disable=1 bt_coex_active=0 power_save=0 auto_agg=0 swcrypto=1" | sudo tee /etc/modprobe.d/iwlwifi-options.conf > /dev/null

It worked for my ubuntu 16.04 like a charm.

Solution 3

This effects Ubuntu 16.04 with ‘Intel(R) Dual Band Wireless AC 7260, REV=0x144’, and Bluetooth Coexist functionality but differently: /etc/modprobe.d/iwlwifi.conf.

The Intel 7260 in 802.11AC Mode does not understand the the auto _agg=0 argument which turns on Link Aggregation found in the “/etc/modprobe.d/iwlwifi.conf” file. This will cause your Wireless to stop working. Remove it, and change the command from:

echo "options iwlwifi 11n_disable=1bt_coex_active=0power_save=0auto_agg=0swcrypto=1" | sudo tee /etc/modprobe.d/iwlwifi.conf > /dev/null

to:

echo "options iwlwifi 11n_disable=111n_disable=8bt_coex_active=1power_save=0 swcrypto=1" | sudo tee /etc/modprobe.d/iwlwifi.conf > /dev/null

  • The focus of the Intel 7260 problem is that some BT speakers may be
    detected by the systems Bluetooth Manager, but unable to be used as
    an audio output result of the 802.11N – 13 channel Wifi band conflict
    with the 79 BT channels in the 2.4Ghz range (See link 1). Changing
    the 11n_disable=1 option removes Wireless 802.11N functionality so
    there is no more conflict with the unused Band. BT Loudspeakers are
    able to be detected, and connected, but not selected for audio output
    in the Sound Settings Control Panel (Pulse Audio).

  • The 11n_disable=8 option replaces the auto_agg=0 option and enables Link Aggregation needed for the Wireless AC 7260 to operate. Without it the Intel Wireless 7260 will not connect!

  • The option bt_coex_active=0 can enable the Bluetooth to operate
    without WLAN disconnect issues when enabling and disabling the Bluetooth “hci0” by allowing the BT device to become independent but both now *unmanaged (See link 2). In your case the disconnect or interruption of wireless service may happen when this option is set to bt_coex_active=1 because the BT blocks the Wireless because the BT thinks itself is always broadcasting. Ie. The WLAN half of the Multi-card NIC broadcasts and the BT Half thinks it is responsible for the transmission. Thus is not able to tell the difference and never shuts off while the Wireless is transmitting therefore causing interference, lagginess, etc from the conflict. However this option may remain set to bt_coex_active=1 as it isn’t effected on the Intel 7260 Wireless Adapter. The following link provides visual aid to help explain why to set this option to enable if you can:

Note:

These setting used together will allow connected Bluetooth Loudspeakers to be used as an output device once selected in Sound Settings when otherwise connected without audio. Speakers such as the JBL Flip 4 can now output sound once these changes are made and a reboot has been completed. You may need to choose the “Audio Sink” Profile in the addon “Blueman Applet” but isn’t needed after that)

Solution 4

This should work

sudo modprobe -r rtl8723be
sudo modprobe rtl8723be ant_sel=2
echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/rtl8723-ant-sel.confecho

If this doesn’t work, replace ant_sel=2 with ant_sel=1.

I hope this was even at all helpful.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply