Bluetooth troubles

Hi everybody

I have a question concerning Bluetooth on my ODROID XU4.

I have two SIXAXIS controllers working perfectly while connected via cable. I plug them in, hit the PS-button and it works.

As the long cable is kind of buggin me a bit I decided to give Bluetooth a shot. After installing my dongle (Hama Nano Bluetooth 4.0 (USB 2.0)) and connecting the controller I expected it to work “out of the box” (stated here: http://www.lakka.tv/doc/Wireless-Dualshock/) But once I cut the wired connection and try to connect by pressing the PS button - nothing happens.

Then I tried following the article mentioned above (http://www.lakka.tv/doc/Wireless-Dualshock/) and all works out ok until there’s supposed to be an “Authorize service ‘‘service_uuid’’ (yes/no):” request. I even did this manually by “trust <Bluetooth-address>” but once I try to “connect” afterwards this always fails.

I’ve tried every single steps in about every manner possible, rebooting, executing “hciconfig hci up” commands, different controllers (that are both fully charged by the way), resetting the pairing with a paper clip couple of times - just nothing helps.

I remember that the dongle used to work on my Raspberry, also with lakka…but with ODROID I’m really kinda stuck right now.

Any idea how I can fix this?

Am I the only one? Any ideas what could be wrong?

Did you try to make a test with with latest nightly ? If I remember correctly RPi and Odroid don’t use same kernel.

Original or fake controllers?

Yes I tried this with the latest nightly (August 11th)

Original

Can you provide the output of

lsusb

and

dmesg

When you have plugged your bluetooth dongle.

RPi is running kernel 4.1.18 and Odroid is running kernel 3.10.96

There you go:

dmesg:

[ 43.748720] [c0] usb 3-1.1: new full-speed USB device number 3 using xhci-hcd [ 43.959600] [c6] Bluetooth: Core ver 2.16 [ 43.962339] [c6] NET: Registered protocol family 31 [ 43.967041] [c6] Bluetooth: HCI device and connection manager initialized [ 43.973824] [c6] Bluetooth: HCI socket layer initialized [ 43.979106] [c6] Bluetooth: L2CAP socket layer initialized [ 43.984635] [c6] Bluetooth: SCO socket layer initialized [ 43.994054] [c6] usbcore: registered new interface driver btusb

lsusb:

Bus 006 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode) Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

If you try bluetoothctl then power on as suggested by this thread ?

Yes, I followed the steps provided here: http://www.lakka.tv/doc/Wireless-Dualshock/ (including the “power on” command)

Yes, I mean directly

bluetoothctl
power on

Just tried it this way. Once I plug it via USB it says it’s connected on port 0 - if I press the PS button I can utilize it with the attached cable. But after being unplugged there’s no wireless connection anymore. It randomly states “controller disconnected” and that’s it. Even when unplugging and pressing the PS-button AFTER disconnecting from USB doesn’t help.

Maybe it’s due to those messages once I use systemctl to start bluetooth:

Aug 25 19:23:25 Lakka systemd[1]: Started Bluetooth service. Aug 25 19:23:25 Lakka bluetoothd[3245]: Bluetooth daemon 5.37 Aug 25 19:23:25 Lakka bluetoothd[3245]: Starting SDP server Aug 25 19:23:25 Lakka bluetoothd[3245]: Bluetooth management interface 1.3 initialized Aug 25 19:23:25 Lakka bluetoothd[3245]: Failed to obtain handles for “Service Changed”…tic Aug 25 19:23:26 Lakka bluetoothd[3245]: hci0 Load Connection Parameters failed: Unknow…01)

I am having this exact problem when attempting to connect a Dualshock 3 using a CSR8510 Bluetooth dongle on ODROID XU4. I receive the same “hci0 Load Connection Parameters failed” when starting Bluetooth as well.

Some further information:

Periodically, I will see a “Connected to Port X” when connecting the Dualshock, and it seems like it has connected via Bluetooth (I see some message in bluetoothctl indicating the device is connected). However, the 4 red leds continue to blink like the controller isn’t connected and it doesn’t provide any input.

Also, I have been able to successfully connect a Dualshock 4 with the same dongle.

Maybe you can try this little tutorial ? (configuration files for Lakka)

Hi all, just wondering what’s the best USB 2.0 dongle for Lakka ? I plan to refurbish a Dell OptiPlex 755 USFF and install on it the latest Lakka nigthly x64 build. But it as no internal bluetooth controller and my plan is to use up to 3x DS3 remotes (generic) to play old fashion games from the couch with my kids. The bluetooth pairing on my RPi3 works just great so far and I really want to get the same experience for pairing remotes on the PC machine. So if anyone could provide some references (brand/model) that would be perfect :wink:

Thanks,

Read this workaround https://github.com/libretro/Lakka/issues/490

Sorry for reviving this old thread, but I’m having this exact problem and nothing seems to work. I’ve tried following the instructions on this old thread, as well as the Lakka docs for wireless dualshock controllers and the arch wiki.

The controller works fine when plugged in, but won’t connect via bluetooth. When trying to connect via bluetoothctl, I can see it keeps connecting and disconnecting, and connect/pair does nothing:

Lakka:~ # bluetoothctl 
[NEW] Controller 00:1A:7D:DA:71:13 %h [default]
[NEW] Device 34:C7:31:BB:DA:7F PLAYSTATION(R)3 Controller
[NEW] Device 78:18:81:48:2F:25 PLAYSTATION(R)3 Controller
[NEW] Device E4:E0:C5:E5:F6:43 DTVBluetooth
Agent registered
[bluetooth]# agent on
Agent is already registered
[bluetooth]# default-agent 
Default agent request successful
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:13 Discovering: yes
[NEW] Device 1C:1A:C0:7F:B8:A2 1C-1A-C0-7F-B8-A2
[NEW] Device 98:09:CF:19:8F:E2 OnePlus 6T
[CHG] Device E4:E0:C5:E5:F6:43 RSSI: -79
[CHG] Device E4:E0:C5:E5:F6:43 TxPower: 0
[CHG] Device E4:E0:C5:E5:F6:43 ManufacturerData Key: 0x000f
[CHG] Device E4:E0:C5:E5:F6:43 ManufacturerData Value:
  00 21 48                                         .!H             
[CHG] Device 1C:1A:C0:7F:B8:A2 RSSI: -85
[NEW] Device 61:EA:CE:45:57:01 61-EA-CE-45-57-01
[CHG] Device 1C:1A:C0:7F:B8:A2 RSSI: -77
[CHG] Device 98:09:CF:19:8F:E2 RSSI: -82
[CHG] Device 1C:1A:C0:7F:B8:A2 RSSI: -8
[CHG] Device 98:09:CF:19:8F:E2 RSSI: -72
[CHG] Device 98:09:CF:19:8F:E2 RSSI: -80
[CHG] Device 34:C7:31:BB:DA:7F Connected: yes
[CHG] Device 34:C7:31:BB:DA:7F Connected: no
[CHG] Device 34:C7:31:BB:DA:7F Connected: yes
[CHG] Device 34:C7:31:BB:DA:7F Connected: no
[CHG] Device 34:C7:31:BB:DA:7F Connected: yes
[CHG] Device 34:C7:31:BB:DA:7F Connected: no
[CHG] Device 34:C7:31:BB:DA:7F Connected: yes
[CHG] Device 34:C7:31:BB:DA:7F Connected: no
[bluetooth]# connect 34:C7:31:BB:DA:7F
Attempting to connect to 34:C7:31:BB:DA:7F
Failed to connect: org.bluez.Error.Failed
[CHG] Device 34:C7:31:BB:DA:7F Connected: yes
[CHG] Device 34:C7:31:BB:DA:7F Connected: no
[CHG] Device 34:C7:31:BB:DA:7F Connected: yes
[CHG] Device 34:C7:31:BB:DA:7F Connected: no
[bluetooth]# pair 34:C7:31:BB:DA:7F
Attempting to pair with 34:C7:31:BB:DA:7F
Failed to pair: org.bluez.Error.ConnectionAttemptFailed
[CHG] Device 34:C7:31:BB:DA:7F Connected: yes
[CHG] Device 34:C7:31:BB:DA:7F Connected: no

I’m using an ODROID XU4 with their Bluetooth Module 2 and two PS3 Dualshock controllers that I’m almost certain are genuine.

This is the output from dmesg:

[ 1070.112441] usb 3-1.1: New USB device found, idVendor=054c, idProduct=0268
[ 1070.112449] usb 3-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1070.112454] usb 3-1.1: Product: PLAYSTATION(R)3 Controller
[ 1070.112459] usb 3-1.1: Manufacturer: Sony
[ 1070.151413] input: Sony PLAYSTATION(R)3 Controller Motion Sensors as /devices/platform/soc/soc:usb3-0/12000000.dwc3/xhci-hcd.3.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:054C:0268.0004/input/input9
[ 1070.210554] input: Sony PLAYSTATION(R)3 Controller as /devices/platform/soc/soc:usb3-0/12000000.dwc3/xhci-hcd.3.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:054C:0268.0004/input/input8
[ 1070.211270] sony 0003:054C:0268.0004: input,hiddev96,hidraw0: USB HID v81.11 Joystick [Sony PLAYSTATION(R)3 Controller] on usb-xhci-hcd.3.auto-1.1/input0

And from hciconfig -a:

hci0:   Type: Primary  Bus: USB
        BD Address: 00:1A:7D:DA:71:13  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN 
        RX bytes:634 acl:0 sco:0 events:40 errors:0
        TX bytes:1201 acl:0 sco:0 commands:40 errors:0
        Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH HOLD SNIFF PARK 
        Link mode: SLAVE ACCEPT 
        Name: '%h'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous, 
        HCI Version: 4.0 (0x6)  Revision: 0x22bb
        LMP Version: 4.0 (0x6)  Subversion: 0x22bb
        Manufacturer: Cambridge Silicon Radio (10)

bluez.conf exists and is empty

And here is the output from systemctl status bluetooth:

● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2019-10-13 20:27:52 UTC; 24min ago
 Main PID: 511 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─511 /usr/lib/bluetooth/bluetoothd

Oct 13 20:44:52 Lakka bluetoothd[511]: sixaxis: compatible device connected: PLAYSTATION(R)3 Controller (054C:0268)
Oct 13 20:44:52 Lakka bluetoothd[511]: sixaxis: compatible device connected: Sony PLAYSTATION(R)3 Controller (054C:0268)
Oct 13 20:45:30 Lakka bluetoothd[511]: sixaxis: compatible device connected: PLAYSTATION(R)3 Controller (054C:0268)
Oct 13 20:45:30 Lakka bluetoothd[511]: sixaxis: compatible device connected: Sony PLAYSTATION(R)3 Controller (054C:0268)
Oct 13 20:46:38 Lakka bluetoothd[511]: Failed to set privacy: Rejected (0x0b)
Oct 13 20:50:26 Lakka bluetoothd[511]: sixaxis: compatible device connected: PLAYSTATION(R)3 Controller (054C:0268)
Oct 13 20:50:26 Lakka bluetoothd[511]: sixaxis: compatible device connected: Sony PLAYSTATION(R)3 Controller (054C:0268)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.