profzei / Matebook-X-Pro-2018

💻 macOS on Huawei Matebook X Pro 2018
Apache License 2.0
369 stars 48 forks source link

Thanks and report of my resolving Samsung 980 pro SSD stucking #213

Closed elfzweik closed 3 months ago

elfzweik commented 2 years ago

@profzei I hope you have not abandoned this repo and can read my post. I did not visit this repo for around 2 months because of busy work. It is a pity to find that you have deleted the releases. But I fully understand your decision. I have met similar situation. It is so annoying. I'd like to extend my thanks to you for all the work you have done for MBXP2018. I started hackintosh since 2008 or 2009, from Chameleon via Clover to OpenCore. This MBXP is the closest to perfect. And I used the least time for it. It is all due to the DSDT and SSDT you prepared for us. I tried to patch DSDT before and know how difficult it is. So I surprised you can make a laptop so close to a Macbook.

From the change log I noticed you are continually improving the hacking. I hope you use this repo not only a place to take note your achievements, but also a discussion forum for the MBXP hackintoshers. I think many hackintoshers are as eagerly as me to get some hints from you.

A report for Samsung 980 pro NVME. My MBXP is i7 16GB 512GB version. Last October my SSD damaged and I bought a new 1T Samsung 980 pro. I used exactly your EFI (only injected my own SMBIOS info) and successfully installed big sur. But after updating to Monterey, the booting time was extended extremely, from around 30s to 1m45s. I checked the log info and searched on web, finding it is caused by Samsung M.2 NVME trimming issue. When

  1. Certain brand of M.2 NVME SSD;
  2. Booting on this SSD;
  3. Formatted as APFS.

Monterey's trim checking code at booting stage conflicts with Samsung's trimming realization (After booting, everything goes smoothly). So the idea comes to me, can I disable the booting trim checking of Monterey? Unfortunately I used OC 0.7.4 at that time, setting SetApfsTrimTimeout to 0 does not make any change. Till last week, I found OC 0.7.9's release note says 'Added a new method to disable trim when SetApfsTrimTimeout is set to zero' and 'Fixed SetApfsTrimTimeout on macOS 12 (only works when set to zero)', I tired to set SetApfsTrimTimeout to zero again. The booting time goes back to 27s counting from password inputted to desktop showing. Wondering how long does it take for your laptop?

Now I still meet a problem. My MBXP can go to sleep and power off automatically. But when it wakes up from deep sleep, the bluetooth doesn't function, i.e. my BT mouse and keyboard do not work anymore. The system preference shows mouse and keyboard are connected but they don't react, even when I turn off Bluetooth and turn on again. I have to restart the computer to recover the bluetooth. If it goes power off, there will be a 5-language warning in the rebooting. The booting will continue after I hit any key, but there is no top menu on the desktop. I have to turn off the computer forcefully to recover. i have done the sleep & hibernation setting, power management setting as per your Post install Setting instruction. Could you give me some hints on how to resolve my problem? Thanks again.