Skip to content
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

Thunderbolt 3 hotplug #4

Open
Herna1994 opened this issue Apr 12, 2019 · 44 comments
Open

Thunderbolt 3 hotplug #4

Herna1994 opened this issue Apr 12, 2019 · 44 comments

Comments

@Herna1994
Copy link

Is there any chance for getting hotplug working?

@LuletterSoul
Copy link
Owner

No devices for testing yet.You should find a solution if you own Thunderbolt 3 devices

@Herna1994
Copy link
Author

Seems it actually works, somehow.

While no Thunderbolt drivers is loaded, if I put an adapter with HDMI connected via Thunderbolt port it actually works. But won't load any USB drive or so.

If I boot with the adapter/Hub connected, it will load the hard drive correctly.

@LuletterSoul
Copy link
Owner

LuletterSoul commented Apr 14, 2019

@Herna1994 Do you mean USB drive won't work when you use Type-C Hub to link USB ?

@Herna1994
Copy link
Author

If you have the USB Type-C Hub connected on boot it will show USB drives.

As far as you disconnect the USB Type-C Hub and reconnect it won't show. Same applies if you connect without it, and after boot you insert Type-C Hub.

@LuletterSoul
Copy link
Owner

Hotplug issue is commonly posted, and I haven't found a solution yet.If the Thunderbolt device is necessary ,you can connect the USB Type-C Hub before boot into system as you describe.

@bavariancake
Copy link

Are you actually using a thunderbolt device, or USB hub with video out? Most are the latter kind. Also be sure to install the latest Thunderbolt firmware update from Dell.

@Herna1994
Copy link
Author

In this exact scenario I was using an USB Type-C Hub with video out.

It's great to see it working with HDMI whenever you disconnect and connect the Hub. Would be cool to have the same around for USBs in a future.

@Herna1994
Copy link
Author

Herna1994 commented Jun 4, 2019

@bavariancake @LuletterSoul Seems it can be fixed with this, many laptops are using it already.

Rashed97/Intel-NUC-DSDT-Patch@4747681

Rashed is a friend of mine, and he told this got his issues fixed. Just he told me this about it "RP05 needs to change to match your actual pci address. It changes by device"

@andresandiah
Copy link

@Herna1994 So, did you manage to use Rashed's patch in your XPS?, is it working correctly?

@Herna1994
Copy link
Author

@andresandiah I haven´t been able to try it. DW1830 is kinda expensive here, like $70+ so I haven´t buy it yet. I might give it a try and buy it if someone actually gets to fix it.

Anyway, I have found this: https://github.com/cloudlang/DELL-XPS-15-9570-8750H-1080P-macOS-Mojave

He hasn´t anything regarding Thunderbolt or hot-plugging on his list issue. If someone can try it and check if he has it fixed that would be nice.

@andresandiah
Copy link

OK, i found in tonymacx86's forum a guide for the 9560 with a thunderbolt 3 hot plug fix (WIP). I had to modify the SSDT to make sure it redirects to the correct path of the thunderbolt device (as shown in my IORegistry).

Tested it with a thunderbolt 3 interface (Universal Audio Apollo 8p). While the TB3 interface NEEDS to be connected at boot. After that i can turn it off and turn it back on without any problems. I even unplugged it and plugged my USB-C SSD.

It seems that the SSDT loads the TB3 interface and controller as an PCI device (it shows the PCI icon on the taskbar). So if we can find a way to initialize that PCI TB3 controller we may find a way to have a full hot pluggable TB3 / USB C port.

if anyone is interested, this is the link for the forum; if you have knowledge in this stuff pls contribute since it seems that the 9560/9570 share a lot in common in regards to this fix.

https://www.tonymacx86.com/threads/guide-dell-xps-9560-mojave-virtualsmc-i2c-trackpad-clover-uefi-hotpatch.263567/

Also, i will attach the modified SSDT's for the 9570.

TB3 USB C SSDT.zip

@andresandiah
Copy link

Screen Shot 2019-06-27 at 12 07 21 PM
Screen Shot 2019-06-27 at 12 06 54 PM

@iamsanoj
Copy link

iamsanoj commented Jul 2, 2019

USB Type C is still not hot pluggable ??

@LuletterSoul
Copy link
Owner

@andresandiah
Thanks for your job !
It seems to be a really great! I suggest that you should write down a simple tutorial here because sharing your mind on solution is really good so that everyone could really learn something from it.

I will merge your job into my repository for more tests.

@andresandiah
Copy link

andresandiah commented Jul 10, 2019

@LuletterSoul I've found a guide on how a guy enabled full hotplug on an Intel NUC hackintosh (Which is a device closer to a laptop than a desktop). The tjudnerbolt port works in a similar way to the XPS. I am not a programmer so I don't understand too much about what he is talking, but I suppose you can make better use on the way he achieved full thunderbolt hotplug.

Here is the link
https://github.com/osy86/HaC-Mini/blob/master/details/thunderbolt-3-fix.md

Hope it somewhat helps to achieve something for us. I will try to implement something out of that (if I can get to understand at least half of it haha) and will test it tomorrow morning with a thunderbolt 3 device I have at work.

@ghost
Copy link

ghost commented Jul 12, 2019

我的怎么没有这个图标呢
屏幕快照 2019-07-12 下午17 22 07 下午

@andresandiah
Copy link

我的怎么没有这个图标呢
屏幕快照 2019-07-12 下午17 22 07 下午

it will appear when you plug a thunderbolt device

@ghost
Copy link

ghost commented Jul 12, 2019 via email

@andresandiah
Copy link

the icon wil appear on Thunderbolt devices only, im not sure about how it will work with usb c dongles as i dont own one.
Im not completely shure about how the TB3 was patched as it seems to work only sometimes (the semi hot plug) and other times it doesnt.

@panxiao81
Copy link

I have a TB15 and the hotplug not work.but it worked on April 16th version.(Maybe just USB things)
By the way,The HDMI output on the TB15 has a color issue.I haven`t tried the Displayport output.But it normal with the HDMI port onboard.

@rlatn1234
Copy link

i got thunderbolt hotplug by https://github.com/RockJesus/macOS-IOElectrify
this kext

@andresandiah
Copy link

@rlatn1234 What TB3 devices have you tested? Did you check if you could also hot plug a USB-C drive?
It would be nice to see a video of TB3 hotplug in action. I'm really tempted to hackintosh my XPS if true.

@rlatn1234
Copy link

i tested with usb-c usb drive and usb 3.1 based external ssd
but i cannot test with tb3
i can test tb3 device when i got my one

@rlatn1234
Copy link

@andresandiah i can share my efi to you 😄

@andresandiah
Copy link

@rlatn1234 Yes please, i want to check it.
Also, one final question. Can you check with IORegistryExplorer if the pci for usb-c or thunderbolt is enabled. it should be something like this:

image

Also, can you attach an image of your devices under the PCI tab in your hackintosh hardware specifications? something like this:

image

I really hope i can go back to using my hackintosh.

@andresandiah
Copy link

@rlatn1234 To test hotplug capability, search for the things I asked in the post before this without any device plugged in the usb c/thunderbolt port.

@rlatn1234
Copy link

@andresandiah
System Diagnostics Screenshot
스크린샷 2020-05-19 오전 12 41 41

IOREG
스크린샷 2020-05-19 오전 12 43 15

@rlatn1234
Copy link

@andresandiah sorry for language

@andresandiah
Copy link

@rlatn1234 That´s exciting news, seems to be detected since boot. Guess I´ll switch back to MacOS soon.
Can you please share your EFI to check some other stuff in it?

@andresandiah
Copy link

@rlatn1234 Are you using Clover or OpenCore?

@rlatn1234
Copy link

@andresandiah I am using Clover
using this repo and some my own modification

@gemini444
Copy link

gemini444 commented May 20, 2020

I m using xps 9570 with opencore, can i use it? If so could you share your efi folder? Thank you.

@rlatn1234
Copy link

@gemini444 i will upload efi to my github repository

@rlatn1234
Copy link

@gemini444 @andresandiah i uploaded files to my repo

@gemini444
Copy link

@gemini444 @andresandiah i uploaded files to my repo
Thank you very much for your effort. I have a question. I m using opencore BL at this https://github.com/xxxzc/xps15-9570-macos repo and almost stable except TB3. Do you know how can i modify my config in OC?

@rlatn1234
Copy link

@gemini444 try with
IOElectrify.kext.zip this kext and enable at oc

@andresandiah
Copy link

Finally got my UAD Apollo x4 Thunderbolt 3 interface. Will test if hotplug does really work in the next days.

Will report back soon.

@andresandiah
Copy link

Thunderbolt 3 hot-plug working almost completely correctly. The Alpine Ridge Thunderbolt 3 Controller loads correctly in PCI without nothing connected to it.

Sometimes it detects correctly my Audio Interface and loads the drivers directly, other times I have to power cycle my audio interface but it ends up loading everything fine. I am not completely sure if it is something with my interface or the Thunderbolt driver, but so far so great!

@rlatn1234
Copy link

@andresandiah can you share your efi?

@CueMaxX
Copy link

CueMaxX commented Sep 20, 2020

@andresandiah I would LOVE to see that EFI.zip! Trying to get Thunderbolt 3 to running on my 9560... Unfortunately, there isn't a good guide for IOElectrify, which I would like to get running...

@ideologysec
Copy link

definitely a +1 for how you got Thunderbolt working, @andresandiah

Share what you know! (please :)

@mathewjpotter
Copy link

+1 for TB3 info :)

@andresandiah
Copy link

First of all, sorry for the wait. Little long after i posted my last comment i went back to windows. Finally i hackintoshed my XPS again and got working the semi-hotplug TB3 again.

The Thunderbolt PCI Card loads on system from cold boot. I can connect my Apollo x4 and it will recognize it as an external PCI device. I just need to power-cycle my Apollo and it will work normally within MacOS.

Here is my EFI, its based on 1.6 version from this repo with some of the kexts updated and adjusted to wirk better with Mojave instead of Catalina or Big Sur.

EFI_TB3 SEMI-HOTPLUG.zip

@andresandiah
Copy link

Ok so I recently switched to Big Sur and OpenCore (currently using a totally different EFI). Trying some different configurations seems like I got full thunderbolt and USB-C hot plug enabled.

I'll link you to the post where you can see the system report and download the OpenCore EFI for bigsur

xxxzc/xps15-9570-macos#40 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests