Skip to content

Instantly share code, notes, and snippets.

@crcerror
Created March 18, 2020 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crcerror/637b339a94b21d312fd8141946c1af7d to your computer and use it in GitHub Desktop.
Save crcerror/637b339a94b21d312fd8141946c1af7d to your computer and use it in GitHub Desktop.
BATOCERA - fixed BT with
# bluetoothctl
[NEW] Controller B8:27:EB:3C:DB:A0 BlueZ 5.47 [default]
Agent registered
[bluetooth]# agent on
Agent is already registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:27:EB:3C:DB:A0 Discovering: yes
[NEW] Device 20:73:AB:00:83:9D 20-73-AB-00-83-9D
[CHG] Device 20:73:AB:00:83:9D LegacyPairing: no
[CHG] Device 20:73:AB:00:83:9D Name: idroid:con
[CHG] Device 20:73:AB:00:83:9D Alias: idroid:con
[bluetooth]# pair 20:73:AB:00:83:9D
Attempting to pair with 20:73:AB:00:83:9D
[CHG] Device 20:73:AB:00:83:9D Connected: yes
[CHG] Device 20:73:AB:00:83:9D Modalias: usb:v0A5Cp8502d011B
[CHG] Device 20:73:AB:00:83:9D UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device 20:73:AB:00:83:9D UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 20:73:AB:00:83:9D ServicesResolved: yes
[CHG] Device 20:73:AB:00:83:9D Paired: yes
Pairing successful
[CHG] Device 20:73:AB:00:83:9D Trusted: yes
[idroid:con]# connect 20:73:AB:00:83:9D
Attempting to connect to 20:73:AB:00:83:9D
Connection successful
[idroid:con]# trust 20:73:AB:00:83:9D
Changing 20:73:AB:00:83:9D trust succeeded
[CHG] Device 20:73:AB:00:83:9D ServicesResolved: no
[CHG] Device 20:73:AB:00:83:9D Connected: no
[CHG] Device 20:73:AB:00:83:9D Class: 0x00000504
[CHG] Device 20:73:AB:00:83:9D Icon: input-gaming
[CHG] Device 20:73:AB:00:83:9D Connected: yes
POWER OFF --- POWER ON --> works reconnect established
[CHG] Device 20:73:AB:00:83:9D Connected: no
[CHG] Device 20:73:AB:00:83:9D Connected: yes
REBOOT
# bluetoothctl
[NEW] Controller B8:27:EB:3C:DB:A0 BlueZ 5.47 [default]
[NEW] Device 20:73:AB:00:83:9D idroid:con
Agent registered
[CHG] Device 20:73:AB:00:83:9D Connected: yes
[CHG] Device 20:73:AB:00:83:9D Connected: no
[CHG] Device 20:73:AB:00:83:9D Connected: yes
POWER OFF --- POWER ON --> does not work, it says connected, controller is not connected
> Exchanged /usr/libexec/bluetooth/bluetoothd from 5.25 stable
> md5: e311e771c59658cb394072f03855bb16
> crc32: 725dfe99
> with /usr/libexec/bluetooth/bluetoothd from 5.26-dev 17.03.2020
> md5: b3f84558f4cd09dfa06772bdd9488dcc
> crc32: 320d63d5
> save changes to overlay with batocera-save-overlay
REBOOT
# bluetoothctl
[NEW] Controller B8:27:EB:3C:DB:A0 BlueZ 5.47 [default]
[NEW] Device 20:73:AB:00:83:9D idroid:con
Agent registered
[CHG] Device 20:73:AB:00:83:9D Connected: yes
[CHG] Device 20:73:AB:00:83:9D Connected: no
[CHG] Device 20:73:AB:00:83:9D Connected: yes
POWER OFF --- POWER ON --> does work now, like it should
ISSUE RESOLVED
@crcerror
Copy link
Author

More explaination in this PR: batocera-linux/batocera.linux#1398

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment