[LEDE-DEV] bluez 5.38 bluetoothd and/or bluetoothctl not working

Tim Harvey tharvey at gateworks.com
Mon Jan 16 17:00:57 PST 2017


Anyone using bluez on LEDE/OpenWrt that could tell me what could be
wrong with the following?

I'm using the following:
- imx6 based board with 4.4 kernel
- CSR 4.0 USB HCI supported by btusb via kmod-bluetooth package
- lede master
- btusb
- bluez-{daemon,examples,libs,utils} 5.38-1 from packages feed

root at lede:/# bluetoothctl
[bluetooth]# [   45.980509] usb 1-1.4: new full-speed USB device
number 3 using ci_hdrc
[NEW] Controller 00:15:83:6B:E2:BD BlueZ 5.38 [default]
[bluetooth]# list
Controller 00:15:83:6B:E2:BD BlueZ 5.38 [default]
[bluetooth]# show 00:15:83:6B:E2:BD
Controller 00:15:83:6B:E2:BD
        Name: BlueZ 5.38
        Alias: BlueZ 5.38
        Class: 0x000000
        Powered: no
        Discoverable: no
        Pairable: yes
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0526
        Discovering: no
[bluetooth]# select 00:15:83:6B:E2:BD
[bluetooth]# show 00:15:83:6B:E2:BD
Controller 00:15:83:6B:E2:BD
        Name: BlueZ 5.38
        Alias: BlueZ 5.38
        Class: 0x000000
        Powered: no
        Discoverable: no
        Pairable: yes
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0526
        Discovering: no
[bluetooth]# power on
Failed to set power on: org.freedesktop.DBus.Error.AccessDenied
[bluetooth]# show 00:15:83:6B:E2:BD
Controller 00:15:83:6B:E2:BD
        Name: BlueZ 5.38
        Alias: BlueZ 5.38
        Class: 0x000000
        Powered: no
        Discoverable: no
        Pairable: yes
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0526
        Discovering: no
[bluetooth]# scan on
Failed to start discovery: org.freedesktop.DBus.Error.AccessDenied

I can enable and scan devices using 'hciconfig hci0 up; hcitool scan'.

regards,

Tim



More information about the Lede-dev mailing list