i3p9 / Hackintosh-BigSur-Catalina-OpenCore-Lenovo-T450s-efi

OpenCore EFI for ThinkPad T450s, supports Catalina and Big Sur
16 stars 2 forks source link

card reader #5

Closed m4ak closed 3 years ago

m4ak commented 3 years ago

Can the card reader be used normally? I failed to drive normally. 屏幕快照 2020-11-02 下午2 59 04

There is EHC information in the USB information in hackintool. There should only be XHC in Broadwell. This should be blocked in ssdt? 屏幕快照 2020-11-02 下午2 59 31 屏幕快照 2020-11-02 下午3 00 05

@i3p9

i3p9 commented 3 years ago

Hey sorry about replying to it very late. I have been busy with family and school, barely had time to upgrade OC and try BigSur.

About Card Reader, it actually works for me normally using the kext. And as for USB, since everything is working as of now USB-wise, I didn't touch the USB ssdts.

@cchyswy

m4ak commented 3 years ago

Thank you for replying to me in your busy schedule, I am really happy. Can your card reader work normally? And is your sleep normal? A wake-up record was found in the log because it was related to the network. The wireless network I use is DW1820A, the wireless network card is turned off in the BIOS, and the driver is forbidden in config, and there is no wake-up log.

i3p9 commented 3 years ago

Haha no worries, right now I'm not super busy so I can work on side projects!

Yes, my card reader works normally. I just checked right now. (Although note that I'm in Catalina now, I installed Big Sur but I didn't like the performance so I went back to Catalina)

Sleep normal, yes. Can you let me know how to reproduce the issue that you faced so I can take a look, or even the log would help. I also use DW1820A, how did you config your card?

Also for me, I use the laptop in clamshell mode 99% of the time and waking up from Sleep always works for me, takes about 2/3 seconds.

m4ak commented 3 years ago

I am still mojave, and I have made the following changes:

  1. Disable SSDT-XHCI, customize usb with hackintoll, load usbports driver in config
  2. Unused ssdt is deleted from acpi 3.Added an ECH1 TO EH01 patch The above operations refer to the configuration of racka98

Now I don’t know if the sleep is normal, the power light flashes normally, and the screen does not light up, that is, there is a wake-up log in the log. I will package the log file and efi and send it up for you to see. And my card reader is not working properly, it is disabled now.

归档.zip

m4ak commented 3 years ago

I think I have found a way to solve the sleep wake-up record in the log. It should be a problem with my wireless network card driver. The previous driver method loaded the driver in config without injecting it, and the wireless network card and Bluetooth worked normally. Yesterday I changed a driving method, injected DevicePropertites and added pci-aspm-default=0

Through the 12-hour sleep test, there is no wake-up record in the log. I think I solved this problem.

daideMacBook:~ dai$ show --last 12h | grep "Wake reason" daideMacBook:~ dai$

Now only the problem of the card reader is left unsolved.

m4ak commented 3 years ago

My method failed. There is a record of wake-up from sleep in the log, almost once every hour. log show --last 12h | grep "Wake reason" 2020-11-25 22:12:04.320857+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-25 22:12:04.320859+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-25 23:12:02.814448+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-25 23:12:02.814450+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 00:02:08.301556+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 00:02:08.301558+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 01:12:27.809773+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 01:12:27.809775+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 02:10:16.309605+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 02:10:16.309607+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 03:06:29.303162+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 03:06:29.303164+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 04:14:10.694747+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 04:14:10.694750+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 05:05:43.303980+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 05:05:43.303982+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 06:13:05.307470+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 06:13:05.307471+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 07:11:26.552207+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 07:11:26.552209+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 IGBE XHCI (Network) 2020-11-26 08:10:27.306730+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: IGBE XHCI (Network) 2020-11-26 08:10:27.306731+0800 0x74 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: IGBE XHCI (Network) daideMacBook:~ dai$

i3p9 commented 3 years ago

This is pretty weird behavior. For example, I also am running DW1820A, and there's no wake log at all. I also haven't experienced any when using it.

image

For now, can you test your sleep on my exact EFI? If you have email, I can email you the exact EFI that I use (it's not 100% not the same as my git EFI) and see if there's any issue using mine?

Edit: Can you try this patch first? For your sleep issues; SSDT-IGBE.aml.zip


As for your USB config, as you changed ECH1 TO EH01, is there any problem when not doing it? Because I am still on Echo's original SSDT and I don't think I've faced any issue USB-wise.

racka98 commented 3 years ago

As for your USB config, as you changed ECH1 TO EH01, is there any problem when not doing it? Because I am still on Echo's original SSDT and I don't think I've faced any issue USB-wise.

There's no problem major problems when you don't change it but it is advised that you change it so that your port appear like on a real Mac with proper power management. Also not renaming them exhausts the IOService as it has to redirect the ports to the correct names every time.

https://dortania.github.io/OpenCore-Post-Install/usb/system-preparation.html#checking-what-renames-you-need

i3p9 commented 3 years ago

@racka98 Thankyou! I already looked at the post install page before but I understand now.

So here's the thing, since Echo already has the SSDT-ECH1.aml, which points to ECH1 in all entries, like this:

image

So wouldn't renaming it via the patch provided will cause issues with the patch there? Do you have it renamed in your system?

m4ak commented 3 years ago

Thanks. email address: 1067669073@qq.com

The ec patch has been renamed in the system.

屏幕快照 2020-11-30 上午9 07 53
racka98 commented 3 years ago

@racka98 Thankyou! I already looked at the post install page before but I understand now.

So here's the thing, since Echo already has the SSDT-ECH1.aml, which points to ECH1 in all entries, like this:

image

So wouldn't renaming it via the patch provided will cause issues with the patch there? Do you have it renamed in your system?

In that file he just defined every port for macOS to map them correctly but he didn't rename EHC1 to EH01. The ports are already defined but the names are not the one's macOS expects to see.

I have renamed EHC1 to EH01. I forked your Repo and I have been maintaining it and fixing some things: https://github.com/racka98/Lenovo-Thinkpad-T450-T450s-Hackintosh-Guide-Opencore/

i3p9 commented 3 years ago

Hey @cchyswy / @racka98 I have completely changed the USBMap and proper patching with a lot of help from Clay. I will update the repo after some testing. System is noticeably faster and snappier than before. Deleted a lot of unused patches too. Send me an email if you want to beta test the EFI, @cchyswy


Also sorry for the delay. I'm back hopefully.

Oh and @ racka98 I took a look at your Repo. I noticed PlistPro in your Utlities folder, and um, Since Plist Pro is a paid app that's kinda considered piracy so I suggest removing it, just a heads up.

racka98 commented 3 years ago

Hey @cchyswy / @racka98 I have completely changed the USBMap and proper patching with a lot of help from Clay. I will update the repo after some testing. System is noticeably faster and snappier than before. Deleted a lot of unused patches too. Send me an email if you want to beta test the EFI, @cchyswy


Also sorry for the delay. I'm back hopefully.

Oh and @ racka98 I took a look at your Repo. I noticed PlistPro in your Utlities folder, and um, Since Plist Pro is a paid app that's kinda considered piracy so I suggest removing it, just a heads up.

Email: bmkilaha@gmail.com

Also I've deleted it, i remember getting the file from some other EFI a long time ago

m4ak commented 3 years ago

Hey @cchyswy / @racka98 I have completely changed the USBMap and proper patching with a lot of help from Clay. I will update the repo after some testing. System is noticeably faster and snappier than before. Deleted a lot of unused patches too. Send me an email if you want to beta test the EFI, @cchyswy

Also sorry for the delay. I'm back hopefully.

Oh and @ racka98 I took a look at your Repo. I noticed PlistPro in your Utlities folder, and um, Since Plist Pro is a paid app that's kinda considered piracy so I suggest removing it, just a heads up.

Email:1067669073@qq.com