Guest 5T33Z0 Posted June 19, 2022 Share Posted June 19, 2022 (edited) @miliuco Uing ACPI to map USB ports is the most apppropriate way to doi it. Once you get USB port mapping right in ACPI you will never ever have any issues again with USB – in any macOS version! And I have actually written a guide about it. https://github.com/5T33Z0/OC-Little-Translated/tree/main/03_USB_Fixes/ACPI_Mapping_USB_Ports Edited June 19, 2022 by 5T33Z0 Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/ Share on other sites More sharing options...
Guest 5T33Z0 Posted June 19, 2022 Share Posted June 19, 2022 (edited) @eSaF Take your time. At some point it makes click. If it won't I'd suggest using the USBTool method under windows. Edited June 19, 2022 by 5T33Z0 Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2786343 Share on other sites More sharing options...
miliuco Posted June 19, 2022 Share Posted June 19, 2022 (edited) Thank you @5T33Z0 and @MaLd0n I have bookmarked OC_Litte_Translated as an important site for our community, a lot of well-written information not always easy to find. And what about Mald0n whose ACPI language skills are very very great. I promise to study the 533Z0 guide but I think it is still beyond my understanding 🙂 Edited June 19, 2022 by miliuco Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2786395 Share on other sites More sharing options...
Guest 5T33Z0 Posted June 19, 2022 Share Posted June 19, 2022 @miliuco Let me know when you reached Chapter L… Creating ALC Layout IDs Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2786396 Share on other sites More sharing options...
miliuco Posted June 19, 2022 Share Posted June 19, 2022 5 minutes ago, 5T33Z0 said: Let me know when you reached Chapter L… Creating ALC Layout IDs Believe me I've read it but with my mouth open and my mind stuck 😀 1 2 Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2786399 Share on other sites More sharing options...
Cyberdevs Posted June 20, 2022 Share Posted June 20, 2022 @eSaF, @miliuco and @5T33Z0 You can discuss USP port mappings and techniques here. Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2786544 Share on other sites More sharing options...
miliuco Posted June 20, 2022 Share Posted June 20, 2022 Thanks @Cyberdevs I'study the OC Little Translated howto and comment here if necessary. 1 Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2786546 Share on other sites More sharing options...
Cyberdevs Posted June 20, 2022 Share Posted June 20, 2022 Looking forward to read some useful info here. Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2786555 Share on other sites More sharing options...
Guest 5T33Z0 Posted June 20, 2022 Share Posted June 20, 2022 19 hours ago, miliuco said: Believe me I've read it but with my mouth open and my mind stuck 😀 Imagine how i felt trying to create a layout-id – and the guide – at the same time Btw, it is done and working working. Only took me about a month for both… Waiting for approval of the PR for the new Layout I created. Anyway, back to topic: 1. Use the USBTool method (esp. Option 1 since it's SMBIOS-independant) if your overwhelmed by the ACPI approach: https://github.com/5T33Z0/OC-Little-Translated/tree/main/03_USB_Fixes#method-1-mapping-usb-ports-with-tools 2. Number one reason for sleep/wake issues on systems with internal BT/Wifi cards: USB port for BT/WiFi being configured as an external port. Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2786558 Share on other sites More sharing options...
miliuco Posted June 24, 2022 Share Posted June 24, 2022 (edited) @5T33Z0 At last!!! I have only been about 3 hours until I got the custom ACPI table with my USB port map. As I already have a previously generated port map, I have followed option 1 of your instructions. It is really very well explained but I also tell you that it must be done with time and paying attention to everything that is done. I'll tell you some things: the original table (SSDT6.aml on my system) is not dropped if I don't type the correct length in config.plist, I say this because in your text you have the length at 0 in the ports I remove for macOS, I made a mistake copying as is the code from your site for the _PLD method (in Else >> Return) until I realized that I have to leave the code that has my own table with this map all the ports are configured as USB3, even the internal ones, but the Fenvi Bluetooth adapter connected to an internal USB2 port works fine, is it necessary to change those internal ports to Internal instead of USB3 (I don't see the option in your text) or do I leave it like that? Thank you very much for your effort, really is an excellent work, I did not think I would be able to carry it out. @eSaF Go!!! 😀 Edited June 24, 2022 by miliuco Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787006 Share on other sites More sharing options...
miliuco Posted June 24, 2022 Share Posted June 24, 2022 (edited) @eSaF This from @5T33Z0 GitHub: https://github.com/5T33Z0/OC-Little-Translated/tree/main/03_USB_Fixes/ACPI_Mapping_USB_Ports A few days ago we were talking about it. Edited June 24, 2022 by miliuco Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787010 Share on other sites More sharing options...
miliuco Posted June 24, 2022 Share Posted June 24, 2022 @eSaF If I remember well, you already have this ACPI ports map in your EFI. Made by @texem I have been working on it to made my own table, and so to learn a bit about ACPI, a deep world for me. Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787011 Share on other sites More sharing options...
Guest 5T33Z0 Posted June 24, 2022 Share Posted June 24, 2022 (edited) 3 hours ago, miliuco said: I'll tell you some things: the original table (SSDT6.aml on my system) is not dropped if I don't type the correct length in config.plist, I say this because in your text you have the length at 0 in the ports I remove for macOS, I made a mistake copying as is the code from your site for the _PLD method (in Else >> Return) until I realized that I have to leave the code that has my own table with this map all the ports are configured as USB3, even the internal ones, but the Fenvi Bluetooth adapter connected to an internal USB2 port works fine, is it necessary to change those internal ports to Internal instead of USB3 (I don't see the option in your text) or do I leave it like that? Thank you very much for your effort, really is an excellent work, I did not think I would be able to carry it out. Reveal hidden contents Congrats! About Dropping dropping USB Table: For me it works by OEM Table ID alone. But I'll make a Note I have listed all the relevant types of ports in a table in the guide - even the one required for BT: You should fix the Internal ports for Bluetooth in your table. Otherwise this can cause Sleep/Wake issues. Edited June 24, 2022 by 5T33Z0 Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787024 Share on other sites More sharing options...
miliuco Posted June 24, 2022 Share Posted June 24, 2022 (edited) @5T33Z0 Thank you again. I've put Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities { Return (GUPC (0xFF, 0xFF)) } instead of Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities { Return (GUPC (0xFF, 0x03)) } And the internal ports are shown now as Internal. This completes the job for now 🙂 I'll try ports and sleep and comment. Spoiler Edited June 24, 2022 by miliuco Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787067 Share on other sites More sharing options...
Anto65 Posted June 24, 2022 Share Posted June 24, 2022 (edited) @miliuco USB 2 nothing? I think you haven't defined the connectors for HS 5 / 6 / 7 ... The method I used ( thx @gengik84 ) Return (GENG (One, 0x00)) for connector type usb2 Edited June 24, 2022 by antuneddu Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787068 Share on other sites More sharing options...
Guest 5T33Z0 Posted June 24, 2022 Share Posted June 24, 2022 (edited) @antuneddu Can't just throw any other method and variable in the mix that's not defined in the table. Gengkis method is his method. This method is the ACPI compliant method. Edited June 24, 2022 by 5T33Z0 Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787070 Share on other sites More sharing options...
Anto65 Posted June 24, 2022 Share Posted June 24, 2022 3 minutes ago, 5T33Z0 said: @antuneddu Can't just throw any other method and variable in the mix that's not defined in the table. Gengkis method is his method. This method is the ACPI compliant method. Yes of course I just meant that the connectors for the USB2 have not been defined or am I wrong? Whatever the method used Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787072 Share on other sites More sharing options...
miliuco Posted June 24, 2022 Share Posted June 24, 2022 @antuneddu If I remember well, Hackintool app and USBMap.command methods set 03 for USB2 and USB2/USB3 ports. In fact, my USBPorts.kext and USBMap.kext used for 2 years have 03 in both port types. Even UTBMap.kext from USBToolBox also have only 03 and Internal. @5T33Z0 guide goes also in this direction. 1 Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787073 Share on other sites More sharing options...
miliuco Posted June 24, 2022 Share Posted June 24, 2022 (edited) @antuneddu I've never heard of @gengik84 method. I'm curious, where can I read about it? EDIT: found it in your macos86.it forum, right? Edited June 24, 2022 by miliuco Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787074 Share on other sites More sharing options...
Anto65 Posted June 24, 2022 Share Posted June 24, 2022 7 hours ago, miliuco said: @antuneddu I've never heard of @gengik84 method. I'm curious, where can I read about it? EDIT: found it in your macos86.it forum, right? But don't worry ... I don't want to create confusion go on like this 👍 .... just to say that this too is based on acpi method 1 Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787078 Share on other sites More sharing options...
miliuco Posted June 24, 2022 Share Posted June 24, 2022 (edited) @antuneddu I see. It seems that there are different ways to map USB ports with the ACPI method. Actually the code is similar because the concept is almost the same. That difference that you say when configuring the pure USB2 as 00 or as 03 is the one that can generate doubts. Of course, following @5T33Z0 guide everything seems to work fine, including sleep. In my system there is only one connector that is imo 255 but it could be also 00. It is an internal USB2 hub that services a group of 4 external rear black USB2 ports. In the ACPI table it is shown as a single HS13 port so it seems more logical to me to set 255 (this is the value I set when following @5T33Z0 guide). I have tried setting 00 on that HS13 connector and I really don't see any difference, everything seems to work just as well. Edited June 24, 2022 by miliuco Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787089 Share on other sites More sharing options...
MaLd0n Posted June 25, 2022 Share Posted June 25, 2022 The source for the methods is the motherboard ACPI is not mald, geng, etc. Is just duplicating one OEM method(GUPC in this case) and applying connectors type. If u have a basic ACPI knowledge u know. All credits for it is for Piker Alpha HERE and previous chipsets like 7, 8, 9, X79, x99 HERE. This method of mapping has existed for many, many years and is not my credit or gengik or texem or 5t33z0. Think about it before wrong words. We stole method GUPC from intel and apply the Piker ofc. lol Some correct words Talking about stolen? Let's check on the net. Gotta love the internet… https://www.insanelymac.com/forum/topic/321434-help-correct-dsdt-gigabayte-h97-d3h/#comment-2372715 The first repo is HERE and all from this guy stolen from there with no credits to the king, master chief, etc. and this guy is from which country? we know who is pjalm's "friends" and have many many others like script for chameleon activate partition too in clover topic, etc We've got a long history of love and hate lol Keep up the good discussion. Enjoy! Just one question.. If people use this way(a real vanilla way) why not one real vanilla way with full DSDT patch? Sounds incomplete to me only USB vanilla way. 😀 The topic has been cleared. Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787096 Share on other sites More sharing options...
miliuco Posted June 25, 2022 Share Posted June 25, 2022 @MaLd0n I do not agree with the deletion of the @5T33Z0 post, it seems to me a bad practice. Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787125 Share on other sites More sharing options...
MaLd0n Posted June 25, 2022 Share Posted June 25, 2022 @miliucofor what? lies is lies ever. If people like lies and intrigue go to "paradise" on discord. Talking about a subject without knowledge always causes problems. We know what people talking there.😆 Just focus on topic. off topic or spam is deleted, this is a bad practice. Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787143 Share on other sites More sharing options...
gengik84 Posted June 25, 2022 Share Posted June 25, 2022 @MaLd0n Hi In the guide I wrote some time ago (2018 years) there are listed all the credits maybe you haven't seen this but it doesn't matter. Discovery of Piker Alpha but he hadn't defined the connectors, at the time it was not a required thing. I added to this method the definition for usb connector type, obviously based on ACPIC documentation. Without ACPICA no one would ever have done anything 11 hours ago, MaLd0n said: The first repo is HERE You know that you wrote the guide later, this is because an Italian user, who is also present on this forum, came to your forum and you saw the work ... SSDT modified .... etc I remember you initially criticized me for this method, just see a few posts here on Insanely / Italian where you did it. You criticized me saying "it doesn't work" and obviously it didn't work if you don't drop the original OEM table You wrote your guide at Octorber 2019 but have do some time before... it's one simple example:https://www.insanelymac.com/forum/topic/336515-mojave-usb-30-gigabyte-z370-aorus-gaming-wifi-rev-1/page/2/#comment-2648418 but there are others both here and on my forum About P.Jalm : Sir do you still have a grudge for that? I just said his patches worked fine. From there you said that he stole them from you but I can't know what happened between you, do you understand? These are your things, things from many years ago and I cannot judge...I hope you understand this. I wasn't there at the time, I can only believe one or another based on what he says If you want to clarify more with me feel free to write me in PM 🙂 However, I believe that after years it would be better to stop this hatred. hackintosh is a passion but it is not life. Having i said that, in the end... in this bad time for everyone I can only wish you all the best. Peace & Love 😘 Link to comment https://www.insanelymac.com/forum/topic/352311-mapping-usb-ports-discussions/#findComment-2787162 Share on other sites More sharing options...
Recommended Posts