LINUX.ORG.RU

Bluetooth, почему ты не работаешь?

 ,


1

2

Здравствуйте. В bluetoothctl не может найти устройство

Сначало я сделал:

yay -S bluez bluez-utils-compat blueman --noconfirm
sudo systemctl enable bluetooth
sudo systemctl start bluetooth

Добавил модуль:

sudo modprobe btusb
$ bluetoothctl
Agent registered
[bluetooth]# devices
No default controller available

Логи

$ sudo lsmod | grep bluetooth 
bluetooth             741376  13 btrtl,btintel,btbcm,bnep,ath3k,btusb
ecdh_generic           16384  1 bluetooth
rfkill                 28672  6 acer_wmi,bluetooth,cfg80211
crc16                  16384  2 bluetooth,ext4

$ sudo hcitool dev
Devices:

$ sudo dmesg | grep Blue
[    8.329145] Bluetooth: Core ver 2.22
[    8.329181] Bluetooth: HCI device and connection manager initialized
[    8.329187] Bluetooth: HCI socket layer initialized
[    8.329190] Bluetooth: L2CAP socket layer initialized
[    8.329195] Bluetooth: SCO socket layer initialized
[    8.558281] Bluetooth: hci0: don't support firmware rome 0x11020000
[   15.055642] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   15.055647] Bluetooth: BNEP filters: protocol multicast
[   15.055654] Bluetooth: BNEP socket layer initialized

$ sudo rfkill list
0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: no
3: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

$ sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Fri 2021-01-29 15:48:06 UTC; 18min ago
       Docs: man:bluetoothd(8)
   Main PID: 317 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4478)
     Memory: 2.7M
     CGroup: /system.slice/bluetooth.service
             └─317 /usr/lib/bluetooth/bluetoothd

янв 29 15:48:06 user bluetoothd[317]: src/main.c:parse_controller_config() Key file does not have key “LEScanInterval>
янв 29 15:48:06 user bluetoothd[317]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowCo>
янв 29 15:48:06 user bluetoothd[317]: src/main.c:parse_controller_config() Key file does not have key “LEMinConnectio>
янв 29 15:48:06 user bluetoothd[317]: src/main.c:parse_controller_config() Key file does not have key “LEMaxConnectio>
янв 29 15:48:06 user bluetoothd[317]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionLa>
янв 29 15:48:06 user bluetoothd[317]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionSu>
янв 29 15:48:06 user bluetoothd[317]: src/main.c:parse_controller_config() Key file does not have key “LEAutoconnectt>
янв 29 15:48:06 user systemd[1]: Started Bluetooth service.
янв 29 15:48:06 user bluetoothd[317]: Starting SDP server
янв 29 15:48:06 user bluetoothd[317]: Bluetooth management interface 1.18 initialized

Ваши догадки, как чинить?

$ bluetoothctl

Надо от рута.

Стоит попробовать так:

# modprobe -v rfcomm
# hcitool dev
# hciconfig hci0 up
# bluetoothctl
[bluetooth]# power off
[bluetooth]# power on
[bluetooth]# list
poettering
()
Ответ на: комментарий от Why_so_angry

Не, я просто подсказываю, что эти 2 команды можно было заменить однной. По твоей проблеме ничего не подскажу так как не знаю.

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

Попробовал, все по прежнему. Вот вывод:

# modprobe -v rfcomm
# hcitool dev
Devices:
# hciconfig hci0 up
Can't init device hci0: Input/output error (5)
# bluetoothctl
Agent registered
[bluetooth]# power off
No default controller available
[bluetooth]# power on
No default controller available
[bluetooth]# 
Why_so_angry
() автор топика
Ответ на: комментарий от Why_so_angry

Баг на уровне ядра. Варианта 2:

1. Пересобирать модуль btusb для нового ядра с патчем.

2. Поставить стабильное ядро linux-lts и ждать пока в новом ядре починят баг.

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