LINUX.ORG.RU

Bluetooth в Linux - опять облом

 , , как я устал


0

1

Debian 8.6, KDE 4.14.2

Хотел скинуть картинку на телефон через блюпуп адаптер.

# lsusb
Bus 003 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Втыкнул его, ничего не произошло. Пославил метапакет bluetooth. Он потянул за собой bluez. Все встало без проблем, но на рабочем столе при втыкании адаптера ничего не происходит. Смотрю модули ядра. Вроде модуль есть:

# lsmod | grep blue
bluetooth             103750  1 btusb
rfkill                 18516  1 bluetooth
crc16                  12327  1 bluetooth


Решил посмотреть, а есть хоть какой процесс, который за bluetooth отвечает. Такого процесса нет:

# ps aux | grep blue
root     12765  0.0  0.0   4572   932 pts/0    S+   23:03   0:00 grep blue

Стал читать доку. Там написано, что ежели процесса нет, надо демона вручную запустить. Запускаю:
# /etc/init.d/bluetooth start
[ ok ] Starting bluetooth: bluetoothd.

И проверяю. Тут облом:
# /etc/init.d/bluetooth status
[FAIL] bluetooth is not running ... failed!

Дальше мысли кончаются. Насколько я понимаю, пока демон не запустится, ничего работать не будет, и искать вменяемый гуишный интерфейс бессмысленно. Куда копать?

★★★★★

Последнее исправление: Xintrea (всего исправлений: 1)

гм. если демон запустился и умер, значит нужно в логи глянуть. Обычно помогает...

vel ★★★★★
()
Ответ на: комментарий от vel

Ну вот единственное что нашел в /var/log/daemon.log:

May 20 22:54:43 pangolinux dbus[2079]: [system] Reloaded configuration
May 20 22:54:43 pangolinux bluetoothd[12248]: Bluetooth daemon 5.23
May 20 22:54:43 pangolinux bluetoothd[12248]: Failed to access management interface
May 20 22:54:43 pangolinux bluetoothd[12248]: Adapter handling initialization failed
May 20 22:54:43 pangolinux dbus[2079]: [system] Reloaded configuration
May 20 22:57:18 pangolinux bluetoothd[12394]: Bluetooth daemon 5.23
May 20 22:57:18 pangolinux bluetoothd[12394]: Failed to access management interface
May 20 22:57:18 pangolinux bluetoothd[12394]: Adapter handling initialization failed

Мне эта чертовщина ни о чем не говорит.

Тот же самый временной промежуток в /var/log/syslog:

May 20 22:54:43 pangolinux dbus[2079]: [system] Reloaded configuration
May 20 22:54:43 pangolinux bluetoothd[12248]: Bluetooth daemon 5.23
May 20 22:54:43 pangolinux bluetoothd[12248]: Failed to access management interface
May 20 22:54:43 pangolinux bluetoothd[12248]: Adapter handling initialization failed
May 20 22:54:43 pangolinux dbus[2079]: [system] Reloaded configuration
May 20 22:55:01 pangolinux CRON[12295]: (root) CMD (/usr/bin/gputemp.sh)
May 20 22:55:01 pangolinux CRON[12296]: (root) CMD (   /usr/bin/gputemp.sh)
May 20 22:55:02 pangolinux CRON[12309]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
May 20 22:55:02 pangolinux sSMTP[12311]: Creating SSL connection to host
May 20 22:55:02 pangolinux sSMTP[12312]: Creating SSL connection to host
May 20 22:55:02 pangolinux sSMTP[12311]: SSL connection using RSA_AES_128_CBC_SHA1
May 20 22:55:02 pangolinux sSMTP[12312]: SSL connection using RSA_AES_128_CBC_SHA1
May 20 22:55:04 pangolinux sSMTP[12311]: Sent mail for root@gmail.com (221 2.0.0 closing connection o138sm1611624lfo.55 - gsmtp) uid=0 username=root outbytes=665
May 20 22:55:05 pangolinux sSMTP[12312]: Sent mail for root@gmail.com (221 2.0.0 closing connection s18sm2177096ljd.3 - gsmtp) uid=0 username=root outbytes=615
May 20 22:56:01 pangolinux CRON[12319]: (root) CMD (/usr/bin/gputemp.sh)
May 20 22:56:01 pangolinux CRON[12320]: (root) CMD (   /usr/bin/gputemp.sh)
May 20 22:56:01 pangolinux sSMTP[12334]: Creating SSL connection to host
May 20 22:56:01 pangolinux sSMTP[12333]: Creating SSL connection to host
May 20 22:56:02 pangolinux sSMTP[12334]: SSL connection using RSA_AES_128_CBC_SHA1
May 20 22:56:02 pangolinux sSMTP[12333]: SSL connection using RSA_AES_128_CBC_SHA1
May 20 22:56:04 pangolinux sSMTP[12334]: Sent mail for root@gmail.com (221 2.0.0 closing connection h72sm2222588ljh.57 - gsmtp) uid=0 username=root outbytes=615
May 20 22:56:05 pangolinux sSMTP[12333]: Sent mail for root@gmail.com (221 2.0.0 closing connection 22sm2183964ljv.67 - gsmtp) uid=0 username=root outbytes=665
May 20 22:57:01 pangolinux CRON[12347]: (root) CMD (   /usr/bin/gputemp.sh)
May 20 22:57:01 pangolinux CRON[12354]: (root) CMD (/usr/bin/gputemp.sh)
May 20 22:57:01 pangolinux sSMTP[12362]: Creating SSL connection to host
May 20 22:57:01 pangolinux sSMTP[12361]: Creating SSL connection to host
May 20 22:57:01 pangolinux sSMTP[12362]: SSL connection using RSA_AES_128_CBC_SHA1
May 20 22:57:01 pangolinux sSMTP[12361]: SSL connection using RSA_AES_128_CBC_SHA1
May 20 22:57:03 pangolinux sSMTP[12362]: Sent mail for root@gmail.com (221 2.0.0 closing connection a79sm2134170ljb.54 - gsmtp) uid=0 username=root outbytes=615
May 20 22:57:04 pangolinux sSMTP[12361]: Sent mail for root@gmail.com (221 2.0.0 closing connection a17sm1659402lfg.51 - gsmtp) uid=0 username=root outbytes=665
May 20 22:57:18 pangolinux bluetoothd[12394]: Bluetooth daemon 5.23
May 20 22:57:18 pangolinux bluetoothd[12394]: Failed to access management interface
May 20 22:57:18 pangolinux bluetoothd[12394]: Adapter handling initialization failed
Xintrea ★★★★★
() автор топика
Последнее исправление: Xintrea (всего исправлений: 1)
Ответ на: комментарий от vel

Вот еще.

[ 8804.272012] usb 3-2: new full-speed USB device number 2 using uhci_hcd
[ 8804.441029] usb 3-2: New USB device found, idVendor=0a12, idProduct=0001
[ 8804.441033] usb 3-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 8804.484616] Bluetooth: Generic Bluetooth USB driver ver 0.6
[ 8804.485467] usbcore: registered new interface driver btusb
[ 9008.120211] NET: Registered protocol family 38
...
[12642.712047] usb 3-2: USB disconnect, device number 2
[12642.714037] Bluetooth: hci0 urb efc8aec0 submission failed
...
[12648.056013] usb 3-2: new full-speed USB device number 3 using uhci_hcd
[12648.281031] usb 3-2: New USB device found, idVendor=0a12, idProduct=0001
[12648.281034] usb 3-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

Все нормально. Строка «Bluetooth: hci0 urb efc8aec0 submission failed» появляется когда вытаскивается адаптер.

Так что на аппаратном уровне проблем похоже нет, тем более что на ноуте под виндой работает.

Xintrea ★★★★★
() автор топика
Последнее исправление: Xintrea (всего исправлений: 2)

Поражены вашей неудачей сударь, по usb шнурку всё кидается, тупо как на флэшку или через libmtp.

anonymous
()

У bluetoothd есть --debug=* или как-то так. Кроме того, если в твоей сборке bluez не выпилили hcitool/hciconfig/hcidump/etc, то можно потыкать. Они вроде работали и без демона.

sergej ★★★★★
()
Ответ на: комментарий от sergej

Прочитал ман по bluetoothd, как пользоваться --debug=* не понял.

hcitool/hciconfig/hcidump/etc - там нету гуя, а мне бы просто файлик на телефон скопировать.

Xintrea ★★★★★
() автор топика

Юнит включили? # systemctl enable bluetooth Перезагрузились?

rbh-17m
()

Он потянул за собой bluez.

Постоянно с ним проблемы, от обновления к обновлению что-нибудь отламывается/чинится.

aplay ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.