daliansky / XiaoMi-Pro-Hackintosh

XiaoMi NoteBook Pro Hackintosh
BSD Zero Clause License
2.61k stars 471 forks source link

Disabling the Internal Bluetooth #24

Closed macguru341 closed 6 years ago

macguru341 commented 6 years ago

Hello Thanks for all the support for this machine. Just wondering, if the internal Bluetooth isn’t working why don’t you update the clover folder with some patch that will disable it and will give us the option to use external dongle ? I’m sure you can do it fast as I see you are the master of this hack. I tried do it by myself and share it but I was working on it for the last 2 weeks without success .

Hope you can help us Thanks

stevezhengshiqi commented 6 years ago

Hi, I can help you with disabling internal Bluetooth. The reason why our clover folder leaves it open is that it can be activated in someway. For example, you can first start Windows and then restart in MacOS to activate bluetooth. In addition, we think that we should leave the choice to public and let them decide to disable the bluetooth or not, instead of us.

Since you have worked on it for last 2 weeks so I believe you have read this thread https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/.

If you want to use an external BT dongle, please read Rehabman's repository: https://github.com/RehabMan/OS-X-BrcmPatchRAM

SSDT-USB.aml.zip

UPDATE: The archive is updated on 13th August, 2018.

EDIT: The newest EFI release uses a new USB Injection method, please replace the following archive with the one in /EFI/CLOVER/kexts/Other/ to disable BT. USBPorts.kext.zip

macguru341 commented 6 years ago

God....thanks a lot for your help , I will try it later in the night

macguru341 commented 6 years ago

thanks - that works great

orditeck commented 6 years ago

Exactly what I was looking for, thanks @stevezhengshiqi! This should be included in the README IMO 😊

stevezhengshiqi commented 6 years ago

@orditeck Thank you for your advice. I will add it.

Delitants commented 6 years ago

I've noticed that it breaks 1st USB 3 port from the top. I kept .aml file but reverted your USBInjectAll.kext back to what I had before. Now internal BT still off, and USB port started working.

stevezhengshiqi commented 6 years ago

@Neolo USBInjectAll should be the original one from Rehabman's github(daliansky's EFI has modified USBInjectAll.kext; and I discover that he deleted two USB 3.0 ports). Using a hotpatch(SSDT-USB.aml) to modify the port information is highly recommended.

If you use my EFI in my github and follow the instrictions above, everything should work fine because I carefully follow the guide https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/.

Delitants commented 6 years ago

At first I used your SSDT-USB.aml and the kext from Archive.zip, you've attached earlier, that broke the USB port. Then I used an original one.

stevezhengshiqi commented 6 years ago

@Neolo Thank you for reply. I am in a summer school now, and I don't bring a USB 3.0 drive. I will have chance to test a month later.

alexmenn commented 5 years ago

@stevezhengshiqi Hi!! How can we now disable bluetooth with actual EFI? USBPorts.kext doesnt exist to replace it, now we have USBPower.kext. Should we delete USBPower.kext and install USBPorts.kext in clover/kexts/other ?

stevezhengshiqi commented 5 years ago

@alexmenn Yes. If you soldered your BT, you will need another USBPorts.kext in https://github.com/stevezhengshiqi/XiaoMi-Pro/issues/7 .

isuke01 commented 5 years ago

Just curious, Can I use BCM94360CS2 Macbook Air 13, + adapter for m2 ? And complicate it more, use it over USB adapter to m2? or I just have to use m.2 slot or even this will not work ? Card: https://www.aliexpress.com/item/Original-A1465-A1466-Wifi-Airport-Bluetooth-Card-For-Macbook-Air-11-13-Laptop-2013-Years/32637520988.html Related to this thread https://www.tonymacx86.com/threads/100-working-12-6-pin-apple-wifi-bt-card-to-m-2-ngff-adapter-handoff-unlock-with-watch-uefi.215895/page-2

Menchen commented 5 years ago

@isuke01 No matter what card and adaptor , you will need solder BT to a usb pin for a working bt. Btw the compatibility shouldn't be a problem with that card, but I recommend BCM943602CS..

Giannidmg commented 5 years ago

with the latest kext update, how do I disable Bluetooth (for use dongle) without losing the two USBc ports?

stevezhengshiqi commented 5 years ago

@Giannidmg First, delete SSDT-USB in /ACPI/patched, and USBPower or USBPorts in /kexts/Other. Then copy the USBPorts at the 2nd floor of this page into /kexts/Other, and restart.

Giannidmg commented 5 years ago

ok now it works thanks

Chazy12 commented 5 years ago

@stevezhengshiqi i tried all what you wrote, but mine don't work. So I think I didn't understand something.. I've a Bluetooth USB dongle, installed kext from rehab, changed the ssd-usb from EFI with yours but my system finds the internal Bluetooth and not the dongle..

Menchen commented 5 years ago

@Chazy12 read readme about how to disable internal bt

Chazy12 commented 5 years ago

@Menchen where?

Menchen commented 5 years ago

https://github.com/daliansky/XiaoMi-Pro

Chazy12 commented 5 years ago

@Menchen already read that. But if I disable internal Bluetooth, my USB dongle Bluetooth not working too..

Chazy12 commented 5 years ago

Hi, I can help you with disabling internal Bluetooth. The reason why our clover folder leaves it open is that it can be activated in someway. For example, you can first start Windows and then restart in MacOS to activate bluetooth. In addition, we think that we should leave the choice to public and let them decide to disable the bluetooth or not, instead of us.

Since you have worked on it for last 2 weeks so I believe you have read this thread https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/.

  • Delete EFI/CLOVER/ACPI/SSDT-USB.aml and replace it with the SSDT-USB.aml below.
  • Restart, and wait for your good news!

If you want to use an external BT dongle, please read Rehabman's repository: https://github.com/RehabMan/OS-X-BrcmPatchRAM

SSDT-USB.aml.zip

UPDATE: The archive is updated on 13th August, 2018.

EDIT: The newest EFI release uses a new USB Injection method, please replace the following archive with the one in /EFI/CLOVER/kexts/Other/ to disable BT. USBPorts.kext.zip

@Menchen this one.

Chazy12 commented 5 years ago

And my ssdt-usb in EFI is ssdt-usbx. So I renamed it into that folder, but nothing.

Menchen commented 5 years ago

So after replacing usbport kext external bt still dont work? Which kext did you use from rehab? Also you only need to replace usbport and not ssdt-usb.aml ..

stevezhengshiqi commented 5 years ago

@Chazy12 Hi, SSDT-USBX is totally different from SSDT-USB. Just add USBPorts.kext given in the 2nd floor and restart.

Chazy12 commented 5 years ago

@Chazy12 Hi, SSDT-USBX is totally different from SSDT-USB. Just add USBPorts.kext given in the 2nd floor and restart.

@stevezhengshiqi I replaced the ssdt-usbx with the original one, updated only the kext then rebooted. On the restart I only see the Bluetooth is not active, so my USB dongle don't work..

Chazy12 commented 5 years ago

@Menchen I used brcmfirmwarerepo and brcmpatchram2 couse I see my device is in the list of the patchram..

Menchen commented 5 years ago

Maybe it's your usb dongle fault.... because usb dongle shouldn't use reh's kext as you said(bmcram something like that is for internal non native wifi card bt to work with hack)

Chazy12 commented 5 years ago

@Menchen the strange thing is that yesterday was working after replacing the ssdt-usbx and the kext. This morning was not working anymore. I used this dongle on my hackintosh desktop and works there.. I think is something related to the disabling of internal Bluetooth..

Chazy12 commented 5 years ago

@stevezhengshiqi @Menchen so, an update: if I put the dongle in USBC adaptator, the dongle works. If I put it in the internet USB, the dongle don't work.. uhm..

Menchen commented 5 years ago

By internal you mean left side usb a port?

Chazy12 commented 5 years ago

@Menchen yes. The both of them

Chazy12 commented 5 years ago

Update again: after some minutes, on the USBC adaptor, don't work anymore.. grrr

Chazy12 commented 5 years ago

@stevezhengshiqi do you've a solution?

Chazy12 commented 5 years ago

@stevezhengshiqi another problem i've is the HDMI out.. Not working the output and i have to restart my laptop to let the display work again..

stevezhengshiqi commented 5 years ago

@Chazy12 Never heard about the problem like you before. You can try to replug the adapter or use another adapter.

For the HDMI, try to remove -cdfon and restart. Don't forget to close the lid after connecting the external monitor for a few seconds.

Chazy12 commented 5 years ago

Where I've to remove the -cdfon?! Thanks again.

stevezhengshiqi commented 5 years ago

config.plist

acoutts commented 4 years ago

Hi- there is now an Intel bluetooth kext that will upload the firmware on boot. This could work for you: https://github.com/zxystd/IntelBluetoothFirmware