Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED in latest kernel] Bluetooth doesn't work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jroth
n00b
n00b


Joined: 08 Aug 2017
Posts: 53

PostPosted: Tue Jun 12, 2018 3:42 am    Post subject: [SOLVED in latest kernel] Bluetooth doesn't work Reply with quote

I set up Bluetooth and connected my Bluetooth wireless mouse (a MadCatz R.A.T. M) to my laptop as described on the Bluetooth wiki page, and the mouse initially works - I can pair it, set it as trusted, and move the mouse and click on things. (However, I did have to set "advertise on" in bluetoothctl to get the mouse to pair. I'm not sure if that's a relevant detail). This is a Bluetooth Low Energy mouse, and I do have Bluetooth LE enabled in the kernel.

However, following a reboot or wake from suspend, it doesn't work anymore. I open up bluetoothctl and power on the Bluetooth module, and the mouse is reported as a paired and connected device, but moving the mouse doesn't do anything. Then, this starts happening:
Code:
[bluetooth]# show
Controller 9C:B6:D0:8C:F2:10 (public)
        Name: hekate
        Alias: hekate
        Class: 0x000c010c
        Powered: yes
        Discoverable: no
        Pairable: yes
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0531
        Discovering: no
[CHG] Device 00:15:9E:20:74:29 Connected: yes
[CHG] Device 00:15:9E:20:74:29 Connected: no
[CHG] Device 00:15:9E:20:74:29 Paired: yes
[CHG] Device 00:15:9E:20:74:29 Connected: yes
[CHG] Device 00:15:9E:20:74:29 Connected: no
[CHG] Device 00:15:9E:20:74:29 Connected: yes
[CHG] Device 00:15:9E:20:74:29 Connected: no
[CHG] Device 00:15:9E:20:74:29 Connected: yes
[CHG] Device 00:15:9E:20:74:29 Connected: no
[CHG] Device 00:15:9E:20:74:29 Connected: yes
[Mad Catz R.A.T.M]#


The bluetoothctl terminal fills up with the mouse apparently disconnecting and reconnecting about once every five seconds. All the while, the mouse doesn't work and the Bluetooth status LED on it is blinking as if it's trying to connect or pair.

Setting discoverable and advertise to on has no effect; the disconnecting and reconnecting continues:

Code:
[Mad Catz R.A.T.M]# discoverable on
Changing discoverable on succeeded
[CHG] Controller 9C:B6:D0:8C:F2:10 Discoverable: yes
[CHG] Device 00:15:9E:20:74:29 Connected: no
[CHG] Device 00:15:9E:20:74:29 Connected: yes
[Mad Catz R.A.T.M]# advertise on
[CHG] Controller 9C:B6:D0:8C:F2:10 SupportedInstances: 0x04
[CHG] Controller 9C:B6:D0:8C:F2:10 ActiveInstances: 0x01
Advertising object registered
Tx Power: off
Name: off
Apperance: off
[CHG] Device 00:15:9E:20:74:29 Connected: no
[CHG] Device 00:15:9E:20:74:29 Connected: yes


Can anyone who knows more about Bluetooth tell what's going on here? Is something wrong with my mouse, or the way I configured and used the Bluetooth system?


Last edited by jroth on Fri Jun 15, 2018 7:27 pm; edited 2 times in total
Back to top
View user's profile Send private message
jroth
n00b
n00b


Joined: 08 Aug 2017
Posts: 53

PostPosted: Thu Jun 14, 2018 8:35 pm    Post subject: Reply with quote

Update of sorts - I've done some more tests and I've isolated the problem some more: the bluetooth system doesn't work after suspending the computer. My mouse works and pairs fine if I pair it after a cold boot and only use it after a cold boot, but after waking the computer up from a suspend, the mouse doesn't work and bluetoothctl gives me strange problems like the above (sometimes even the "power on" and "power off" commands don't work).

I made and enabled a systemd unit that will run
Code:
# /bin/systemctl stop bluetooth
before going to sleep, and it does work, but even in this configuration of stopping the bluetooth service before sleeping and manually re-starting it after waking the bluetooth doesn't work after waking from suspend.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13970

PostPosted: Fri Jun 15, 2018 1:39 am    Post subject: Reply with quote

With what kernel versions did you test this? Have you tried the latest available kernel, to see if this was fixed upstream?
Back to top
View user's profile Send private message
jroth
n00b
n00b


Joined: 08 Aug 2017
Posts: 53

PostPosted: Fri Jun 15, 2018 3:10 am    Post subject: Reply with quote

Hu wrote:
With what kernel versions did you test this? Have you tried the latest available kernel, to see if this was fixed upstream?


I'm using the latest stable kernel (4.9.95). I'm going to try on the latest testing kernel now (4.17.1) and see how that goes.
Back to top
View user's profile Send private message
jroth
n00b
n00b


Joined: 08 Aug 2017
Posts: 53

PostPosted: Fri Jun 15, 2018 7:26 pm    Post subject: Reply with quote

Everything seems to work fine on kernel 4.17.1

Thanks for the help - it must have been a kernel bug.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum