krim404 / DellXPS15-9550-OSX

Tutorial for a full working Mac OS (10.11 up to 11.0) enviroment on the Dell XPS 15 (9550)
http://www.insanelymac.com/forum/topic/319764-dell-xps-15-9550-installation-tutorial/
457 stars 107 forks source link

Thunderbolt 3 not working #110

Open mike-u opened 5 years ago

mike-u commented 5 years ago

Thanks so much for this guide, and I'm still willing to donate if you ever change your mind. I have Mojave 10.14.5 running perfectly on my 9550 now, but the only part that isn't working is Thunderbolt 3. I have a new Apple TB3-TB2 adapter that worked on a different Windows laptop, so I believe it's not broken. I'm ok with not being able to hot-plug it, so I always boot up with it attached, and I get a 'USB Controller' menu bar icon with an option to 'Power off card', so it does recognize it somewhat. But under System Report no Thunderbolt device is listed. From reading this forum post and looking at my config.plist it seems like the patch to enable Thunderbolt 3 is already enabled. I haven't made any changes to the steps you put in your guide so it's still a default install.

Specifically I'm trying to use it with another Apple Thunderbolt-Firewire adapter (which works with an older Macbook) to connect to a Firewire audio interface. So far it isn't being detected - no audio interface shows up under Sound preferences, no Firewire ports show up under System Report (they do when it's active).

I've also tried using the adapter with a Lacie Thunderbolt drive, and it doesn't power on or show up in Disk Utility, so I don't think it's an audio-specific issue.

In my BIOS I have Thunderbolt security disabled, and all the Thunderbolt boot/pre-boot options enabled.

Do you have any suggestions? Do you need any more information from me to diagnose any problems? I've attached an ioreg dump if that helps.

Thanks again much for the guide.

NagaRhul commented 5 years ago

Any answer to this? I also have a eGPU enclosure and Thunderbolt 3 simply doesn't work. No USB devices connected are recognized (but they certainly work in Clover of all places.)

krim404 commented 5 years ago

USB works well, TB not. Many reports it's not working and i cannot fix it because i dont own any TB hardware to test it with. Completly dependent on the work of outsiders here.

It seems to be possible, but it requires many modifications and the people who got it to work didnt share their configuration... :-(

lamhoangtung commented 3 years ago

@wmchris Is this possible to make hot plugging with the USB Type C port work ?

krim404 commented 3 years ago

thunderbolt most likely no. usb, hdmi and pd: yes.

lamhoangtung commented 3 years ago

Yeah. Hot plugging with HDMI and USB-A already works. But not USB-C for me. How about your @wmchris ?

krim404 commented 3 years ago

usb c works, no thunderbolt.

lamhoangtung commented 3 years ago

What MacOS version are you using @wmchris ?. I'm at 11.1 and the USB C are not hot pluggable

golimpio commented 3 years ago

Sorry if I misunderstood the question, but I have an external SSD, and it has an USB-C to USB-C interface. I could attach and detach it from usb-c any time. Is it a particular device that's failing to work?

I've tested it on Big Sur up to 11.5.1.

I'm running Monterey beta 4 now, and it's not as good as Big Sur, after I eject the disk, next time I have to plug it 2 or 3 times before it gets recognised. But it's a beta version, so I don't expect it to be flawless right now.

lamhoangtung commented 3 years ago

Thanks for your reply @golimpio.

I also had an external SSD from Samsung and it also had an USB-C to USB-C interface as well as a type c dongle for wired ethernet. Both of them works but only for the first time of each boot. If i detach it from the USB-C port or leave the machine goes to sleep, the USB-C port will stop working until I reboot the machine. Thus making it not hot pluggable.

I'm using 11.1 at the moment. So upgrading to 11.5.1 like you might solve the problem. But I had a side question. Do I need to do a fresh install to go from 11.1 to 11.5.1, or can I do it with OTA? Will an update of everything in the EFI and OTA do the trick ?

golimpio commented 3 years ago

I'm wondering why this isn't working for you even on 11.1, but I guess it's worth to update EFI and macOS. My external SSD enclosure is a generic one from eBay, so there's nothing special about it.

Anyway, a normal upgrade via Software Update should work fine, I haven't experienced any issues doing it in the past versions of Big Sur, up to 11.5.1 (the only difference is that I've done the update for every single Big Sur version).

The last EFI I used for Big Sur was the one from this repository. There is a new OC and new kexts versions released this month, but I haven't tested it on Big Sur.

But since I lost some data in the past when an updated failed for some reason (it wasn't Big Sur), I always have a time machine backup updated, just in case :)

Since OpenCore, I've found the update process a lot more stable, recently, I've upgraded from Big Sur to Monterey (beta 4) the same way and everything worked just fine.

lamhoangtung commented 3 years ago

Thanks @golimpio

So commit 3d0aaeaa2485ab3f6999c577ef5884e9da51fb95 should be fine for Big Sur right ?

golimpio commented 3 years ago

So commit 3d0aaea should be fine for Big Sur right ?

Yes, it should be fine. Hope this fix your issue.

krim404 commented 3 years ago

as i have it working directly with two different XPS15 9550 machines since version 10.14, i'm sure there is something else faulty. most likely a wrong usb injector kext, maybe a custom or faulty one.

i tested usb-c frequently with usb-c yubikeys, power adapters, usb hubs, the dell usb c accessories, network adapters and iphones - all work flawless.

lamhoangtung commented 3 years ago

Screen Shot 2021-08-06 at 00 42 20 I've just updated to 11.5.1 and the issue still persist. Are there any other information I can provide so you guys can point me to more clear direction to fix this @wmchris, @golimpio ? Thanks image

golimpio commented 3 years ago

Unfortunately I'm out of ideas, driver/device id are the same here. Since you've used the kexts/config from this repository, your settings should be the same from what I had.

Screen Shot 2021-08-06 at 11 08 58 am
golimpio commented 3 years ago

Have you monitored AppleUSBXHCIPCI in IORegistryExplorer app? Usually you'd able to visualise your external SSD being plugged and unplugged.

I've started the app with the device connected, if you keep an eye at IOPCI2PCIBridge, after unplugging the external SSD, it will become red in IOResgistryExplorer - see: (1)

After plugging the SSD again, another branch should show up - see: (2)

This won't solve your problem, but it might help to determine if the behaviour is the same at that level, and you might narrow down the places to look for a solution.

Screen Shot 2021-08-06 at 11 35 25 am
golimpio commented 3 years ago

I don't know if you already tried it, but redoing the USB mapping might help, it's a bit of work though, I never had to do it, since the one from this repository have always worked fine for me.

I do have a minor issue when I plug the keyboard/mouse usb receiver on the left side, doing it, the mouse will behaviour oddly, like if the signal was weaker and the cursor will jump sometimes. I don't think anyone else have experienced this, so possibly I should do the USB mapping myself, but it's a minor issue and it doesn't bug me much.

lamhoangtung commented 3 years ago

Thanks for the reply @golimpio.

After a few reboot, the USB C port now hot pluggable but only for 3 times before stop being hot pluggable:

image

Pretty weird right ?

golimpio commented 3 years ago

Pretty weird right ?

Yes, it does look weird.

krim404 commented 3 years ago

there is a posibility that you have a BIOS, which is not like the ones in the EU/US. Do a firmware update to the newest version. if issue persists, then you have to go through the whole process of usb discovery i did a few years ago. it's not really hard just time consuming.

lamhoangtung commented 3 years ago

My BIOS are already at 1.14.0, which is latest. Looking at remap usb T.T. Thanks @wmchris

krim404 commented 3 years ago

just to make sure: you did a fresh install with the data from this repository (and only this repository) and it's still not working? do you have an exotic configuration (for ex. with fingerprint sensor or two hdds) or something BTO?

please keep us updated if you've fixed it with a custom remap - then i will compare. it is not uncommon that asian hardware revisions are a little bit different from the rest of the world.

lamhoangtung commented 3 years ago

cc @wmchris @golimpio I haven't do a fresh install yet. But my last fresh install with this repo (and always only with this repo) was with 11.1 a fews month ago.

My configuration is pretty normal. I plug the SSD directly into my type C port. My SSD have fingerprint sensor, but even without unlocking it, the drive will show up as a read-only dummy partition. image

I've been tinkering with this tutorial: https://dortania.github.io/OpenCore-Post-Install/usb/intel-mapping/intel.html

And been trying with setting the type C port to type 9 and type 10 (the following screenshot was type 9) Screen Shot 2021-08-06 at 22 14 57

Then build USBMap.kext, inject it to OC, disable USBPorts.kext and reboot a fews time. From my testing, remap it again does not make much different. The SSD (I also tried with an iPhone with an C to Lightning Cable) can be hot plug for about 3-4 times before stop working and require a reboot. Some other time when I left the machine idle for an hour or so. I can can hot plug again for 3-4 times before it stop working.

Also my 9 mapping cause the drive to be painfully slow, from 800MB/s on the previous config to about 35Mb/s, but not on the type 10.

Am I doing anything wrong ?

My machine was bought from the US so I don't think there are problem related to asian revisions of the laptop

golimpio commented 3 years ago

@lamhoangtung have you had any progress? unfortunately I don't know if you're doing the mapping right or not, since I haven't done it myself. And because the work done by wmchris worked for most of us, it's possible that a lot of people haven't done the mapping themselves.

lamhoangtung commented 3 years ago

@golimpio I haven't had any more progress ;(

golimpio commented 3 years ago

@golimpio I haven't had any more progress ;(

Just out of curiosity: after it stops to be hot-pluggable, if you put your laptop to sleep, and then wake it up, does your external ssd connect?

lamhoangtung commented 3 years ago

It does not @golimpio