Siduction Forum

Siduction Forum => Upgrade Warnings => Topic started by: orinoco on 2019/04/03, 09:07:20

Title: [solved] Kernel related Bluetooth issue
Post by: orinoco on 2019/04/03, 09:07:20
Hello,

I ran into a bluetooth problem. I'm sure when this appears first. The pairing works fine but there device is not accepted as a hid:

Code: [Select]
Apr 03 08:02:18 womble bluetoothd[19440]: input-hog profile accept failed for xx:xx:xx:xx:xx:xx
Apr 03 08:02:18 womble bluetoothd[19440]: input-hog profile accept failed for xx:xx:xx:xx:xx:xx

A google search result pointed me to this blog post:

https://mtekk.us/archives/guides/fix-bluetooth-mouse-pairing-but-not-moving-cursor-in-linux/ (https://mtekk.us/archives/guides/fix-bluetooth-mouse-pairing-but-not-moving-cursor-in-linux/)

The guy solved the same problem by modifying the kernel config and recompiling the whole stuff.

Code: [Select]
CONFIG_UHID=y
I have currently two kernels on my notebook:

Both haven't set this config item and share the issue:

Code: [Select]
$ cat /boot/config-5.0.5-towo.1-siduction-amd64 | grep UHID
# CONFIG_UHID is not set

@towo Could you please be so kind to set this item and deliver a recompiled kernel? Thanks in advance.
Title: Re: Kernel related Bluetooth issue
Post by: towo on 2019/04/03, 09:20:26
Normaly that driver should not be used. The helptext is saying that clear:

Code: [Select]
Say Y here if you want to provide HID I/O Drivers from user-space. This allows to write I/O drivers in user-space and feed the data from the device into the kernel. The kernel parses the HID reports, loads the corresponding HID Device Driver or provides input devices on top of your user-space device.

This driver cannot be used to parse HID-reports in user-space and write special HID-drivers. You should use hidraw for that. Instead, this driver allows to write the transport-layer driver in user-space like USB-HID and Bluetooth-HID do in kernel-space.

If unsure, say N.

To compile this driver as a module, choose M here: the module will be called uhid.

Our kernel has set CONFIG_HIDRAW=y.

But i can enable UHID as module, let's see, what's getting broken with that.
Title: Re: Kernel related Bluetooth issue
Post by: bad_aptitude on 2019/04/05, 22:39:46
Not sure if it is related; but my Bluetooth mouse stopped working after a dist upgrade about 6 months ago.The mouse pairs and connects but doesn't move the cursor. I was hoping this would get fixed with subsequent upgrades. (which is what happened about a year earlier)
This Microsoft mouse is somewhat notorious for erratic performance so I can't be sure it isn't hardware related.


bad_
Title: Re: Kernel related Bluetooth issue
Post by: orinoco on 2019/04/06, 17:38:29
@towo

Thank you very much. Today I was able to test my bluetooth issue again and it works now with 5.0.6-towo.1

Don't touch it anymore...  :D

Code: [Select]
Apr 06 17:19:00 womble kernel: hidraw: raw HID events driver (C) Jiri Kosina
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble bluetoothd[7829]: bt_uhid_send: Invalid argument (22)
Apr 06 17:19:01 womble kernel: input: MX Anywhere 2 Keyboard as /devices/virtual/misc/uhid/xxxx:xxxx:xxxx.0001/input/input12
Apr 06 17:19:01 womble kernel: input: MX Anywhere 2 Mouse as /devices/virtual/misc/uhid/xxxx:xxxx:xxxx.0001/input/input13
Apr 06 17:19:01 womble kernel: hid-generic xxxx:xxxx:xxxx.0001: input,hidraw0: BLUETOOTH HID v0.09 Keyboard [MX Anywhere 2] on xx:xx:xx:xx:xx:xx
Apr 06 17:19:01 womble systemd-logind[7888]: Watching system buttons on /dev/input/event11 (MX Anywhere 2 Keyboard)
Title: Re: [solved] Kernel related Bluetooth issue
Post by: bad_aptitude on 2019/04/06, 20:38:56
Thank you both:
This fixed my mouse as well. I guess I should have mentioned it sooner.


bad_