-
Notifications
You must be signed in to change notification settings - Fork 27
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
Potential TB3 hot plug? #40
Comments
Replace SSDT-TYPC.aml with SSDT-TB3.aml.zip (don't forget to update config.plist). Some people reported that this can make thunderbolt dock hot-pluggable but not eGPU. |
@xxxzc thank you for that! Could I ask why you switched to SSDT-TYPC.aml in the main config? I remember in an older version, you used SSDT-TB3. Also, does this enable USB 3.0 over USB C port? |
在删除 SSDT-TYPC.aml 和 rp17 重命名并在 grub shell 修改了gpio3 force pwr 和gpio filter 的偏量值后雷电3设备(除egpu)可实现冷启动。 |
可以热插拔麽? |
雷电不行,DP可以 |
Quick update. So I've been trying to get TB3 Hot plug-ability for a long time now. After testing a few of different combinations it seems like I got fully working TB3 and USB-C hot plug. Even tho xxxzc mentioned to not use both .aml simultaneously for USBC and TB3 I tried anyways. I have tested it with an Apollo X4 TB3 interface and can hot-plug with no problems. Also tried a USB-C SSD (sands extreme 1gb) and its working perfectly. So far it is very stable and it even shows in PCI's Tab in System report. Will do some more testing during the coming weeks. I'll also share my EFI so maybe someone with more knowledge about this can do some cleanup or optimizations of the AML/Kext in there to push it to the main release with TB3 hot plug enabled. |
That's very interesting! I tried using the TB3 aml in the past and it would cause the laptop to crash upon wakeup--does the same happen for you? Also, does the thunderbolt port get hot even when nothing is plugged in? |
It's just a little warm, will report back tomorrow if it gets hot or warm even without use. Literally just tested putting it to sleep and the interface reconnected without a problem; no crashes. I have to note that disabled Thunderbolt Auto Switch on Bios and it is set to Native. |
That’s great to hear. Do you think eGPUs would work as well? |
My XPS is more music production oriented so I do not own any kind of eGPU. I currently tested it with an Universal Audio Apollo X4 audio interface and it is working flawlessly. Since the thunderbolt controller seems to be fully loaded on boot I suppose it will work normally with any EGPU. It is worth a try if you have one to test with; just make sure to make a backup of your current working EFI. |
@xxxzc is this something you could potentially take a look at? |
After further testing it seems that the system still shows the thunderbolt card as active after a long sleep BUT will lose its ability to hot-plug until the next reboot. At least there is no panic or sudden shut down of the device. Also, seems like the SSDT-Thunderbolt.aml in my EFI is not necessary. Only the USB-C, TB3 and IOElectrify.kext. Wish there is some kind of workaround to this. Hope @xxxzc can take a look at this and work it out. 💪🏾 |
I was taking a look at this EFI: https://github.com/tylernguyen/x1c6-hackintosh There are lots of files related to TB3 there, and no IOElectrify kext is used. I wonder if it's possible to achieve the hotplugging completely through ACPI patching on this device. |
Ok, so it seems IOElectrify kext was not necessary. I removed it from my EFI, and also removed the SSDT-THUNDERBOLT that i added. Hot Plug seems to be working normally until now. Even after a long sleep (while plugged) the thunderbolt device was still functioning after wake up; i even turned off and turned on my interface to see if it would still function and it did. I cannot say that this hot plug is 100% functional as I need to keep testing in other scenarios, but it seems like it is functioning way beyond what i initially expected from it. Thanks for the work @xxxzc . Hope you can make some final refinements on the thunderbolt side of this EFI anytime soon. So far great job! |
@andresandiah very interesting! so you are only using SSDT-TB3.aml |
@adityahota Currently the only modification to the EFI is the SSDT-TB3.aml in conjuction with the one for USB type C. That's it. Seems to be working fine. |
What is your TB3 mode set to in the BIOS settings? Could you let me know if it's set to Native or BIOS Assist? Thank you! |
It is set to Native. Make sure to select "No Authorization" if you are not dual-booting MacOS and Windows 10 |
Mmmm, that's weird. I'll upload my current EFI. Feel free to check it out 👌🏾 |
Hmm, weirdly even with your EFI I am still getting the KP. Have you tried sleeping without the laptop plugged in? I wonder if that's part of the cause. I originally tried adding SSDT-TB3 to my EFI a few months ago and was getting the same issue. I'll try playing with my settings and see if I can get it to work. |
I'm on Big Sur for the record. |
Likewise. Which BIOS version are you on? Also do you have the i7 or the i9 model? |
I found that the one that gave me the least amount of problems was 1.11.2 (the one recommended on LuletterSoul's MacOS EFI). I have the i7 Model, 8750H |
Gotcha, it seems that apart from the BIOS version, our configs are the same. I'll try downgrading to 1.11.2 and see if that fixes the sleep wake issue. Did you have a chance to test TB3 hotplug after sleeping on battery? If so, could you let us know how that went? |
Okay even after downgrading, the reboot issue persists. I guess we’ll have
to do some more testing across devices.
…On Wed, Jan 13, 2021 at 12:55 andresandiah ***@***.***> wrote:
I found that the one that gave me the least amount of problems was 1.11.2
(the one recommended on LuletterSoul's MacOS EFI). I have the i7 Model,
8750H
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC7PXAKB3F5UGFIZVOLTH53SZXNBVANCNFSM4M26732A>
.
|
Man, thats weird. Try resetting BIOS default configuration and also resetting the NVRAM in OpenCore. |
That TB3.aml wasn't wrote by me, I have no other TB device except a nvidia eGPU. I can't be of more help, sorry. |
Ok. So I kept testing the thunderbolt connection while sleeping. Situation A: Situation B: I'll have to try one more situation where the XPS goes to sleep without battery and without any TB device connected to see if after wakeup it can still hot plug any thunderbolt device. |
Interesting... I wonder if using TbtForcePower.efi can help here. I believe that driver is used to prevent macOS from crashing if it doesn’t see the TB device powered on when waking from sleep. |
I will try using TbtForcePower.efi as soon as i get home. |
I tried adding TbtForcePower to the drivers folder and added it to config.plist but it didn't help with the wake issue. I'm not sure if I did that completely right but I think that should have been sufficient. I'm not really sure where to go from here. I can take a look at the Thinkpad Carbon X1 since I think they have everything working properly with regards to TB3. |
I would love to help, but honestly i'm completely lost on this issues regarding hackintoshing. Can help you testing different configurations if you wish 🙌🏾 |
I have an xps 7590, so I might be able to help. I didn't have usb-c or thunderbolt working before. Like @adityahota, I was getting kernel panics on wake, but I got a new monitor with a dock so I really wanted to be able to use them. I did have to patch XHC_ to XHC2, like @xxxzc mentioned in another issue, but I might have gotten thunderbolt working. I started by enabling thunderbolt with no restrictions in the BIOS. I switched the thunderbolt mode from Bios assist to Native. I reset NVRAM, then I added IOElectrify.kext, ssdt-typec, and ssdt-tb3 to my EFI. Notably, I don't have any expresscard icon in my menu bar. System information also says no thunderbolt driver is loaded. However, everything seems to work. I haven't noticed if power draw is higher because the thunderbolt controller is powered on. My wattage stays around 10-13 watts with a 4k display and halfway brightness. |
Glad you were able to get it to work @Drowningfish223! So you are no longer getting crashes upon wake when you don't have a TB3 device connected? Also, does hotplug work fully for you? One thing I am wondering is if the XHC_ to XHC2 caused some changes. Could you link me to where you found information about that? Thanks! |
Hot plug seems to work. I got the rename info from here: #69. It seems to be xps 7590 specific. I wasn't having any problems on wake, but after a reboot, I'm now getting macos errors. I'll play around to see if I can fix the issue. Here's what the errors look like: Sleep Wake failure in EFI Failure code:: 0x00000000 0x0000001f Please IGNORE the below stackshot ================================================================ Data Source: Stackshots Event: Sleep Wake Failure Boot args: -v darkwake=1 igfxfw=2 Time Awake Since Boot: 34s Process: swd [305] Thread 0x8f9 1 sample (1) priority 4 (base 4) Binary Images: |
@Drowningfish223 are you still getting errors upon wake? |
I only got the errors after a long sleep, usually overnight, but I’ve disabled sleep on power adapter so I can use my laptop in clamshell mode when I’m at home-the laptop won’t wake up from sleep unless the lid is open. As a result, I haven’t gotten any errors recently. I have done more testing for thunderbolt power draw; it seems that enabling thunderbolt draws 1-2 more watts. That made me change my bios setting to usb-c and DisplayPort only because battery life is important to me and my dock works with usb-c only. Let me know if I can help your testing in any way! |
There are some differences between the 7590's OEM Thunderbolt SSDTs and the 9570's |
Hi all, |
https://www.elitemacx86.com/threads/guide-how-to-enable-thunderbolt-3-hotplug.462/
Is this something that could possibly be implemented in our system @xxxzc ?
I'll try to give it a shot next week.
The text was updated successfully, but these errors were encountered: