Fórum Root.cz
Hlavní témata => Hardware => Téma založeno: crown 21. 03. 2021, 00:29:45
-
Mám problém s jedněmi bluetooth sluchátky. Druhá sluchátka, co mám se chovají baz problémů.
Linux Mint 20.1 mate
Sluchátka hid-generic 0005:05D6:000A.0002: input,hidraw0: BLUETOOTH HID v2.40 Device [SBKP 4 A1] on 28:b2:bd:8a:41:2e
Verze bluez je Version: 5.53-0ubuntu3
Pokud sluchátka nově spáruju s počítačem, tak fungují v pořádku
Když je následně vypnu a za chvíli zapnu, tak dole ikona píše connected to SBKP 4 A1, ale audio do sluchátek nejde. V pavucontrol bluetooth nevidím. Mačkání tlačítka play/pause na sluchátkách nepomůže.
Po asi minutě se sluchátka samy odpojí.
Když v buetooth kliknu na zařízení + na connection, tak se opět připojí a většinou to už jde. Stejně tak, když v době, kdy jsou ještě připojená kliknu na connection (odpojím) a opět connection (připojím), tak zvuk jde.
Jak udělám, aby se po zapnutí sluchátek samy připojily (stejně jako se mi tak chovají druhá sluchátka)? Kde najdu bluetooth log, abych viděl, co se tam děje?
Díky za nasměrování
-
Posli dmesg celeho toho procesu zapojovani odpojovani..
-
Zapnu pocitac
pustim dmesg, abych videl, co je posledni zapis
Zapnu bluetooth sluchatka. Ikonka vpravo dole pise Bluetooth:Connected to SBKP 4 A1
V dmesg neni zadny novy zaznam
Kliknu na bluetooth a vidim, ze jsou sluchatka connected. Kliknu na odpojit.
V dmesg neni zadny novy zaznam
Kliknu znovu v bluetooth na sluchatka a connect.
V dmesg se objevi
[12007.898043] input: SBKP 4 A1 (AVRCP) as /devices/virtual/input/input34
[12007.923121] hid-generic 0005:05D6:000A.0007: unknown main item tag 0x0
[12007.923278] input: SBKP 4 A1 Consumer Control as /devices/pci0000:00/0000:00:14.0/usb2/2-11/2-11:1.0/bluetooth/hci0/hci0:256/0005:05D6:000A.0007/input/input35
[12007.923509] hid-generic 0005:05D6:000A.0007: input,hidraw0: BLUETOOTH HID v2.40 Device [SBKP 4 A1] on 28:b2:bd:8a:41:2e
Vypnu sluchatka.
V dmesg se neobjevi zadny dalsi zaznam
Je nekde podrobnejsi logovani bluetooth?
-
Tady se mi podarilo stahnout log pomoci btmon. Ke konci pise connection refused. Poznate z toho nekdo proc a co s tim?
Diky
Bluetooth monitor ver 5.53
= Note: Linux version 5.4.0-67-generic (x86_64) 0.401342
= Note: Bluetooth subsystem version 2.22 0.401344
= New Index: 28:B2:BD:8A:41:2E (Primary,USB,hci0) [hci0] 0.401345
= Open Index: 28:B2:BD:8A:41:2E [hci0] 0.401345
= Index Info: 28:B2:BD:8A:41:2E (Intel Corp.) [hci0] 0.401346
@ MGMT Open: bluetoothd (privileged) version 1.14 {0x0001} 0.401347
@ MGMT Open: btmon (privileged) version 1.14 {0x0002} 0.401418
> HCI Event: Connect Request (0x04) plen 10 #1 [hci0] 10.735431
Address: 20:10:30:E7:85:8D (OUI 20-10-30)
Class: 0x240404
Major class: Audio/Video (headset, speaker, stereo, video, vcr)
Minor class: Wearable Headset Device
Rendering (Printing, Speaker)
Audio (Speaker, Microphone, Headset)
Link type: ACL (0x01)
< HCI Command: Accept Connection Re.. (0x01|0x0009) plen 7 #2 [hci0] 10.735546
Address: 20:10:30:E7:85:8D (OUI 20-10-30)
Role: Master (0x00)
> HCI Event: Command Status (0x0f) plen 4 #3 [hci0] 10.736495
Accept Connection Request (0x01|0x0009) ncmd 1
Status: Success (0x00)
> HCI Event: Role Change (0x12) plen 8 #4 [hci0] 10.873496
Status: Success (0x00)
Address: 20:10:30:E7:85:8D (OUI 20-10-30)
Role: Master (0x00)
> HCI Event: Link Key Request (0x17) plen 6 #5 [hci0] 10.877491
Address: 20:10:30:E7:85:8D (OUI 20-10-30)
< HCI Command: Link Key Request Re.. (0x01|0x000b) plen 22 #6 [hci0] 10.877602
Address: 20:10:30:E7:85:8D (OUI 20-10-30)
Link key: 02e89f0b33ce9e9c670facc403fa9a3c
> HCI Event: Command Complete (0x0e) plen 10 #7 [hci0] 10.878452
Link Key Request Reply (0x01|0x000b) ncmd 1
Status: Success (0x00)
Address: 20:10:30:E7:85:8D (OUI 20-10-30)
> HCI Event: Vendor (0xff) plen 4 #8 [hci0] 10.923426
Intel PTT Switch Notification (0x26)
Handle: 256
Packet type table: Enhanced data rate (0x01)
> HCI Event: Connect Complete (0x03) plen 11 #9 [hci0] 10.929493
Status: Success (0x00)
Handle: 256
Address: 20:10:30:E7:85:8D (OUI 20-10-30)
Link type: ACL (0x01)
Encryption: Enabled (0x01)
< HCI Command: Read Remote Support.. (0x01|0x001b) plen 2 #10 [hci0] 10.929756
Handle: 256
> ACL Data RX: Handle 256 flags 0x02 dlen 10 #11 [hci0] 10.930316
L2CAP: Information Request (0x0a) ident 1 len 2
Type: Extended features supported (0x0002)
> HCI Event: Command Status (0x0f) plen 4 #12 [hci0] 10.931410
Read Remote Supported Features (0x01|0x001b) ncmd 1
Status: Success (0x00)
> HCI Event: Max Slots Change (0x1b) plen 3 #13 [hci0] 10.944484
Handle: 256
Max slots: 5
> HCI Event: Read Remote Supported Featu.. (0x0b) plen 11 #14 [hci0] 10.946423
Status: Success (0x00)
Handle: 256
Features: 0xbf 0xfe 0x8d 0xfa 0xc8 0x2d 0x79 0x83
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Sniff mode
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
u-law log synchronous data
A-law log synchronous data
CVSD synchronous data
Power control
Transparent synchronous data
Broadcast Encryption
Enhanced Data Rate ACL 2 Mbps mode
Enhanced inquiry scan
Interlaced inquiry scan
Interlaced page scan
RSSI with inquiry results
Extended SCO link (EV3 packets)
AFH capable slave
LE Supported (Controller)
3-slot Enhanced Data Rate ACL packets
5-slot Enhanced Data Rate ACL packets
Pause encryption
AFH capable master
Enhanced Data Rate eSCO 2 Mbps mode
Extended Inquiry Response
Secure Simple Pairing
Encapsulated PDU
Erroneous Data Reporting
Non-flushable Packet Boundary Flag
Link Supervision Timeout Changed Event
Inquiry TX Power Level
Extended features
< HCI Command: Read Remote Extende.. (0x01|0x001c) plen 3 #15 [hci0] 10.946511
Handle: 256
Page: 1
> HCI Event: Command Status (0x0f) plen 4 #16 [hci0] 10.947483
Read Remote Extended Features (0x01|0x001c) ncmd 1
Status: Success (0x00)
> HCI Event: Read Remote Extended Features (0x23) plen 13 #17 [hci0] 10.952484
Status: Success (0x00)
Handle: 256
Page: 1/1
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Secure Simple Pairing (Host Support)
< HCI Command: Remote Name Request (0x01|0x0019) plen 10 #18 [hci0] 10.952554
Address: 20:10:30:E7:85:8D (OUI 20-10-30)
Page scan repetition mode: R2 (0x02)
Page scan mode: Mandatory (0x00)
Clock offset: 0x0000
< ACL Data TX: Handle 256 flags 0x00 dlen 10 #19 [hci0] 10.952564
L2CAP: Information Request (0x0a) ident 1 len 2
Type: Extended features supported (0x0002)
< ACL Data TX: Handle 256 flags 0x00 dlen 16 #20 [hci0] 10.952577
L2CAP: Information Response (0x0b) ident 1 len 8
Type: Extended features supported (0x0002)
Result: Success (0x0000)
Features: 0x000002b8
Enhanced Retransmission Mode
Streaming Mode
FCS Option
Fixed Channels
Unicast Connectionless Data Reception
> HCI Event: Command Status (0x0f) plen 4 #21 [hci0] 10.953443
Remote Name Request (0x01|0x0019) ncmd 1
Status: Success (0x00)
> HCI Event: Number of Completed Packets (0x13) plen 5 #22 [hci0] 10.955479
Num handles: 1
Handle: 256
Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 16 #23 [hci0] 10.956669
L2CAP: Information Response (0x0b) ident 1 len 8
Type: Extended features supported (0x0002)
Result: Success (0x0000)
Features: 0x00000000
> HCI Event: Number of Completed Packets (0x13) plen 5 #24 [hci0] 10.958452
Num handles: 1
Handle: 256
Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 12 #25 [hci0] 10.961653
L2CAP: Connection Request (0x02) ident 1 len 4
PSM: 1 (0x0001)
Source CID: 64
@ MGMT Event: Device Connected (0x000b) plen 18 {0x0002} [hci0] 10.961719
BR/EDR Address: 20:10:30:E7:85:8D (OUI 20-10-30)
Flags: 0x00000000
Data length: 5
Class: 0x240404
Major class: Audio/Video (headset, speaker, stereo, video, vcr)
Minor class: Wearable Headset Device
Rendering (Printing, Speaker)
Audio (Speaker, Microphone, Headset)
@ MGMT Event: Device Connected (0x000b) plen 18 {0x0001} [hci0] 10.961719
BR/EDR Address: 20:10:30:E7:85:8D (OUI 20-10-30)
Flags: 0x00000000
Data length: 5
Class: 0x240404
Major class: Audio/Video (headset, speaker, stereo, video, vcr)
Minor class: Wearable Headset Device
Rendering (Printing, Speaker)
Audio (Speaker, Microphone, Headset)
< ACL Data TX: Handle 256 flags 0x00 dlen 16 #26 [hci0] 10.961753
L2CAP: Connection Response (0x03) ident 1 len 8
Destination CID: 64
Source CID: 64
Result: Connection successful (0x0000)
Status: No further information available (0x0000)
< ACL Data TX: Handle 256 flags 0x00 dlen 12 #27 [hci0] 10.961761
L2CAP: Configure Request (0x04) ident 2 len 4
Destination CID: 64
Flags: 0x0000
> HCI Event: Number of Completed Packets (0x13) plen 5 #28 [hci0] 10.965428
Num handles: 1
Handle: 256
Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 16 #29 [hci0] 10.966616
L2CAP: Configure Request (0x04) ident 2 len 8
Destination CID: 64
Flags: 0x0000
Option: Maximum Transmission Unit (0x01) [mandatory]
MTU: 716
< ACL Data TX: Handle 256 flags 0x00 dlen 18 #30 [hci0] 10.966655
L2CAP: Configure Response (0x05) ident 2 len 10
Source CID: 64
Flags: 0x0000
Result: Success (0x0000)
Option: Maximum Transmission Unit (0x01) [mandatory]
MTU: 716
> HCI Event: Number of Completed Packets (0x13) plen 5 #31 [hci0] 10.967428
Num handles: 1
Handle: 256
Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 14 #32 [hci0] 10.969100
L2CAP: Configure Response (0x05) ident 2 len 6
Source CID: 64
Flags: 0x0000
Result: Success (0x0000)
> HCI Event: Number of Completed Packets (0x13) plen 5 #33 [hci0] 10.970430
Num handles: 1
Handle: 256
Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 24 #34 [hci0] 10.974099
Channel: 64 len 20 [PSM 1 mode Basic (0x00)] {chan 0}
SDP: Service Search Attribute Request (0x06) tid 1 len 15
Search pattern: [len 6]
Sequence (6) with 3 bytes [16 extra bits] len 6
UUID (3) with 2 bytes [0 extra bits] len 3
Handsfree Audio Gateway (0x111f)
Max record count: 512
Attribute list: [len 6]
Sequence (6) with 3 bytes [16 extra bits] len 6
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0004
Continuation state: 0
< ACL Data TX: Handle 256 flags 0x00 dlen 14 #35 [hci0] 10.974367
Channel: 64 len 10 [PSM 1 mode Basic (0x00)] {chan 0}
SDP: Service Search Attribute Response (0x07) tid 1 len 5
Attribute bytes: 2
Continuation state: 0
> HCI Event: Remote Name Req Complete (0x07) plen 255 #36 [hci0] 10.976427
Status: Success (0x00)
Address: 20:10:30:E7:85:8D (OUI 20-10-30)
Name: SBKP 4 A1
> HCI Event: Number of Completed Packets (0x13) plen 5 #37 [hci0] 10.978428
Num handles: 1
Handle: 256
Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 24 #38 [hci0] 10.979096
Channel: 64 len 20 [PSM 1 mode Basic (0x00)] {chan 0}
SDP: Service Search Attribute Request (0x06) tid 2 len 15
Search pattern: [len 6]
Sequence (6) with 3 bytes [16 extra bits] len 6
UUID (3) with 2 bytes [0 extra bits] len 3
AVDTP (0x0019)
Max record count: 512
Attribute list: [len 6]
Sequence (6) with 3 bytes [16 extra bits] len 6
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0004
Continuation state: 0
< ACL Data TX: Handle 256 flags 0x00 dlen 60 #39 [hci0] 10.979318
Channel: 64 len 56 [PSM 1 mode Basic (0x00)] {chan 0}
SDP: Service Search Attribute Response (0x07) tid 2 len 51
Attribute bytes: 48
Attribute list: [len 21] {position 0}
Attribute: Protocol Descriptor List (0x0004) [len 2]
Sequence (6) with 6 bytes [8 extra bits] len 8
UUID (3) with 2 bytes [0 extra bits] len 3
L2CAP (0x0100)
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0019
Sequence (6) with 6 bytes [8 extra bits] len 8
UUID (3) with 2 bytes [0 extra bits] len 3
AVDTP (0x0019)
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0103
Attribute list: [len 21] {position 1}
Attribute: Protocol Descriptor List (0x0004) [len 2]
Sequence (6) with 6 bytes [8 extra bits] len 8
UUID (3) with 2 bytes [0 extra bits] len 3
L2CAP (0x0100)
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0019
Sequence (6) with 6 bytes [8 extra bits] len 8
UUID (3) with 2 bytes [0 extra bits] len 3
AVDTP (0x0019)
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0103
Continuation state: 0
> HCI Event: Number of Completed Packets (0x13) plen 5 #40 [hci0] 10.984429
Num handles: 1
Handle: 256
Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 10 #41 [hci0] 10.985339
L2CAP: Information Request (0x0a) ident 3 len 2
Type: Extended features supported (0x0002)
< ACL Data TX: Handle 256 flags 0x00 dlen 16 #42 [hci0] 10.985379
L2CAP: Information Response (0x0b) ident 3 len 8
Type: Extended features supported (0x0002)
Result: Success (0x0000)
Features: 0x000002b8
Enhanced Retransmission Mode
Streaming Mode
FCS Option
Fixed Channels
Unicast Connectionless Data Reception
> HCI Event: Number of Completed Packets (0x13) plen 5 #43 [hci0] 10.989431
Num handles: 1
Handle: 256
Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 12 #44 [hci0] 10.990333
L2CAP: Connection Request (0x02) ident 3 len 4
PSM: 25 (0x0019)
Source CID: 65
< ACL Data TX: Handle 256 flags 0x00 dlen 16 #45 [hci0] 10.990375
L2CAP: Connection Response (0x03) ident 3 len 8
Destination CID: 0
Source CID: 65
Result: Connection refused - security block (0x0003)
Status: No further information available (0x0000)
> HCI Event: Number of Completed Packets (0x13) plen 5 #46 [hci0] 10.994428
Num handles: 1
Handle: 256
Count: 1
-
Je zařízení nastavené jako trusted?
bluetoothctl info
-
Tady to vypada v poradku, nicmene zvuk nejde a btmon hlasi stale stejne
filip@filip-ThinkPad-T540p:~$ bluetoothctl info
Device 20:10:30:E7:85:8D (public)
Name: SBKP 4 A1
Alias: SBKP 4 A1
Class: 0x00240404
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
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)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
Modalias: bluetooth:v05D6p000Ad0240
btmon beze zmeny, lepim jen konec
< ACL Data TX: Handle 256 flags 0x00 dlen 16 #45 [hci0] 24.922390
L2CAP: Connection Response (0x03) ident 3 len 8
Destination CID: 0
Source CID: 65
Result: Connection refused - security block (0x0003)
Status: No further information available (0x0000)
-
Ok... Ještě se dá získat log bluetoothd (aspoň teda na Ubuntu: zastavit systemctl stop bluetooth.service, spustit bluetoothd -d. Pak loguje do /var/log/syslog). Třeba tam něco bude, víc k tomu asi neřeknu.