18

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
Pilot6
  • 90,100
  • 91
  • 213
  • 324
Andrea Borga
  • 1,050
  • Please [edit] your question and add output of lspci -knn | grep Net -A2; lsusb terminal command. – Pilot6 Jul 06 '15 at 09:08
  • Pilot6 I played further with it this morning, and seems that I managed to get something working more stably when installing blueman for xfce. In fact with the new installation I'm also evaluating the possibility to migrate desktop manager. But this is another story. The overall behaviour of bluetooth is still a bit obscure, and far from being reproducible, but I made a step forward. – Andrea Borga Jul 06 '15 at 11:55

4 Answers4

22

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

Deltik
  • 327
Pilot6
  • 90,100
  • 91
  • 213
  • 324
8

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.

Pilot6
  • 90,100
  • 91
  • 213
  • 324
0

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)

0

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.

Greenonline
  • 2,081