Jump to content

darkera13

Members
  • Posts

    25
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by darkera13

  1. I got a solution for max brightness at boot (dont need display sleep) for HD4000 by patch AppleInterFramebufferCarpri.kext (HD3000 is AppleIntelSNBGraphicsFB). Using HexEdit open AppleInterFramebufferCarpri.kext/Contents/MacOS/AppleInterFramebufferCarpri and do follow:

     

    10.9

    Search: 00000040 10070000 1007
    Replace: 00000040 12130000 1213

    10.8

    Search: 00000020 10070000 1007
    Replace: 00000020 12130000 1213

    Clover patch 10.9

    <dict>
    				<key>Comment</key>
    				<string>Max Brightness</string>
    				<key>Find</key>
    				<data>
    				AAAAQBAHAAAQBw==
    				</data>
    				<key>Name</key>
    				<string>AppleIntelFramebufferCapri</string>
    				<key>Replace</key>
    				<data>
    				AAAAQBITAAASEw==
    				</data>
    			</dict>
    

    P/S: I dont remember where i get this information. Sorry to the author. 

    • Like 2
  2. That is not even needed... The DSDT handles the backlight by itself when it wakes. Take a look at the EC0W method. All you are doing is setting the backlight to the maximum when the lid is being opened.

    But my keyboard backlight always off when lid open, work fine if wake by power button. I dont want use Fn + F4 to turn it on :).

     

    Update: After check the EC0W method, i find out the way to make it work as it should be. Now when open lid, the keyboard backlight accurately restore the state before sleep. Thanks for your suggestion.

     

    Search:

    WRAM (0x044B, KBBR)
    

    Repace:

    If (LGreater (KBBR, Zero))
                    {
                        WRAM (0x044B, KBBR)
                    }
                    Else
                    {
                        WRAM (0x044B, KLDT)
                    }
    
  3. Fix keyboard backlight not auto wake when wake on LID. Must apply this patch first https://osxlatitude.com/index.php?/topic/1968-fn-hotkey-driver-for-asus-notebooks/?p=23959

     

    Add to _LID Method:

                    If (LEqual (Local0, One))
                    {
                        ^^ATKD.SKBL (0x03)
                    }
    

    Like this:

    Method (_LID, 0, NotSerialized)  // _LID: Lid Status
                {
                    Store (One, Local0)
                    Store (^^PCI0.LPCB.EC0.RPIN (0x46), Local0)
                    If (LEqual (Local0, Ones))
                    {
                        Store (One, Local0)
                    }
    
                    If (And (VGAF, One))
                    {
                        Store (One, ^^PCI0.IGPU.CLID)
                    }
    
                    If (LEqual (Local0, One))
                    {
                        ^^ATKD.SKBL (0x03)
                    }
    
                    Return (Local0)
                }
    
  4. Ok, i tried the new AppleHDA but still no sound from the speakers, internal mic & headphones all seem to work ok.

     

    So i went back and took a long look at my source data and re-read EMlyDinEsH's guide at the start of the thread and i think i found something, as i explaned i used a script to process the codec_dump and produce the verbs.txt file, i went through the script to understand how it uses its rules to workout the verb data and guess what, it does not have a rule for EAPD.

     

    After looking at the the guide again it says that if you have a EAPD on node 14 (speaker) then you must calculate separate verb data for the EAPD otherwise no sound through the speakers ?

     

    Do you think this could be the problem ?, i've attached the new verb.txt with the additional EAPD verb value

     

    Cheers

    Jay

    Of course, EAPD added but still not working.

  5. Thank you for your post, its almost there,

     

    The audio only works on headphones not speakers, the on screen volume changes and speaker icon are all working as if the speakers are working but there is no sound from the speakers, as i said headphones work great and the internal mic gain is bang on now, it must be something to do with the speakers gate /pin switching ?

     

    The audio through the headphones is working great now, perfect, no looping and is very clear with no noise which is a big improvement on the SL kexts i was using, it also seems to work fine after sleep and wake up .. etc., Thank you so much for your help,  this is so close now, just the speakers, is there anything i can do to gather any more info to debug this ?

     

    Cheers

    Jay

    Try again. If still not work, I think we should wait for the help of EMlyDinEsH.

    AppleHDA.kext.zip

  6.  

    Hi there,

     

    Many thanks for taking a look at my sound issues and having a go at trying to get it to work, I've just finished trying out the DSDT and AppleHDA with the following results.

     

    1. Once OSX is booted, there is the speaker icon in the top menu bar and i can adjust the volume level with the appropriate fn keys and the on screen display shows the volume level going up and down, however there is no sound. playing a mp3 or a youtube stream also results in no sound.

     

    2. On the sound preference plane the output device is correctly identified as internal speakers with no other options, if i plug in headphones the output device changes from internal speakers to headphones correctly and back to speakers when i unplug them.

     

    3. Playing a sound with headphones plugged in (volume change sound)  does indeed make the correct sound through the headphones however it continuously loops the last ~1 second of sound until i unplug the headphones.

     

    4. HDMI audio is not working, no HDMI device in sound pref, HDMI video is working ok but it was before.

     

    5. The internal microphone seems to be working ok.

     

    This is a major improvement on my last attempt which resulted in nothing working at all, is there anything that can be done ?, I've attached a i/O reg dump file.

     

    Cheers and thank you for your assistance

    Jay

     

    Try again.

     

    PS: HDMI only show when you connected HDMI device.

    AppleHDA.kext.zip

  7. Hi EMlyDinEsH,

     

    Thanks for posting your AppleHDA patching guides, 

     

    My codec uses ALC275 not ALC260, I dumped my codec info from Ubuntu and tried to follow this guide but i just cant get things to work, I recently created an all new DSDT and got all the patches for audio in there and its working but with a very old SL AppleHDA & modified IOAudioFamily which is not nice.

     

    I am trying to get back to current revisions of OSX kexts (10.8.5-S1) which is where it all falls apart as i don't seem to be able to take the info in your guide and apply it to AppleHDA. I tried taking the verb info from the old patched (for ALC275) SL AppleHDA but i think there must be a big difference with the way things are patched in 10.8.x

     

    I'm getting stuck when creating the layouts in AppleHDA and the layout.xml as i don't have layout.xml in the SL version so I cant use it as a reference . . and i just cant seem to make sense of it.

     

    I could really do with some help, the attached archive contains the codec dump from linux and modified verbs using Signal64's script (takes codec-dump text file and converts it to modified verbs) along with my DSDT, I have also included the old (but working) SL kext's as reference, and untouched AppleHDA (10.8.5-S1) I'd appreciate any help or advice you can give.

     

    Many Thanks

    Jay

     

    Please try the attachment.

    ALC275 10.8.5.zip

  8. Check two things:

       ioreg output -> what is the path to HDEF

       speaker node -> is it 0x14?

     

    Path: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/HDEF@1B

    Speak node: 0x14 (exactly)

     

    I try to change path on startUpdate function and rebuild but no luck. 10.8.4 work great, 10.8.5 and 10.9 not work.

     

    PS: Check Console.log has "EAPD: Enabled Successfully" but still not work. 

  9. Hello!

     

    Thank you for the great work and for the sources. I found that your kext is not working for my device, but I managed to correct the sources and the new compiled version is working OK.

     

    It turns out that the problem was that the original device path was wrong for my system. Originally it was:

    IORegistryEntry *hdaDeviceEntry = IORegistryEntry::fromPath("IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/HDEF");

     

    When I checked in ioreg, the path was different. I corrected the sources for my path and compiled. The resulting kext was working as expected. Below is the corrected line.

    IORegistryEntry *hdaDeviceEntry = IORegistryEntry::fromPath("IOService:/AppleACPIPlatformExpert/PCI0/AppleACPIPCI/HDEF@1B");

     

    I attached my version of the compiled kext. It is for speaker at node 0x14.

     

     

    Below are the source files and the compiled kext.

    attachicon.gifIOAudioFamily-189.4.9_11.zip

    attachicon.gifIOAudioFamily.kext.zip

    Hi, can you make a version of 10.9 GM? Thanks!

  10. I don't think that is related to my driver, it could be the cache issues so try to fix if you have any kernel cache issues(look at your system log for those). If you're sure that my any one of my previous version driver works with the same flags then let me know and i'll take a look it.

     

    I dont't try with Elan's previous vesion, but try with ApplePS2Controller before change to Elan, it worked with -s (can use keyboard). I think Elan must load before terminal appear (like ApplePS2Controller), but dont know how to do.

     

    I attach my boot log.

    kernel.log.zip

  11. Thanks to EmlyDinesh's battery work (taken from 68x's DSDT), EmlyDinesh's fix for the brightness keys and this lid fix, I now have no reason to use an older AppleACPIPlatform.kext.

    EDIT: @EmlyDinesh, is it possible to turn off the debug logging in 1.4? I'm still using 1.3 as it doesn't print each Fn key I'm pressing in my dmesg.

     

    Can you share the battery DSDT?

×
×
  • Create New...