FS#66133 - [bluez] "input-hog profile accept failed" from bluettothd prevents BLE device use.
Attached to Project:
Arch Linux
Opened by Lutz Vieweg (lvml) - Sunday, 05 April 2020, 15:02 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 10 September 2020, 14:38 GMT
Opened by Lutz Vieweg (lvml) - Sunday, 05 April 2020, 15:02 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 10 September 2020, 14:38 GMT
|
Details
Description:
After upgrading from bluez-5.53-1-x86_64 to bluez-5.54-1-x86_64.pkg my "Bluetooth Low Energy" mouse (Model: Rapoo M500) is not usable as an input device anymore. When the mouse is switched on, the following message is emitted to the system journal: Apr 05 00:41:32 hostname bluetoothd[655]: input-hog profile accept failed for ED:8E:0E:XX:XX:XX (last three bytes replaced by XX by me) After pacman -U /var/cache/pacman/pkg/bluez-5.53-1-x86_64.pkg.tar.zst \ /var/cache/pacman/pkg/bluez-libs-5.53-1-x86_64.pkg.tar.zst \ /var/cache/pacman/pkg/bluez-utils-5.53-1-x86_64.pkg.tar.zst systemctl restart bluetooth the mouse immediately works again, and vice versa. I assume this to be a consequence of this commit: https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=8cdbd3b09f29da29374e2f83369df24228da0ad1 since this Rapoo Mouse is not "paired" and cannot be "paired" in BLE Mode. But from what I read, it seems that the options "ClassicBondedOnly" and "LEAutoSecurity" in https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/profiles/input/input.conf were meant to deal with compatibility to non-pairable BLE devices. Thus I tried both options, with either "false" or "true" settings, but alas, that makes no difference, the symptom stays the same. And while the system journal does indicate that bluez-5.54-1-x86_64.pkg has found the "ClassicBondedOnly" option in input.conf - Apr 05 00:28:07 hostname bluetoothd[20516]: profiles/input/manager.c:input_init() input.conf: ClassicBondedOnly=false - there is no indication that the "LEAutoSecurity" option was recognized, as if the code of bluez-5.54-1-x86_64.pkg did not know about it. Additional info: * package version(s) bluez-5.54-1-x86_64.pkg - worked fine with previous versions Steps to reproduce: Just enabling the mouse shows the symptom. |
This task depends upon
The git head version works fine for my mouse with the compiled-in default values of options "ClassicBondedOnly" and "LEAutoSecurity", it also works fine if I use
[General]
ClassicBondedOnly = true
LEAutoSecurity = true
in /etc/bluetooth/input.conf - only if I use ClassicBondedOnly = true and LEAutoSecurity = false with the current git-head version, then my mouse also causes the above mentioned "input-hog profile accept failed for ..." errors.
zstd -d -c /tmp/bluez-5.54-1-x86_64.pkg.tar.zst | tar xOf - "usr/lib/bluetooth/bluetoothd" | strings -a | grep LEAutoSecurity
displays no match.
But
zstd -d -c /tmp/bluez-5.54-1-x86_64.pkg.tar.zst | tar xOf - "usr/lib/bluetooth/bluetoothd" | strings -a | grep ClassicBondedOnly
does display a match - and that tells me commit
https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=f2778f5877d20696d68a452b26e4accb91bfb19e
contributing among others code line
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/profiles/input/manager.c?id=f2778f5877d20696d68a452b26e4accb91bfb19e#n131
is not part of bluez-5.54-1-x86_64.pkg.tar.zst - which explains why the option is not supported by bluez-5.54-1-x86_64.pkg.tar.zst.
Maybe your additional commit is required.
But it's probably better to wait for another release and not worth picking random commits.
bluez-5.54-2-x86_64.pkg.tar.zst also does still not contain the LEAutoSecurity input.conf option.
The current git master branch head from upstream still works fine.
When i build it from 5.54 tag, i also have this error message and my keyboard paired, but not usable as input device.
Tried reverting to 5.53, this solved the issue for me. Currently ignoring 5.54 for now.
Downgrading to 5.53 makes the Logitech "Keyboard K600 TV" functional via bluetooth. Trying anything with 5.54 is a waste of time.
https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=5a180f2ec9edfacafd95e5fed20d36fe8e077f07