Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth Problem with Macbook Pro 16,2 #155

Open
kami83 opened this issue Jul 10, 2020 · 12 comments
Open

Bluetooth Problem with Macbook Pro 16,2 #155

kami83 opened this issue Jul 10, 2020 · 12 comments

Comments

@kami83
Copy link

kami83 commented Jul 10, 2020

Hi,

i am using a MBP 2020 with Linux.

  • Bluetooth is also not working. Has anyone tested this?

Thanks a lot.

Cu kami

@bepstein
Copy link
Contributor

Hi Cu,

I'm also trying to get it working on a MacBookPro 16,2. Were you able to get the keyboard and trackpad working? I haven't even gotten to Bluetooth or Wi-Fi at this point.

Thanks,
Brian

@kami83
Copy link
Author

kami83 commented Jul 30, 2020

Hi,
yes the keyboard and the trackpad is working with the bcme driver. BT and Wifi ist still open.

Tell me if you find something new.

BG kami

@bepstein
Copy link
Contributor

bepstein commented Aug 3, 2020 via email

@kami83
Copy link
Author

kami83 commented Aug 4, 2020

Hi,

sorry i mean the bce driver from here : https://github.com/MCMrARM/mbp2018-bridge-drv

Cu kami

@Dunedan
Copy link
Owner

Dunedan commented Sep 10, 2020

Any updates regarding Bluetooth on the MacBookPro16,2? Did you manage to get it working?

@bepstein
Copy link
Contributor

bepstein commented Sep 10, 2020 via email

@kami83
Copy link
Author

kami83 commented Sep 11, 2020

Hi, for me, too. Nothing new. Any Help??
Cu kami

@snorez
Copy link

snorez commented Nov 28, 2020

Any updates on MacBookPro16.2?

@Redecorating
Copy link

This patch will fix it https://lore.kernel.org/lkml/20211002032810.3729-1-redecorating@protonmail.com/T/#u

Hopefully it'll make it's way into the upstream kernel soon.

@Redecorating
Copy link

That patch is in 5.16, but it seems like the bluetooth controller is sending junk and deformed packets (could be an issue with the uart), after the first few commands are sent to it.

If you want to see the bluetooth trace, download this, gunzip it and use btmon -r on it.
MBP162.btsnoop.gz

There's thousands of = Vendor Diagnostic (len 0) and then various invalid packets, i.e.

> ACL Data RX: Handle 16 flags 0x08 dlen 256                             
        invalid packet flags (0x08)
        02 10 80 00 00 00 00 00 c0 0a 50 2e 00 01 02 10  ..........P.....
        80 00 01 02 10 80 00 00 00 00 00 80 08 0a 12 80  ................
        00 00 00 00 b8 51 88 36 00 30 12 f2 1d 80 70 12  .....Q.6.0....p.
        72 07 30 ee 16 f2 07 30 fe 16 fa 07 30 ff 12 fa  r.0....0....0...
        07 10 ff 14 f2 07 10 ff 14 f2 07 30 ff 16 fa 03  ...........0....
        10 ff 14 c2 ca 16 fd 90 0a 08 49 67 fd 33 bf d6  ..........Ig.3..
        1c 80 00 e0 80 1f fa 02 10 d1 04 02 16 80 60 06  ..............`.
        02 17 80 07 c7 c7 c7 50 80 c0 01 08 40 00 00 00  .......P....@...
        39 7c 02 10 80 78 c3 c7 c7 d7 d9 ec 20 02 10 c7  9|...x...... ...
        c3 c3 b3 4f ff ff 00 00 00 00 00 00 6f 8a 06 10  ...O........o...
        80 f8 c3 c3 c3 33 94 50 83 19 0a 40 00 00 00 7c  .....3.P...@...|
        0b 10 b8 00 01 02 10 80 00 01 02 10 80 00 08 fa  ................
        e8 37 3a 10 fc 59 3a 10 fa 00 00 80 29 02 11 80  .7:..Y:.....)...
        00 00 00 00 81 71 02 10 80 78 c3 c7 c7 33 94 50  .....q...x...3.P
        83 1d 0a 40 00 00 00 40 02 10 b8 00 00 00 00 00  ...@...@........
        ff 00 00 00 00 00 00 00 3c 02 10 98 00 80 02 10  ........<.......

@Redecorating
Copy link

It was a uart issue, the clock speed was wrong, hence the random data. https://lore.kernel.org/lkml/20211120083312.41230-1-redecorating@protonmail.com/T/#u

Now it's failing to power on the controller:

@ MGMT Command: Set Powered (0x0005) plen 1                    
        Powered: Enabled (0x01)
@ MGMT Event: Command Status (0x0002) plen 3                   
      Set Powered (0x0005)
        Status: RFKilled (0x12)
= bluetoothd: Failed to set mode: Blocked through rfkill (0x12)

I feel like it might be hard or soft blocked in rfkill (can someone check this?). Maybe those acpi methods for bluetooth aren't being used?

@Redecorating
Copy link

I'm told it works with the correct clock speed for uart after unblocking with rfkill and restarting the bluetooth service, so I think this

@ MGMT Command: Set Powered (0x0005) plen 1                    
        Powered: Enabled (0x01)
@ MGMT Event: Command Status (0x0002) plen 3                   
      Set Powered (0x0005)
        Status: RFKilled (0x12)
= bluetoothd: Failed to set mode: Blocked through rfkill (0x12)

was just because it was rfkill blocked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants