jlempen / MateBook-X-Pro-2020-OpenCore

macOS on the Huawei MateBook X Pro 2020 thanks to Acidanthera's OpenCore bootloader
MIT License
8 stars 3 forks source link

Type-C causing restart #3

Open jrheuman opened 9 months ago

jrheuman commented 9 months ago

When I connect a usb hub or an external ssd to front-left trype-c port, it causes pc to restart itself.

Also, someone had already opened an issue about, camera indicates as it works but there is only a black screen.

I tried making UsbMaping on my own but the output didn't work as expected.

Any chance I can get help on the issue?

Thanks!

jlempen commented 9 months ago

The front left (closer to you) usb-c port depends on the Thunderbolt controller and is therefore not capable of USB 3 support yet, or at least not with hotplug support. Do your external SSD and/or USB hub work if you boot the PC with the device already connected to the front left USB-C port? Due to the above limitation (also mentioned in the readme), I use the front left USB-C port only for powering the MateBook X Pro and use the other USB-C port for devices.

As I'm working abroad and don't have the PC with me right now, I can't help you testing in the next few weeks, I'm sorry.

Concerning the camera issue, please make sure the nose-camera button is retracted (yes, it sounds silly, but I've made this mistake before :-) If the camera shows up in the camera section of macOS's System Information, it should "just work". But if it doesn't, then the issue is probably due to the fact that Huawei uses different camera manufacturers depending on the availability of parts when the machine was manufactured.

I have the black screen camera issue on every HP machine I tried to hackintosh in the last few years, and no one knows why it's not working. There are no drivers for the webcam, so because the camera is attached to the USB bus, there's not much we can do really, apart from making sure your USBMap.kext is tailor-made for your machine.

For that, try using USBToolbox in Windows and make sure to enable the Use Native Classes option in the Options before creating your USBMap.kext. Then replace my USBMap.kext with this new tailor-made USBMap.kext in your EFI/kexts folder.

jrheuman commented 9 months ago

Hello again, Jlempen.

Firstly, thank you so much for yours kind and lightning fast response . The USB Hub is Huawei's Matedock 2 and it already works with the PC, and the portable SSD is included in a Ugreen ssd encloser non-powered externally. Also, I have to accept that I can only dream of thunderbolt support :)

About the camera issue, camera is shown in the System Information screen. Besides, you're right, the camera should be popped-out before use, and I did that before I got my shiny black screen :) My hope will depend on the next use try of the USBToolbox, I'll see if it works.

I wasn't aware of the Use Native Classes option; I'll re-create USBMap.kext with that option enabled.

After all the work, I'll immediately let you know of the result.

Thank you again, cheers!

jrheuman commented 8 months ago

Hello again, Jlempen.

Firstly, thank you so much for yours kind and lightning fast response . The USB Hub is Huawei's Matedock 2 and it already works with the PC, and the portable SSD is included in a Ugreen ssd encloser non-powered externally. Also, I have to accept that I can only dream of thunderbolt support :)

About the camera issue, camera is shown in the System Information screen. Besides, you're right, the camera should be popped-out before use, and I did that before I got my shiny black screen :) My hope will depend on the next use try of the USBToolbox, I'll see if it works.

I wasn't aware of the Use Native Classes option; I'll re-create USBMap.kext with that option enabled.

After all the work, I'll immediately let you know of the result.

Thank you again, cheers!

The result is the same. Anyway, it's still enough to use macOS. Thanks for sharing the most successfull EFI and yours help.

Cheers!

jlempen commented 8 months ago

OK so I had access to my MateBook X Pro 2020 today and I can confirm that the front left USB-C port causes a kernel panic and reboot when unplugging my i-tec USB-C hub. It does work just fine with USB 2 speeds while plugged in, though. Until I find a way to fix this, I'll update the readme with a notice.

I also checked the camera again and it's working just fine on my computer, below you'll find the specs from System Information:

24-02-11 15-02-49 0370

24-02-11 15-02-35 0369

jrheuman commented 8 months ago

I'd thought that Huawei wouldn't use different parts from different vendors on the same model, but it did :/ My camera specs are the same except the manufacturer is Kingcome while yours is SunplusIT. I wish there was a workaround for that. Also, there is a guy, Profzei, had done some perfect work on 2018 model of MBXP and he claims that he now has "Thunderbolt Port (with full native support!)".

Apart from getting kernel panic from type-c port hotplug, this EFI of yours is wonderful. Thanks again, for the great work and giving support on the issues as well.

Cheers!