LuletterSoul / Dell-XPS15-9570-macOS

let macOS Mojave/macOS Catalina run on Dell XPS 9570 4K
402 stars 75 forks source link

Headphone Jack fails without Power Adapter - Loud Noise #73

Closed mceykes closed 4 years ago

mceykes commented 4 years ago

Has anyone else this issue? When I unplug the power adapter, the headphone jack continues to work for a while, then after a random amount of time, (usually a few seconds but also goes up to 10-20 minutes) it produces loud, pink noise that does not stop when I pause the current audio / music.

I have the 1080p model, and installed the latest EFI, with BIOS at Version 1.13.0. I currently have the layout-id set to 30, I also tried 72 but then there was no sound at all.

I've been trying and one time, when restarting the system, this debug message appeared:

Headphone Jack Debug?

Afterwards it was okay and Audio seemed to worked fine. After restarting the system again, it was back to normal and failed immediately.

Any Ideas? Thanks!

artan13 commented 4 years ago

Hi first of all I just want to say thanks for your great work! I am also having the same issue with getting a loud buzzing noise coming from my headphone jack. I am having this issue while running on battery. Tried changing layout id to 72. That made the sound worse. Any ideas, on how to resolve this issue.

mceykes commented 4 years ago

https://github.com/acidanthera/AppleALC/wiki/Supported-codecs here it says layout 3, 11, 13, 21, 22, 28, 29, 30, 32, 47, 66, 72, 99 are supported for ALC 298. also just testing..

artan13 commented 4 years ago

Only ones working for me were 21,22,29,30. However my issue of the buzzing noise still occurs whenever laptop wakes from sleep. So I guess I'll just have to stop laptop from falling a sleep.

On Sun, 27 Oct 2019, 23:26 mceykes, notifications@github.com wrote:

https://github.com/acidanthera/AppleALC/wiki/Supported-codecs here it says layout 3, 11, 13, 21, 22, 28, 29, 30, 32, 47, 66, 72, 99 are supported for ALC 298. also just testing..

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/LuletterSoul/Dell-XPS-15-9570-macOS-Mojave/issues/73?email_source=notifications&email_token=ALMRW7FZNNQSWMNKZHXSVMLQQYIPPA5CNFSM4JFTXVU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECLK5VY#issuecomment-546746071, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMRW7F7TWH2STVNO3GUAODQQYIPPANCNFSM4JFTXVUQ .

mceykes commented 4 years ago

I also tried them all and the same ones work at first: 21,22,29,30 - however, the only one that works for more than a few seconds has been 21. I will try this one tomorrow for a longer period of time and report how it works. I also have the issue with sleep that you describe. Only noticed it now when testing it.. haha. Yeah better keep the laptop awake for now.

mceykes commented 4 years ago

This morning layout id 21 also failed a few seconds after I started playing some audio. @artan13 but you also have the same issue that it makes loud noise when you play audio, regardless of the sleep issue?

artan13 commented 4 years ago

Hi. I've gone ahead and used bravariancake's guide for the 9570. It has fixed the main audio issues. But my audio still has buzzing noise issue if I put it to sleep so I'm using amphetamine app to keep it awake. I've linked the guide below.

https://github.com/bavariancake/XPS9570-macOS

On Mon, 28 Oct 2019, 13:55 mceykes, notifications@github.com wrote:

This morning layout id 21 also failed a few seconds after I started playing some audio. @artan13 https://github.com/artan13 but you also have the same issue that it makes loud noise when you play audio, regardless of the sleep issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LuletterSoul/Dell-XPS-15-9570-macOS-Mojave/issues/73?email_source=notifications&email_token=ALMRW7FEXRWJBCHNIYRUPLTQQ3VM7A5CNFSM4JFTXVU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECM6PLA#issuecomment-546957228, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMRW7AYYBRX5E2ZZEAK64LQQ3VM7ANCNFSM4JFTXVUQ .

mceykes commented 4 years ago

I just tried this one but the audio issue remains. Did you do any tweaks to his EFI? I noticed that the trackpad was not lagging as much as the current EFI LuLetterSoul provided. How is it with you?

artan13 commented 4 years ago

I didn't need to do any tweaks. Followed the guide to the letter and everything just works.

On Mon, 28 Oct 2019, 20:04 mceykes, notifications@github.com wrote:

I just tried this one but the audio issue remains. Did you do any tweaks to his EFI? I noticed that the trackpad was not lagging as much as the current EFI LuLetterSoul provided. How is it with you?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LuletterSoul/Dell-XPS-15-9570-macOS-Mojave/issues/73?email_source=notifications&email_token=ALMRW7BW6BN64AATO32KWZLQQ5AVXA5CNFSM4JFTXVU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOGX4I#issuecomment-547122161, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMRW7BGQMPKHR5RIZQNWH3QQ5AVXANCNFSM4JFTXVUQ .

OldDream commented 4 years ago

guys, just use this https://github.com/jardenliu/ALC298PlugFix,with layoutId 30,everything works fine

yongjiajun commented 4 years ago

I fixed the issue by removing ALC298PlugFix (launch daemons, binaries and stuff) and installing ComboJack by @hackintosh-stuff.

Everything works fine even after sleep and buzzing no longer occurs. WIth ComboJack, I also get to use the in-line microphone with the line-in option when selecting headset in the ComboJack pop-up. FYI I'm using layout-id 30.

artan13 commented 4 years ago

Hi

Thanks for your advice. Do you know how to remove launch demons and binaries without having to reinstall the whole OS.

Thanks.

On Sun, 3 Nov 2019 at 06:56, Jia Jun Yong notifications@github.com wrote:

I fixed the issue by removing ALC298PlugFix (launch daemons, binaries and stuff) and installing ComboJack https://github.com/hackintosh-stuff/ComboJack by @hackintosh-stuff https://github.com/hackintosh-stuff.

Everything works fine even after sleep and buzzing no longer occurs. WIth ComboJack, I also get to use the in-line microphone with the line-in option when selecting headset in the ComboJack pop-up. FYI I'm using layout-id 30.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LuletterSoul/Dell-XPS-15-9570-macOS-Mojave/issues/73?email_source=notifications&email_token=ALMRW7HIMDX2W7V4KYI4T4TQRZY3NA5CNFSM4JFTXVU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC5MGQQ#issuecomment-549110594, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMRW7ABCOTP46BI6VAJFSTQRZY3NANCNFSM4JFTXVUQ .

yongjiajun commented 4 years ago

Hi Thanks for your advice. Do you know how to remove launch demons and binaries without having to reinstall the whole OS. Thanks.

Simply run these commands in your terminal:

sudo launchctl unload -w /Library/LaunchAgents/good.win.ALCPlugFix.plist
sudo rm -rf /usr/bin/ALCPlugFix
sudo rm -rf /usr/bin/hda-verb
sudo rm -rf /Library/LaunchAgents/good.win.ALCPlugFix.plist

then install ComboJack (remember to remove CodecCommander kext and add VerbStub kext).

artan13 commented 4 years ago

Hi Thanks for your advice. Do you know how to remove launch demons and binaries without having to reinstall the whole OS. Thanks.

Simply run these commands in your terminal:

sudo launchctl unload -w /Library/LaunchAgents/good.win.ALCPlugFix.plist
sudo rm -rf /usr/bin/ALCPlugFix
sudo rm -rf /usr/bin/hda-verb
sudo rm -rf /Library/LaunchAgents/good.win.ALCPlugFix.plist

then install ComboJack (remember to remove CodecCommander kext and add VerbStub kext).

Hi. Audio works perfectly now. Thanks

mceykes commented 4 years ago

hey guys can you help me out again? I just noticed, that the ComboJack install was not successful - what made it work was the EFI I used by Bavarian Cake (I installed it at the same time - seemed to work so I did not worry about it). However, I had some other issues with BavarianCakes EFI so I switched to Luletters' and have now trouble installing ComboJack als @yongjiajun describes.

I did not have ALCPlugFix installed so I jumped right to the ComboJack installation yesterday. I followed the steps that are outlined in the readme (delete CodecCommander and add VerbStub) and when I paste the install.sh in the Terminal it keeps hanging at "Init.codec." for ever. Any Ideas what I might be missing? Screenshot 2019-11-15 at 12 30 54

After a while it says "Jack not ready. Checking again in 1 second..." and this line repeats endlessly

mceykes commented 4 years ago

Nevermind - I got it working. Thanks.

erenatas commented 4 years ago

@mceykes Can you please tell how did you make it step by step so that we can do it?

mceykes commented 4 years ago

So I did not have ALCPlugFix installed before. And I just did this: Download ComboJack and place it on your System drive somewhere. Delete CodecComander kext in your EFI and place the Verbstub.kext there. Open the Install.sh txt document Open Terminal

run these commands: cd dirname (insert your directory example: /Users/YOURNAME/ComboJack)

Then skip the legacy part in the Install.sh and just run this. Again insert the directoryname for "dirname":

cd "$( dirname "${BASH_SOURCE[0]}" )" mkdir -p /usr/local/sbin sudo cp ComboJack /usr/local/sbin sudo chmod 755 /usr/local/sbin/ComboJack sudo chown root:wheel /usr/local/sbin/ComboJack sudo spctl --add /usr/local/sbin/ComboJack sudo cp hda-verb /usr/local/sbin

sudo chmod 755 /usr/local/sbin/hda-verb

sudo chown root:wheel /usr/local/sbin/hda-verb

sudo mkdir -p /usr/local/share/ComboJack/ sudo cp Headphone.icns /usr/local/share/ComboJack/ sudo chmod 644 /usr/local/share/ComboJack/Headphone.icns sudo cp l10n.json /usr/local/share/ComboJack/ sudo chmod 644 /usr/local/share/ComboJack/l10n.json sudo cp com.XPS.ComboJack.plist /Library/LaunchDaemons/ sudo chmod 644 /Library/LaunchDaemons/com.XPS.ComboJack.plist sudo chown root:wheel /Library/LaunchDaemons/com.XPS.ComboJack.plist sudo launchctl load /Library/LaunchDaemons/com.XPS.ComboJack.plist echo echo "Please reboot! Also, it may be a good idea to turn off \"Use" echo "ambient noise reduction\" when using an input method other than" echo "the internal mic (meaning line-in, headset mic). As always: YMMV." echo echo "You can check to see if the watcher is working in the IORegistry:" echo "there should be a device named \"VerbStubUserClient\" attached to" echo "\"com_XPS_SetVerb\" somewhere within the \"HDEF\" entry's hierarchy." echo echo "Enjoy!" echo exit 0

Reboot and done.

This made it work for me.