Comment 26 for bug 1746164

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote : Re: [Bug 1746164] Re: [ath9k] Enable Bluetooth-Wifi coexistence by default (bluetooth audio and network skip on Wifi activity)

> On Feb 2, 2018, at 1:14 PM, PeterPall <email address hidden> wrote:
>
> I had tried all combinations:
>
> - btcoex_enable=0 and bt_ant_diversity=1 does help a little bit with bluetooth. But not much

Do you see "Set BT/WLAN RX diversity capability” in dmesg? Your wireless chip doesn’t support bt_ant_diversity if you don’t see this message.

> - btcoex_enable=1 and bt_ant_diversity=0 does solve the bluetooth problem for me
> - btcoex_enable=1 and bt_ant_diversity=1 Here I have the feeling that it makes changing files and fast-forward/fast-backward smoother in mplayer (btcoex_enable=1 and bt_ant_diversity=0 in rare cases gives "bluetooth device stuck" messages, but working audio).

BT antenna diversity won’t get set when btcoex_enable is 1. So both bt_ant_diversity=[0,1] have the same effect.

> - btcoex_enable=0 and bt_ant_diversity=0: Bluetooth keeps hanging *and* low wifi performance while using bluetooth.
>
> --
> You received this bug notification because you are subscribed to linux
> in Ubuntu.
> https://bugs.launchpad.net/bugs/1746164
>
> Title:
> [ath9k] Enable Bluetooth-Wifi coexistence by default (bluetooth audio
> and network skip on Wifi activity)
>
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> By default BT audio works fine on Ubuntu - if there is no WiFi active:
> Both work on the same frequency range, 2 WiFi channel is about 20
> Bluetooth Channels wide and every time a WiFi package is sent
> bluetooth risks a packet loss.
>
> Creating a file named /etc/modprobe.d/bluetooth-audio.conf with the
> following content:
>
> options ath9k btcoex_enable=1 bt_ant_diversity=1
>
> resolves the problem and drastically increases bluetooth throughput
> for all other use cases (bluetooth networking that doesn't drop every
> time the WiFi probes something, lower latency Bluetooth HIDs.
>
> We should ship things in a way that they work out-of-the-box => I am
> all for providing this file with Ubuntu, possibly with Bluez.
>
> In the case of my laptop btcoex_enable=1 would already do the trick.
>
>
> Technical background:
> - https://wireless.wiki.kernel.org/en/users/drivers/ath9k/btcoex
> - https://wiki.freebsd.org/dev/ath_hal(4)/AntennaDiversity
>
> ProblemType: Bug
> DistroRelease: Ubuntu 18.04
> Package: bluez 5.46-0ubuntu4
> Uname: Linux 4.15.0-041500rc9-lowlatency x86_64
> ApportVersion: 2.20.8-0ubuntu6
> Architecture: amd64
> CurrentDesktop: GNOME
> Date: Tue Jan 30 06:40:12 2018
> EcryptfsInUse: Yes
> InterestingModules: rfcomm bnep btusb bluetooth
> MachineType: Acer Aspire S7-391
> ProcEnviron:
> TERM=xterm-256color
> PATH=(custom, no user)
> XDG_RUNTIME_DIR=<set>
> LANG=de_DE.UTF-8
> SHELL=/bin/bash
> ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-4.15.0-041500rc9-lowlatency root=UUID=6d0fd0ad-9048-4fdb-881a-eba6d6d13c3b ro rootflags=subvol=@ acpi_backlight=vendor init=/lib/systemd/systemd intel_pstate=enable nmi_watchdog=0 quiet splash acpi_backlight=vendor init=/lib/systemd/systemd intel_pstate=enable video=vesafb:ywrap,mtrr=3 nmi_watchdog=0 vt.handoff=1
> SourcePackage: bluez
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 11/16/2012
> dmi.bios.vendor: Insyde Corp.
> dmi.bios.version: V2.09
> dmi.board.asset.tag: No Asset Tag
> dmi.board.name: Storm
> dmi.board.vendor: Acer
> dmi.board.version: V2.09
> dmi.chassis.asset.tag: No Asset Tag
> dmi.chassis.type: 10
> dmi.chassis.vendor: Acer
> dmi.chassis.version: V2.09
> dmi.modalias: dmi:bvnInsydeCorp.:bvrV2.09:bd11/16/2012:svnAcer:pnAspireS7-391:pvrV2.09:rvnAcer:rnStorm:rvrV2.09:cvnAcer:ct10:cvrV2.09:
> dmi.product.family: ChiefRiver System
> dmi.product.name: Aspire S7-391
> dmi.product.version: V2.09
> dmi.sys.vendor: Acer
> hciconfig:
> hci0: Type: Primary Bus: USB
> BD Address: 68:94:23:49:1B:BC ACL MTU: 1022:8 SCO MTU: 183:5
> UP RUNNING PSCAN
> RX bytes:688 acl:0 sco:0 events:49 errors:0
> TX bytes:3167 acl:0 sco:0 commands:49 errors:0
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1746164/+subscriptions