Coder Social home page Coder Social logo

combojack's Introduction

Hackintosh combojack support for alc256/alc255.
Confirmed to work on dell xps 13 9350/9360(alc256) and Xiaomi Air(i5-7200U, alc255)
1. Delete CodecCommander.kext,put ComboJack_Installer/VerbStub.kext in Clover/kexts/Other
2. Run ComboJack_Installer/install.sh in terminal and reboot
3. Done. When you attach a headphone there will be a popup asking about headphone type.

I know CleanMyMac reports this as mining malware, but I don't think CleanMyMac is a serious anti-malware. If you really believe these false alarms then compile by yourself (don't ask how).


黑苹果上alc256/alc255的耳麦支持
在xps 13 9350/9360(alc256)和小米Air(i5-7200U, alc255)上测试可用
1. 删除 CodecCommander.kext,把ComboJack_Installer文件夹的VerbStub.kext放进Clover/kexts/Other
2. 终端运行 ComboJack_Installer/install.sh,重启
3. 插入耳机的时候,会弹出对话框询问你插入的是耳机还是耳塞

combojack's People

Contributors

chencaidy avatar diepeterpan avatar maz-1 avatar the-darkvoid avatar wadimw avatar xma avatar yakimka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

combojack's Issues

Catalina Support

While this fix has been working great in Mojave. I received the attached error in latest Catalina beta.
Screenshot 2019-10-06 at 2 49 50 PM

Xcode version

Is possible to lower the xcode compatible version for ComboJack Project ? Not everyone can have xcode 12.
Thanks.

Headphones after sleep

Hi,
I have a dell XPS 9560.

I put my computer to sleep with headphones plugged in, after wake I have no sound. If I start ComboJack by hand and select Headphones in the popup, sound is back.

My question is : is the windows asking for Line-in, Headset or Headphones is supposed to appear at wake ?

Thanks for that dev.

Not working on Catalina ALC255

I've installed this fix on my Mi Notebook Air (ALC255) with macOS Catalina following all steps in README.txt.
Popup window appears when I plug my headset, but it does not have any effect. Even if I choose Headset, it works the same like without fix (only output and in from laptop's mic).
So, I can't get headset mic working.
Ask me for any specs or logs if you need them.

Problems with ALC256

The computer can not use the headset after sleep wake up, plug in the headset output noise!

Support for ALC235

Hi Guys, like your script. Would it be possible to add support for ALC 235?

Issues with macOS Big Sur

So I have this optiplex 3040 hackintosh. I used catalina with it and the combojack was running successfully. After update to big sur, it doesn't read my mic on my headphones and the option (combojack notification) doesn't appear anymore. Any fix?

Did not work on Big Sur beta 9 OC 6.2 ALC256

I did not work for me on Big Sur beta 9 OC 6.2 ALC256; the responsecode were 8 bytes, unsigned long and the first six byte were all high. Hack a code fixed it - responsecode = (responsecode << 40) >> 40;

while(true)
{ {
//wait until user logged in //wait until user logged in
@@ -660,7 +662,11 @@ uint32_t CFPopUpMenu()
kCFUserNotificationOtherResponse = 2, kCFUserNotificationOtherResponse = 2,
kCFUserNotificationCancelResponse = 3 kCFUserNotificationCancelResponse = 3
*/ */

fprintf(stderr, "Response code after: %lu.\n", responsecode);
**responsecode = (responsecode << 40) >> 40;**
fprintf(stderr, "Response code fixed: %lu.\n", responsecode);

switch (responsecode)	    switch (responsecode)

SIP-compatible paths in install.sh file

Hello. After recently discovering some trouble installing ComboJack in Catalina, I realized that I was forced to install all files originally assigned to /usr/bin into /usr/local/bin instead. Advanced users may figure this out on their own, but I think it would be helpful to revise the install.sh file accordingly. Here are the paths that would be rewritten:

For install.sh...

sudo cp ComboJack /usr/local/bin
sudo chmod 755 /usr/local/bin/ComboJack
sudo chown root:wheel /usr/local/bin/ComboJack
sudo cp hda-verb /usr/local/bin
sudo chmod 755 /usr/local/bin/hda-verb
sudo chown root:wheel /usr/local/bin/hda-verb

For com.XPS.ComboJack.plist...

<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/ComboJack</string>
</array>

Thank you for the release, by the way. Cheers!

Will check on Alc255 Aka Alc3223

Hope ,it work on alc255 ,do you have any idea its similar to alc255 or you have correct path for external headset cuz headphone mic never worked on my dell vostro 3546 .currently using insanelyDeepak layout I'd 17 or 3 by mirone. Do you have any suggestion for your layout id for alc255 to work with this ..
Will update after 15-12

Latest commit does not compile

The latest committed version does not compile properly on XCode 10.1 (MacOS Mojave).

906:23: error: use of undeclared identifier 'NSJSONSerialization'
id l10nObj = [NSJSONSerialization`

Resolving this error results in a linking error

Undefined symbols for architecture x86_64:
"_IOAllowPowerChange", referenced from:
  _SleepWakeCallBack in hda-verb.o
"_IOConnectCallScalarMethod", referenced from:
  _VerbCommand in hda-verb.o
 "_IODeregisterForSystemPower", referenced from:
  _CloseServiceConnection in hda-verb.o
  _main in hda-verb.o

Appreciate it if the git repo issues can be resolved to allow successful compilation using either build.sh or XCode GUI.

Help with getting COEF values for 10ec_0256

Hello @maz-1 thanks again for your work on this Combojack and helping getting it to work for my Realtek ALC256 system! I was wondering if you could help. I was trying to see if we could get our codec to work without having to use Combojack + Verbstub. I've been talking with some developers that help submit changes for AppleALC and they mentioned if I could provide the exact COEF that our codec uses for the wired headset port to switch the headset mic to LineIn to make it work.

I looked through your hda_verb.m and found the following 3 sections regarding COEF for my particular 0x19 NID (I cut some lines to only show the 10ec0256 and to be better readable here)

"fprintf(stderr, "Jack Status: headset plugged in. Checking type...\n");

switch (codecID)
{
    case 0x10ec0256:
        VerbCommand(HDA_VERB(0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x24)); // 0x24 corresponds to IN (0x20) + VREF 80 (0x04)
        WRITE_COEF(0x45, 0xd089);
        WRITE_COEF(0x49, 0x0149);
        usleep(350000);
        // Read register 0x46
        SetCoefIndex.verb = HDA_VERB(nid, AC_VERB_SET_COEF_INDEX, 0x46); 
        SetCoefIndex.res = VerbCommand(SetCoefIndex.verb); 
        GetProcCoef.verb = HDA_VERB(nid, AC_VERB_GET_PROC_COEF, 0x46);
        GetProcCoef.res = VerbCommand(GetProcCoef.verb);
        break;

fprintf(stderr, "Jack Status: headset (CTIA/iPhone) plugged in.\n");

//alc_headset_mode_ctia
switch (codecID)
{
    case 0x10ec0256:
        WRITE_COEF(0x45, 0xd489); //Set to CTIA type 
        WRITE_COEF(0x1b, 0x0c6b);
        WRITE_COEFEX(0x57, 0x03, 0x8ea6);
        break;

fprintf(stderr, "Jack Status: headset (OMTP/Nokia) plugged in.\n");

//alc256
switch (codecID)
{
    case 0x10ec0256:
        WRITE_COEF(0x45, 0xe489);
        WRITE_COEF(0x1b, 0x0c6b);
        WRITE_COEFEX(0x57, 0x03, 0x8ea6);
        break;"

I was wondering if you could help me provide me exactly what coefficient that is provided to the codec and if possible the terminal commands (ex hda-verb) just so I could help provide that for them? I just don't know where else to go to grab this information.

I am just trying to make the whole process easier as I've noticed a lot of people use CodecCommander with AppleALC and want to make sure if this process is ever abandoned or not updated, that we will have another working solution for headset mic for our codecs.

Please let me know if you need anything and thanks again!

Great Work, but just noticed one thing

Hello, wanted to thank you for posting this as was searching Github and came across this section. I tried this on my Inspiron 7567 which has the Realtek ALC256 and this is the first solution for the line in mic to show up for headsets! Just to point out as I realized this is only a couple days old and not trying to complain or deter you from improving this, but on my laptop, sound suddenly goes in and out from the headphones with no warning. It's a weird way to describe it as sometimes, sound will also stutter before no sound comes through. I am using your AppleALC that I found for your XPS just so you know.

I am just speculating, but when I used to have my HP Envy, I would get similar audio issues, when the line in Mic was being activated, so wonder if that is what's happening in this case. Hope this helps and let me know if you need me to test anything or produce anything to help?

Crack sound and other noises

When plugged in my wired headphone, as long there is not any audio playback for some time and I start any application with audio, there is a strong crack sound or similar noises, really hurting my ears.

ALC292 Support

Please Add ALC292 Support for Dell Latitude E6440. Its external mic do not work.
More Details are here
Also Linux Dump is there too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.