g7-7588-hackintosh icon indicating copy to clipboard operation
g7-7588-hackintosh copied to clipboard

"Important Battery Message", Headphones output (3.5mm) and Thunderbolt 3/USB-C Hotplug

Open yagomarquesaudio opened this issue 2 years ago • 16 comments

Hi, everybody!

First of all, I would like to thank @tarutaru9250 for making this EFI so easy to use. In my first adventure as hackintosher, I managed to install macOS Monterrey on my Dell G7 7588 and almost everything is working as expected =)

I would like to ask help to solve a few details, if possible:

  1. First, my battery manager is showing me the following warning: "The battery's capacity is significantly reduced. To restore capacity, please check your service options".

Is there a way to deactivate or fix this message? My battery is actually working as expected, I can use it for hours with my hackintosh and also with my Windows 11 (installed on my secondary SSD). My BIOS also shows that my battery health is good enough (99%).

battery

  1. I ran the post-install ALCPlugFix-Swift command as detailed in the tutorial but my headphones output (3.5mm) is still buzzing. I use an audio interface to work and this is not a really necessary thing for me to fix, but is there a way to make it work as expected?

  2. I can see in the changelog (https://github.com/tarutaru9250/g7-7588-hackintosh/blob/main/Changelog.md) that there's a fix for Thunderbolt 3/USB-C hotplug function, but this was dropped since the June 2021 EFI update. Is there a way for me to use this hotplug fix? I use a TB3 DSP Accelerator and I always forgot to turn it on before booting my hackintosh, so I always need to restart my computer to make my TB3 fully loaded on my hackintosh. This hotplug fix would be a life saver for me =D

Thanks in advance and I've learned a lot about hackintoshing with you @tarutaru9250!

yagomarquesaudio avatar Mar 01 '22 21:03 yagomarquesaudio

Congratulation! Glad to here that you're success to install macOS on Dell G7. Here is my answers for your questions:

  1. Just because of 99% so the message will show up. There is no way to disable it except you replace the new battery with 100% 😂. Forget about it, keep using, there is no problem.
  2. The ALCPlugFix-Swift works correctly for everyone. You have to make sure move the Post-install folder to Desktop then run the script. If there is no error message in Terminal window, means success. Also there is a popup will show up asking for the daemon of ALCPlugFix to run, remember to accept it.
  3. The reason I removed the TB3 hotplug is it was buggy since Apple has changed the code about USB at Big Sur 11.3.1, the kext IOElectrify had an issue. Actually now it can work correctly but if keep enabling the TB3 hotplug, the battery life will be not good. It will drain faster than normal. Also because I use the USB-C port for external display so I think it's not necessary to enable the hotplug again 🤣.

13thdemarch avatar Mar 01 '22 23:03 13thdemarch

If you have any TB3 device just make sure you've plugged it first then power on the machine. But if you really really need the TB3 hotplug fix, try to check the old commits, start from January last year, or maybe even older. I'm pretty sure there is at least an existed commit that I didn't merge every hotpatches to one file. That hotpatch name SSDT-TB3.aml if I remember correctly. Download it and download the IOElectrify kext, put them to your current EFI and remember to snapshot.

13thdemarch avatar Mar 01 '22 23:03 13thdemarch

Congratulation! Glad to here that you're success to install macOS on Dell G7. Here is my answers for your questions:

  1. Just because of 99% so the message will show up. There is no way to disable it except you replace the new battery with 100% 😂. Forget about it, keep using, there is no problem.
  2. The ALCPlugFix-Swift works correctly for everyone. You have to make sure move the Post-install folder to Desktop then run the script. If there is no error message in Terminal window, means success. Also there is a popup will show up asking for the daemon of ALCPlugFix to run, remember to accept it.
  3. The reason I removed the TB3 hotplug is it was buggy since Apple has changed the code about USB at Big Sur 11.3.1, the kext IOElectrify had an issue. Actually now it can work correctly but if keep enabling the TB3 hotplug, the battery life will be not good. It will drain faster than normal. Also because I use the USB-C port for external display so I think it's not necessary to enable the hotplug again 🤣.

Hey @tarutaru9250 thank you so much for your fast reply!

I suspected that this 99% thing on my battery could be the cause of this warning message, thanks for confirming it!

For the ALCPlugFix-Swift, I tried uninstalling and installing it again but I got a few errors =(, could you help me on that?

Uninstall message: uninstall

Install message: install

I think that for some reason my system is not giving enough permission for the installer to copy and change files, even though I gave permission on "Security & Privacy".

For the TB3 Hotplug fix, I will try to do what you suggested and download the SSDT-TB3.aml ACPI file and the IOElectrify kext.

Thanks in advance!

yagomarquesaudio avatar Mar 02 '22 00:03 yagomarquesaudio

Ok I got it. There is an issue that there is no read/write permission. Maybe because of my fault last year when I was making the HiDPI script...🥲 Please try to type the following command in Terminal one by one:

cd Desktop/Post-Install/ALCPlugFix-Swift (to change the destination to ALCPlugFix folder. If ALCPlugFix-Swift/ shows up, means successfully)
chmod a+x install.cmd
chmod a+x com.black-dragon74.ALCPlugFix.plist
chmod a+x com.black-dragon74.ALCPlugFix.config.plist
chmod a+x ALCPlugFix-Swift

Then just run the install.command file in the ALCPlugFix folder.

For USB-C/TB3 hotplug, you can grab this file from my old commit: https://github.com/tarutaru9250/g7-7588-hackintosh/blob/1cc4158b52d037afbc3bd89819fb2c5a0525ca01/EFI/OC/ACPI/SSDT-USBC.aml

13thdemarch avatar Mar 02 '22 01:03 13thdemarch

Ok I got it. There is an issue that there is no read/write permission. Maybe because of my fault last year when I was making the HiDPI script...🥲 Please try to type the following command in Terminal one by one:

cd Desktop/Post-Install/ALCPlugFix-Swift (to change the destination to ALCPlugFix folder. If ALCPlugFix-Swift/ shows up, means successfully)
chmod a+x install.cmd
chmod a+x com.black-dragon74.ALCPlugFix.plist
chmod a+x com.black-dragon74.ALCPlugFix.config.plist
chmod a+x ALCPlugFix-Swift

Then just run the install.command file in the ALCPlugFix folder.

For USB-C/TB3 hotplug, you can grab this file from my old commit: https://github.com/tarutaru9250/g7-7588-hackintosh/blob/1cc4158b52d037afbc3bd89819fb2c5a0525ca01/EFI/OC/ACPI/SSDT-USBC.aml

Hey!

I did what you described and the installation process worked like a charm. My macOS now recognizes when I plug my headphone on the 3.5mm port and the buzz is gone, but... there's no sound at all =(

Do you know anything else I could do? Maybe user another ALC Layout ID?

And about the USB-C/TB3 hotplug, it worked! I downloaded the SSDT file from your old commit, then searched for the IOElectrify.kext here at Github, copied and pasted all the files to the correct folders, did the clean snapshot trick with ProperTree and it's working like expected =D. Thank you sooooo much!

yagomarquesaudio avatar Mar 02 '22 04:03 yagomarquesaudio

for ALC256 on Dell laptops, id 14 is the best choice because the output is very good and it has subwoofer. If you plugged any sound device to 3.5mm port, try to change the output when click to the the volume icon. This id has 2 outputs and they are different, one for internal speaker, one for external output. Try to switch between them.

13thdemarch avatar Mar 02 '22 04:03 13thdemarch

for ALC256 on Dell laptops, id 14 is the best choice because the output is very good and it has subwoofer. If you plugged any sound device to 3.5mm port, try to change the output when click to the the volume icon. This id has 2 outputs and they are different, one for internal speaker, one for external output. Try to switch between them.

I tried what you suggested and had no success =(, but no problem at all since at least I fixed that loud buzz! Now I won't hear if I plug my headphone by mistake =D

Again, thank you so much for your help, now my hackintosh is fully functional since the TB3 hotplug fix was the thing I needed the most!

By the way, have you ever tried installing High Sierra on your G7 7588?

I'm planning to try it someday just to see how powerful it will be for video editing with my eGU (1060 Max-Q, supported only till High Sierra with NVidia Web Driver). I tried just once but had no success booting OC, then I tried installing Monterrey and here I am after my first attempt =D

yagomarquesaudio avatar Mar 02 '22 06:03 yagomarquesaudio

Yes I tried. There is no way to enable Nvidia card because it is Optimus card 🥲

13thdemarch avatar Mar 02 '22 07:03 13thdemarch

Yes I tried. There is no way to enable Nvidia card because it is Optimus card 🥲

That's sad =(, but at least I can boot to Windows 11 and use all my eGPU power to edit videos and gaming =)

Just one last thing: today I realized that my USB ports are deactivated after a long sleep time. I'm not sure how much time in sleep mode it takes, but today I left home and when I got back, I woke up my hackintosh and all the USB ports were deactivated (which means I had to unplug and re-plug everything, but I was so lazy to do it with all my peripherals that I decided to just restart my hackintosh).

Could you help me to solve this one last detail? Thanks in advance again!

yagomarquesaudio avatar Mar 02 '22 23:03 yagomarquesaudio

Yes I tried. There is no way to enable Nvidia card because it is Optimus card 🥲

That's sad =(, but at least I can boot to Windows 11 and use all my eGPU power to edit videos and gaming =)

Just one last thing: today I realized that my USB ports are deactivated after a long sleep time. I'm not sure how much time in sleep mode it takes, but today I left home and when I got back, I woke up my hackintosh and all the USB ports were deactivated (which means I had to unplug and re-plug everything, but I was so lazy to do it with all my peripherals that I decided to just restart my hackintosh).

Could you help me to solve this one last detail? Thanks in advance again!

Another detail about system sleeping: accordingly to this topic #9 post (https://www.tonymacx86.com/threads/wake-by-keyboard.311841/) SSDT-GPRW.AML disables USB wake up, which is another thing I wish I could do (wake up from sleeping by pressing the space key on my USB keyboard, or just moving my USB mouse, instead of opening my Dell G7 7588 lid).

What do you think about this? Do you think it's possible to remove the SSDT-GPRW.AML from your Dawvin compiled ACPI? Would it be beneficial?

Thanks in advance!

yagomarquesaudio avatar Mar 02 '22 23:03 yagomarquesaudio

About Wake from USB, first make sure you have already enabled Wake from USB in BIOS. Then search on Dortania site, there is a fix about wake from usb issue, you may need to add acpi-wake-type property for USB device path in the config.plist.

13thdemarch avatar Mar 03 '22 00:03 13thdemarch

About Wake from USB, first make sure you have already enabled Wake from USB in BIOS. Then search on Dortania site, there is a fix about wake from usb issue, you may need to add acpi-wake-type property for USB device path in the config.plist.

Hi, thanks again for your help!

I enabled "Wake from USB" in BIOS and searched for the acpi-wake-type property file. Turns out this file is already patched on your EFI.

Now, when I put my hackintosh to sleep, it awakes automatically after 5/10 seconds after the fans stop =(. Do you know what else I can try?

If I disable the "Wake from USB" in BIOS, my hackintosh sleep as expected, but I can't wake it touching my USB keyboard/mouse, and after I open my Dell G7 7588 lid, I need to unplug and plug my USB keyboard again =(

Thanks in advance!

yagomarquesaudio avatar Mar 03 '22 03:03 yagomarquesaudio

That's weird... 🥲

  1. It awakes automatically because maybe there is a USB device or power states change while sleeping, but that's pretty weird because I have already patched the GPRW method 🤔
  2. Ofc if "Wake from USB" option is disabled in BIOS, it will sleep correctly. In the past there are some options I always did to let it sleep:
  • Close the lid.
  • Apple icon > Sleep then close the lid.
  • Press Fn + Insert. And after wake all USB ports and even bluetooth are still fine.

Can you try the following thing:

  • Is your TB3 device plugged while sleeping? I'm not sure but I'm thinking maybe because of it. Try to unplug it then sleep again.
  • After choose Sleep, try to untouch everything and let see what happen.
  • Try to update the BIOS to the lastest version (Optional).

And there is a very very small issue recently about USB ports, that make me annoying and it is the reason I have paused using Hack for a month. I'm not sure maybe because of OpenCore or other reasons. Sometimes all USB ports lost the power randomly while working, even bluetooth. I have to restart my laptop to make them work back again. I don't know if it is similar to your situation or not.

13thdemarch avatar Mar 03 '22 03:03 13thdemarch

That's weird... 🥲

  1. It awakes automatically because maybe there is a USB device or power states change while sleeping, but that's pretty weird because I have already patched the GPRW method 🤔
  2. Ofc if "Wake from USB" option is disabled in BIOS, it will sleep correctly. In the past there are some options I always did to let it sleep:
  • Close the lid.
  • Apple icon > Sleep then close the lid.
  • Press Fn + Insert. And after wake all USB ports and even bluetooth are still fine.

Can you try the following thing:

  • Is your TB3 device plugged while sleeping? I'm not sure but I'm thinking maybe because of it. Try to unplug it then sleep again.
  • After choose Sleep, try to untouch everything and let see what happen.
  • Try to update the BIOS to the lastest version (Optional).

And there is a very very small issue recently about USB ports, that make me annoying and it is the reason I have paused using Hack for a month. I'm not sure maybe because of OpenCore or other reasons. Sometimes all USB ports lost the power randomly while working, even bluetooth. I have to restart my laptop to make them work back again. I don't know if it is similar to your situation or not.

Hey!

Thanks again for your help! I just figured out that if I left my Elgato Cam Link 4K connected to any of the USB ports and try to sleep my system, my hackintosh won't sleep properly as I explained earlier. For some reason, this USB device is preventing my hack from sleeping.

From your experience, do you think there's a way to fix this behavior? I can easily unplug this device before putting my system to sleep, but I'm curious about any possible workaround =D

I also figured out that if I disable "Wake from USB" in my BIOS, my system will sleep as expected, but my gaming keyboard won't work after the system awakes. But what's funny about this behaviour is that if I plug my gaming keyboard (HyperX Alloy FPS) on another USB hub that my mouse isn't connected, the keyboard will work normally hahahaha. That's interesting!

I've never had any random USB port drop for now, I've been using this hack for almost a month and for 4~8 everyday for work.

Thanks again!

yagomarquesaudio avatar Mar 03 '22 04:03 yagomarquesaudio

well, so in my option, better you should disable Wake from USB and wake your G7 with power button or Fn + Insert combo key, it's not a bad option 🤣

13thdemarch avatar Mar 03 '22 04:03 13thdemarch

@yagomarquesaudio Hi, sorry if I disturb you in this time. I have just remove the GPRW method in the SSDT and its rename in config.plist. Would you mind if you test the sleep/wake again?. For improving the EFI.

Because I'm running Windows 11 too so I have this universal case for testing:

  1. BIOS is restored to BIOS Default (Latest version, currently is 1.19.0).
  • Thunderbolt: User Authorize -> No Security (Because you have TB3 device).
  • Virtualization for Direct I/O (aka Vt-d): Disabled.
  • Wake on LAN: Disabled.
  • Wake on USB: Disabled.
  • Secure Boot: Disabled (ofc, except you have already had custom SecureBoot keys for OpenCore binaries).

Other settings leave by default. On my G7 I'm enabling even Intel SGX (System Controller, 128MB), PTT On (TPM 2.0), etc... Just for Windows 11.

  1. On macOS, Battery and Power Adapter are default by macOS. Try to not change anything. You can check my current setting: image image

  2. About the hibernation, change it to 25 for better battery, more information is here. You can let it sleep all day and the result is very impressive with a 56Wh battery. Make sure in BIOS set the power to Adaptive.

Note: The test may get issue(s) because I don't have any TB3 device, so I'm not sure if everything will be worked correctly or not. If you have time, please help me to test, I will upload the update for this month asap.

Thank you very much!

13thdemarch avatar Mar 08 '22 16:03 13thdemarch