Contribute
Register

[Guide] HP ProBook/EliteBook/Zbook using Clover UEFI hotpatch (10.11)

Status
Not open for further replies.
if i open the switch meanwhile that sound is playing display light's on with the sound keeping rolling and if i press a key on the keyboard the sound stops. (open

if after doing like the above i once again close the switch it goes to sleep , but after i open it (power button) and closed the switch once again the sound started immediately and did not sleep, opens the switch again, hitting a key on the keyboard stopes the sound , and if i closed the switch once more it sleeped.
 
if after doing like the above i once again close the switch it goes to sleep , but after i open it (power button) and closed the switch once again the sound started immediately and did not sleep, opens the switch again, hitting a key on the keyboard stopes the sound , and if i closed the switch once more it sleeped.

If you have some C++ skills, you might want to experiment with the code that executes upon sleep.
This is from VoodooPS2Controller.cpp:
Code:
void ApplePS2Controller::setPowerStateGated( UInt32 powerState )
{
  if ( _currentPowerState != powerState )
  {
    switch ( powerState )
    {
      case kPS2PowerStateSleep:

        //
        // 1. Make sure clocks are enabled, but IRQ lines held low.
        //
       
        ++_ignoreInterrupts;
        DEBUG_LOG("%s: setCommandByte for sleep 1\n", getName());
        setCommandByte(0, kCB_EnableKeyboardIRQ | kCB_EnableMouseIRQ);
       
        // 2. Notify clients about the state change. Clients can issue
        //    synchronous requests thanks to the recursive lock.
        //    First Mouse, then Keyboard.
           
        dispatchDriverPowerControl( kPS2C_DisableDevice, kDT_Mouse );
        dispatchDriverPowerControl( kPS2C_DisableDevice, kDT_Keyboard );

        // 3. Freeze the request queue and drop all data received over
        //    the PS/2 port.

        _hardwareOffline = true;

        // 4. Disable the PS/2 port.

#if DISABLE_CLOCKS_IRQS_BEFORE_SLEEP
        // This will cause some machines to turn on the LCD after the
        // ACPI display driver has turned it off. With a real display
        // driver present, this block of code can be uncommented (?).

        DEBUG_LOG("%s: setCommandByte for sleep 2\n", getName());
        setCommandByte(kCB_DisableKeyboardClock | kCB_DisableMouseClock, 0);
#endif // DISABLE_CLOCKS_IRQS_BEFORE_SLEEP
        break;

...
 
and it, s going on in cycle like this: one no(sleeps) sound comes up hit a button then next try is working, third time not working -pressing key on keyboard , 4th time working. and so on
 
and it, s going on in cycle like this: one no(sleeps) sound comes up hit a button then next try is working, third time not working -pressing key on keyboard , 4th time working. and so on

Once the PS2 kext is setup for sleep, PS2 interrupts should stop, and no more keys should come through.
If that is not working, you will get the behavior you describe...

I think you will need to do some debugging to further determine what is going on.
 
Read post #1, "Problem Reporting".

I went and check the part where says:
Some audio codecs will require an additional patch (AppleHDA)

If you are using target codec 0x11d4198b, you may need to also zero out codec compare 0x11d4198a (a new supported codec in 10.12).

eg. in KextsToPatch:
Comment: 0x11d4198a to zero
MatchOS: 10.12.x
Name: AppleHDA
Find: <8a19d411>
Replace: <00000000>

Then, I found this link:
https://www.tonymacx86.com/threads/solved-hp-probook-6460b-procedure-audio-patch.203839/

And an answer:
Some audio codecs will require an additional patch (AppleHDA)
The config.plist files in the Probook project have already been updated.

I am uploading the SSDT files following the Problem report guide, and the file saved by the IORegistryExplorer.

My problems actually are three:
1.-No sound
2.-No battery meter
3.-Not booting from the hard drive (stuck in Apple logo, no progress bar).

Thank you very much!
 

Attachments

  • RehabMan.zip
    50.3 KB · Views: 69
  • Arturo’s MacBook Pro.ioreg
    8.2 MB · Views: 75
zero skillet

It may also have something to do with ACPI actions when the LID is detected (could be EC queries executing/etc).
That would require debugging DSDT/EC queries, any code that is conditional on _LID status.
 
I went and check the part where says:
Some audio codecs will require an additional patch (AppleHDA)

If you are using target codec 0x11d4198b, you may need to also zero out codec compare 0x11d4198a (a new supported codec in 10.12).

eg. in KextsToPatch:
Comment: 0x11d4198a to zero
MatchOS: 10.12.x
Name: AppleHDA
Find: <8a19d411>
Replace: <00000000>

Then, I found this link:
https://www.tonymacx86.com/threads/solved-hp-probook-6460b-procedure-audio-patch.203839/

And an answer:
Some audio codecs will require an additional patch (AppleHDA)
The config.plist files in the Probook project have already been updated.

I am uploading the SSDT files following the Problem report guide, and the file saved by the IORegistryExplorer.

My problems actually are three:
1.-No sound
2.-No battery meter
3.-Not booting from the hard drive (stuck in Apple logo, no progress bar).

Thank you very much!

The correct patches are already present in the files provided by the guide.
Problem is you didn't follow the guide.
Your problem reporting files are incomplete, but just from ioreg, I can see your ACPI/patched content is wrong as is your config.plist.

Read post #1, "Post Installation" onward.
Follow as written.
 
Install debug VoodooPS2Controller.kext and collect the keyboard logs (from kernel log) that result in
this goes to L/E?

the same as VoodooPS2Controler.kext just copying it to L/E?
 
Status
Not open for further replies.
Back
Top