You are not logged in.

#1 2015-06-10 08:25:10

chx
Member
Registered: 2011-05-28
Posts: 101

[SOLVED] bluez failing

Solution: https://www.archlinux.org/news/pulseaudio-split/ Don't forget to install pulseaudio-bluetooth . The system seems to work without but it doesn't really.

I managed to pair, but I can't connect. There are no error messages.

sudo hciconfig -a
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:1A:7D:DA:71:14  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:2046 acl:0 sco:0 events:172 errors:0
        TX bytes:5439 acl:0 sco:0 commands:161 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: 'veyron2'
        Class: 0x10010c
        Service Classes: Object Transfer
        Device Class: Computer, Laptop
        HCI Version: 4.0 (0x6)  Revision: 0x22bb
        LMP Version: 4.0 (0x6)  Subversion: 0x22bb
        Manufacturer: Cambridge Silicon Radio (10)

systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2015-06-10 01:15:20 PDT; 6min ago
     Docs: man:bluetoothd(8)
Main PID: 5827 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─5827 /usr/lib/bluetooth/bluetoothd

sudo bluetoothctl
[NEW] Controller 00:1A:7D:DA:71:14 veyron2 [default]
[NEW] Device 00:1D:DF:D4:4F:33 SONY HT-CT260H
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# info 00:1D:DF:D4:4F:33
Device 00:1D:DF:D4:4F:33
        Name: SONY HT-CT260H
        Alias: SONY HT-CT260H
        Class: 0x240404
        Icon: audio-card
        Paired: yes
        Trusted: yes
        Blocked: no
        Connected: no
        LegacyPairing: no
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
[bluetooth]# connect 00:1D:DF:D4:4F:33
Attempting to connect to 00:1D:DF:D4:4F:33
Failed to connect: org.bluez.Error.Failed

journal:

-- Logs begin at Mon 2015-06-08 02:33:10 PDT, end at Wed 2015-06-10 01:23:21 PDT. --
Jun 10 01:14:42 veyron2 kded5[1000]: kf5.kded: Failed to load module for  "favicons"
Jun 10 01:15:46 veyron2 konsole[1401]: The font for use in the terminal has not been matched exactly. Perhaps it has not been found properly.
Jun 10 01:15:46 veyron2 konsole[1401]: The font for use in the terminal has not been matched exactly. Perhaps it has not been found properly.
Jun 10 01:17:30 veyron2 konsole[1401]: org.kde.kurlfilter-ikws: "00:1D:DF:D4:4F:33"
Jun 10 01:18:19 veyron2 konsole[1401]: org.kde.kurlfilter-ikws: "Failed to connect: org.bluez.Error.Failed"
Jun 10 01:20:32 veyron2 konsole[1401]: org.kde.kurlfilter-ikws: "00:1D:DF:D4:4F:33"
Jun 10 01:20:55 veyron2 konsole[1401]: org.kde.kurlfilter-ikws: "00:1D:DF:D4:4F:33"
Jun 10 01:22:12 veyron2 konsole[1401]: org.kde.kurlfilter-ikws: "systemctl status bluetooth ● bluetooth.service - Bluetooth service Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2015-06-10 01:15:20 PDT; 6min ago Docs: man:bluetoothd(8) Main PID: 5827 (bluetoothd) Status: "Running" CGroup: /system.slice/bluetooth.service └─5827 /usr/lib/bluetooth/bluetoothd"
Jun 10 01:22:59 veyron2 konsole[1401]: org.kde.kurlfilter-ikws: "00:1D:DF:D4:4F:33"
Jun 10 01:23:21 veyron2 konsole[1401]: org.kde.kurlfilter-ikws: "sudo bluetoothctl [NEW] Controller 00:1A:7D:DA:71:14 veyron2 [default] [NEW] Device 00:1D:DF:D4:4F:33 SONY HT-CT260H [bluetooth]# power on Changing power on succeeded [bluetooth]# agent on Agent registered [bluetooth]# default-agent Default agent request successful [bluetooth]# info 00:1D:DF:D4:4F:33 Device 00:1D:DF:D4:4F:33 Name: SONY HT-CT260H Alias: SONY HT-CT260H Class: 0x240404 Icon: audio-card Paired: yes Trusted: yes Blocked: no Connected: no LegacyPairing: no UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) [bluetooth]# connect 00:1D:DF:D4:4F:33 Attempting to connect to 00:1D:DF:D4:4F:33 Failed to connect: org.bluez.Error.Failed"

Edit: if I remove the device and pair again:

[bluetooth]# pair 00:1D:DF:D4:4F:33
Attempting to pair with 00:1D:DF:D4:4F:33
[CHG] Device 00:1D:DF:D4:4F:33 Connected: yes
[CHG] Device 00:1D:DF:D4:4F:33 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1D:DF:D4:4F:33 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1D:DF:D4:4F:33 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1D:DF:D4:4F:33 Paired: yes
Pairing successful
[CHG] Device 00:1D:DF:D4:4F:33 Connected: no
[CHG] Device 00:1D:DF:D4:4F:33 Connected: yes
[CHG] Device 00:1D:DF:D4:4F:33 Connected: no
[bluetooth]# connect 00:1D:DF:D4:4F:33
Attempting to connect to 00:1D:DF:D4:4F:33
Failed to connect: org.bluez.Error.Failed

strace has this to say

sendmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"l\1\0\1\0\0\0\0\27\0\0\0x\0\0\0\1\1o\0%\0\0\0/org/bluez/hci0/dev_00_1D_DF_D4_4F_33\0\0\0\6\1s\0\t\0\0\0org.bluez\0\0\0\0\0\0\0\2\1s\0\21\0\0\0org.bluez.Device1\0\0\0\0\0\0\0\3\1s\0\7\0\0\0Connect\0", 136}, {"", 0}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 136
write(1, "Attempting to connect to 00:1D:D"..., 43) = 43
ioctl(0, TIOCGWINSZ, {ws_row=53, ws_col=183, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, TIOCSWINSZ, {ws_row=53, ws_col=183, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
write(1, "\33[0;94m[bluetooth]\33[0m# ", 24) = 24
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
poll([{fd=0, events=POLLIN}, {fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 4, 300000) = 1 ([{fd=3, revents=POLLIN}])
poll([{fd=0, events=POLLIN}, {fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 4, 300000) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\2\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=0, events=POLLIN}, {fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 4, 299999) = 1 ([{fd=4, revents=POLLIN}])
read(3, 0x7ffc3968e9f0, 16)             = -1 EAGAIN (Resource temporarily unavailable)

manually trying:

sudo dbus-send  --system --dest=org.bluez --print-reply /org/bluez/hci0/dev_00_1D_DF_D4_4F_33 org.bluez.Device1.Connect
Error org.bluez.Error.Failed: No such file or directory

but qdbusviewer definitely sees the path.

Running as non-root makes no difference. It seems to miss some file but what??

Last edited by chx (2015-06-10 09:28:23)

Offline

Board footer

Powered by FluxBB