Bluetooth crashes since updated to kernel 4.13.2

bluetooth
kde
kernel

#1

I run Manjaro KDE on the following notebook, which has an Intel 8260 wifi/bluetooth chipset:

[cribari@darwin5 ~]$ inxi -Fxzc0
System: Host: darwin5 Kernel: 4.9.51-1-MANJARO x86_64 bits: 64 gcc: 7.2.0
Desktop: KDE Plasma 5.10.5 (Qt 5.9.1) Distro: Manjaro Linux
Machine: Device: laptop System: SAMSUNG product: 900X3L v: P05AFN serial: N/A
Mobo: SAMSUNG model: NP900X3L-KW1BR v: SGL8776A06-C01-G001-S0001+10.0.10586 serial: N/A
UEFI [Legacy]: American Megatrends v: P05AFN.035.160331.PS date: 03/31/2016
Battery BAT1: charge: 29.6 Wh 100.0% condition: 29.6/30.0 Wh (99%) model: SAMSUNG SR Real status: Full
CPU: Dual core Intel Core i7-6500U (-HT-MCP-) arch: Skylake rev.3 cache: 4096 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10372
clock speeds: max: 3100 MHz 1: 928 MHz 2: 685 MHz 3: 682 MHz 4: 499 MHz
Graphics: Card: Intel HD Graphics 520 bus-ID: 00:02.0
Display Server: x11 (X.Org 1.19.3 ) driver: modesetting Resolution: 1920x1080@60.00hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
version: 4.5 Mesa 17.2.1 Direct Render: Yes
Audio: Card Intel Sunrise Point-LP HD Audio driver: snd_hda_intel bus-ID: 00:1f.3
Sound: Advanced Linux Sound Architecture v: k4.9.51-1-MANJARO
Network: Card-1: Intel Wireless 8260 driver: iwlwifi bus-ID: 01:00.0
IF: wlp1s0 state: up mac:
Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8168 v: 8.044.02-NAPI port: e000 bus-ID: 02:00.0
IF: enp2s0 state: down mac:
Drives: HDD Total Size: 256.1GB (27.0% used)
ID-1: /dev/sda model: LITEON_CV1 size: 256.1GB
Partition: ID-1: / size: 108G used: 56G (55%) fs: ext4 dev: /dev/sda3
ID-2: swap-1 size: 9.44GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
Sensors: System Temperatures: cpu: 46.0C mobo: 46.0C
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 227 Uptime: 5 min Memory: 3060.1/7903.0MB Init: systemd Gcc sys: 7.2.0
Client: Shell (bash 4.4.121) inxi: 2.3.39

Since the Manjaro kernel was updated to version 4.13.2 I have been experiencing random bluetooth mice disconnects and bluetooth crashes. The problem also happens when I use kernel 4.14 RC1. The problem does not happen when I use LTS kernel (or any kernel prior do 4.13.2). The The output of journalctl -xb is available at

https://pastebin.com/drZFcuem

An extract from the output produced by journalctl --unit=bluetooth

– Reboot –
set 25 07:33:46 darwin5 systemd[1]: Starting Bluetooth service…
set 25 07:33:46 darwin5 bluetoothd[602]: Bluetooth daemon 5.47
set 25 07:33:46 darwin5 systemd[1]: Started Bluetooth service.
set 25 07:33:46 darwin5 bluetoothd[602]: Starting SDP server
set 25 07:33:46 darwin5 bluetoothd[602]: Bluetooth management interface 1.14 initialized
set 25 07:33:56 darwin5 bluetoothd[602]: Endpoint registered: sender=:1.58 path=/MediaEndpoint/A2DPSource
set 25 07:33:56 darwin5 bluetoothd[602]: Endpoint registered: sender=:1.58 path=/MediaEndpoint/A2DPSink
set 25 07:35:34 darwin5 bluetoothd[602]: Endpoint unregistered: sender=:1.58 path=/MediaEndpoint/A2DPSource
set 25 07:35:34 darwin5 bluetoothd[602]: Endpoint unregistered: sender=:1.58 path=/MediaEndpoint/A2DPSink
set 25 07:35:38 darwin5 bluetoothd[602]: Endpoint registered: sender=:1.58 path=/MediaEndpoint/A2DPSource
set 25 07:35:38 darwin5 bluetoothd[602]: Endpoint registered: sender=:1.58 path=/MediaEndpoint/A2DPSink
set 25 07:36:10 darwin5 bluetoothd[602]: Error reading PNP_ID value: Unexpected error code
set 25 07:36:10 darwin5 bluetoothd[602]: Protocol Mode characteristic read failed: Request attribute has encountered an unlikely error
set 25 07:36:10 darwin5 bluetoothd[602]: Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
set 25 07:36:10 darwin5 bluetoothd[602]: Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
set 25 07:36:10 darwin5 bluetoothd[602]: Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
set 25 07:36:10 darwin5 bluetoothd[602]: Read Report Reference descriptor failed: Request attribute has encountered an unlikely error
set 25 07:36:10 darwin5 bluetoothd[602]: Report Map read failed: Request attribute has encountered an unlikely error
set 25 07:36:10 darwin5 bluetoothd[602]: HID Information read failed: Request attribute has encountered an unlikely error
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:36:59 darwin5 bluetoothd[602]: bt_uhid_send: Invalid argument (22)
set 25 07:37:10 darwin5 bluetoothd[602]: Endpoint unregistered: sender=:1.58 path=/MediaEndpoint/A2DPSource
set 25 07:37:10 darwin5 bluetoothd[602]: Endpoint unregistered: sender=:1.58 path=/MediaEndpoint/A2DPSink
set 25 07:37:10 darwin5 systemd[1]: Stopping Bluetooth service…
set 25 07:37:10 darwin5 bluetoothd[602]: Terminating
set 25 07:37:10 darwin5 bluetoothd[602]: Stopping SDP server
set 25 07:37:10 darwin5 bluetoothd[602]: Exit
set 25 07:37:10 darwin5 systemd[1]: Stopped Bluetooth service.
– Reboot –

Also:

[cribari@darwin5 ~]$ rfkill list all
0: samsung-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: samsung-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no

[cribari@darwin5 ~]$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 2232:1079 Silicon Motion
Bus 001 Device 002: ID 8087:0a2b Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Suggestions are welcome.


#2

Downgrading linux-firmware to version 20170622.7d2c913-1 seems to solve the problem.That leads me to believe that there is something wrong with the latest version of linux-firmware (version 20170907.a61ac5c-1).

EDIT: Other people are having problems with the latest firmware. See, e.g., https://www.spinics.net/lists/linux-wireless/msg166025.html . Can the Manjaro devs help? Is there anything they can do?


Surface Pro 3 wifi no networks detected
#3

Same here with Cinnamon DE. Downgraded to kernel 4.12 because BT is unusable with 4.13.2.


#4

I filed this bug report: https://bugzilla.kernel.org/show_bug.cgi?id=197039


#5

I am also having this same issue.


#6

Can you post the steps that you took to downgrade linux-firmware? I want to make sure that I am doing it correctly.


#7
  1. sudo pacman -S downgrade

  2. sudo downgrade linux-firmware . Select

  1. linux-firmware-20170622.7d2c913-1-any.pkg.tar.xz (local)
  1. Reboot.

#8

@asynec If you are having a similar problem, could you please share your experience in the comments of the following bug report:

https://bugzilla.kernel.org/show_bug.cgi?id=197039

? Thank you.


#9

Sure thing, done.

One question… I noticed that this process added linux-firmware to the ignore list, I assume ignoring future updates. What steps would I take to download an update at a future date?


#10

Uh oh. It looks like after downgrading linux-firmware, my bluetooth is totally dead. After rebooting, I cannot get it to connect at all.


#11

@asynec I did not add linux-firmware to the ignore list.

That’s strange. Was the previous firmware successfully installed (pacman -Qi linux-firmware)?

I am now running the latest firmware again for debugging purposes. I disabled bluetooth coexistence and so far so good. To do so, create the file /etc/modprobe.d/iwlwifi.conf with

options iwlwifi bt_coex_active=0

and reboot.


Bluetooth issues with ThinkPad x240
#12

Hmmm, ran

sudo modprobe -r btusb
sudo modprobe btusb

Rebooted.

Bluetooth is working now. Will reort back if I’m experiencing any crashes. I still need direction on how to re-upgrade linux-firmware at a later date now that it is in my ignore list though.


Bluetooth no longer turns on
#13

@philm Phil: Can you or another Manjaro dev give me a hand with this problem? I am experiencing wifi/bluetooth crashes. I filed a bug report: https://bugzilla.kernel.org/show_bug.cgi?id=197039 . I was then asked to perform some debugging. I have already downloaded the customized firmware. The debugging instructions are available at

https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/debugging#firmware_debugging

My first question: Is the Manjaro kernel compiled with CONFIG_ALLOW_DEV_COREDUMP set to Y? If not, I understand that I will need to compile the kernel using that setting. Is that correct?

Next, /sys/kernel/debug/iwlwifi does not exist on my system and I am unable to create that folder (even as root). I also don’t have /sys/devices/virtual/devcoredump .

Do you think a Manjaro dev would be able to guide me through this debugging process? How do you suggest I proceed with this? Thank you.


#14

Yes, this option is enabled. But for debug iwlwifi, the option CONFIG_IWLWIFI_DEBUG also needs to be enabled. And this is not the case. So it appears you need to compile your own kernel with more debug options set.

The sysfs is a very special kernel file system. You can’t create folders or files.


#15

@xabbu Thank you! I compiled the kernel and booted into it. The firmware debugging procedure asks us to do the following:

cat /sys/devices/virtual/devcoredump/devcdY/data > iwl.dump
echo 1 > /sys/devices/virtual/devcoredump/devcdY/data
(Y is incremented each time)

However, I do not see a devcoredump folder:

What I have:

[root@darwin5 virtual]# pwd
/sys/devices/virtual
[root@darwin5 virtual]# ls
bdi dmi graphics hwmon input mem misc msr net powercap sound thermal tty vc vtconsole workqueue
[root@darwin5 virtual]#

Would you know how I should proceed?


#16

Did you also enable the debugfs (CONFIG_IWLWIFI_DEBUGFS)? And can you start fw_dbg_collect? I think the devcoredump device is only created when you start fw_dbg_collect with echo 1 or the modified firmware starts fw_dbg_collect by its self and there is a firmware coredump. But if the firmware can start this by its self depends on how the firmware was modified.

Also I never did firmware debugging, so there is maybe something I didn’t know.


#17

There seems to be something wrong with the latest firmware. I was provided with a custom firmware with debug enabled, performed tests and filed the following bug report:

https://bugzilla.kernel.org/show_bug.cgi?id=197061


#18

I am having the same issue…random bluetooth disconnects (apple magic trackpad) after most recent stable update. I have tried with the same result the two most recent lts kernels, 4.9.52-1 and 4.4.89-1 and it happens on both Some mention it is a conflict with wifi, but the machine I am having trouble with has no wifi at all, being a desktop plugged in to the wall. Also tried downgrading linux-firmware 20170907.a61ac5c-1 to 20170622.7d2c913-1 but still having the same problem. can provide various outputs if desired. LMK if that would help.


[Stable Update] 2017-09-30 - Timeshift, Kernels, Nvidia, JADE, Haskell, JDK9, Snap Support
#19

Intel 8260 as well?


#20

Intel® Core™ i7-4770 CPU @ 3.40GHz

rich[~]$  inxi -Fxzc0
System:    Host: ZaManjCin Kernel: 4.9.52-1-MANJARO x86_64 bits: 64 gcc: 7.2.0
           Desktop: Cinnamon 3.4.6 (Gtk 3.22.21) Distro: Manjaro Linux
Machine:   Device: desktop System: MSI product: MS-7823 v: 1.0 serial: N/A
           Mobo: MSI model: Z87M-G43 (MS-7823) v: 1.0 serial: N/A
           BIOS: American Megatrends v: V2.2 date: 06/07/2013
CPU:       Quad core Intel Core i7-4770 (-HT-MCP-)
           arch: Haswell rev.3 cache: 8192 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 27211
           clock speeds: max: 3900 MHz 1: 3900 MHz 2: 3899 MHz 3: 3895 MHz
           4: 3887 MHz 5: 3871 MHz 6: 3883 MHz 7: 3886 MHz 8: 3870 MHz
Graphics:  Card: NVIDIA GF108 [GeForce GT 620] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.3 ) driver: nvidia
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: GeForce GT 620/PCIe/SSE2
           version: 4.5.0 NVIDIA 384.90 Direct Render: Yes
Audio:     Card-1 NVIDIA GF108 High Def. Audio Controller
           driver: snd_hda_intel bus-ID: 01:00.1
           Card-2 Bose driver: USB Audio usb-ID: 003-005
           Sound: Advanced Linux Sound Architecture v: k4.9.52-1-MANJARO
Network:   Card: Realtek RTL8111/8168/8411 PCIE Gigabit Ethernet Controller
           driver: r8168 v: 8.044.02-NAPI port: d000 bus-ID: 03:00.0
           IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 14250.8GB (21.1% used)
           ID-1: /dev/sdb model: WDC_WD1002FAEX size: 1000.2GB
           ID-2: /dev/sda model: Crucial_CT120M50 size: 120.0GB
           ID-3: /dev/sdd model: M4 size: 128.0GB
           ID-4: /dev/sdc model: ST1000LM024_HN size: 1000.2GB
           ID-5: USB /dev/sde model: Expansion_Desk size: 8001.6GB
           ID-6: USB /dev/sdf model: My_Book_1230 size: 4000.8GB
Partition: ID-1: / size: 73G used: 60G (87%) fs: ext4 dev: /dev/sda2
           ID-2: /boot size: 494M used: 287M (62%) fs: ext2 dev: /dev/sda1
           ID-3: /home size: 917G used: 461G (53%) fs: ext4 dev: /dev/sdc1
           ID-4: swap-1 size: 17.82GB used: 0.00GB (0%) fs: swap dev: /dev/sda3
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 0.0:78C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 346 Uptime: 5:06 Memory: 8599.8/15993.1MB
           Init: systemd Gcc sys: 7.2.0 Client: Shell (bash 4.4.121) inxi: 2.3.40