Contribute
Register

macOS 10.13 Hackintosh on HP OMEN ce003na

Status
Not open for further replies.
Your system kexts are damaged. Easy to see in your kextcache output:
Code:
CodecCommander.kext has no Info.plist file.
AppleGraphicsPowerManagement.kext has no Info.plist file.
AppleGraphicsControl.kext has no Info.plist file.
CodecCommander.kext has no Info.plist file.
AppleGraphicsPowerManagement.kext has no Info.plist file.
AppleGraphicsControl.kext has no Info.plist file.
CodecCommander.kext has no Info.plist file.
AppleGraphicsPowerManagement.kext has no Info.plist file.
AppleGraphicsControl.kext has no Info.plist file.

Run the macOS installer to restore them (eg. fresh install/start over).

Since system is corrupt, I didn't bother to check anything else.

Reinstalling HSierra worked. Now, how do I fix the battery status?
 

One of the fields that are declared and are <= 16 bit is "BADC, 16, ". This is the only other occurrence of it (2nd if statement). Does it need to be patched or not?

Code:
            Method (UPBI, 0, NotSerialized)
            {
                Store (^^PCI0.LPCB.EC0.BFCC, Local5)
                If (LAnd (Local5, LNot (And (Local5, 0x8000))))
                {
                    ShiftRight (Local5, 0x05, Local5)
                    ShiftLeft (Local5, 0x05, Local5)
                    Store (Local5, Index (PBIF, One))
                    Store (Local5, Index (PBIF, 0x02))
                    Divide (Local5, 0x64, , Local2)
                    Add (Local2, One, Local2)
                    If (LLess (^^PCI0.LPCB.EC0.BADC, 0x0C80))
                    {
                        Multiply (Local2, 0x0E, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x05))
                        Multiply (Local2, 0x09, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x06))
                        Multiply (Local2, 0x0B, Local4)
                    }
                    ElseIf (LEqual (SMA4, One))
                    {
                        Multiply (Local2, 0x0C, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x05))
                        Multiply (Local2, 0x07, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x06))
                        Multiply (Local2, 0x0A, Local4)
                    }
                    Else
                    {
                        Multiply (Local2, 0x0C, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x05))
                        Multiply (Local2, 0x07, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x06))
                        Multiply (Local2, 0x0A, Local4)
                    }

                    Add (Local4, 0x02, FABL)
                }
 
One of the fields that are declared and are <= 16 bit is "BADC, 16, ". This is the only other occurrence of it (2nd if statement). Does it need to be patched or not?

Code:
            Method (UPBI, 0, NotSerialized)
            {
                Store (^^PCI0.LPCB.EC0.BFCC, Local5)
                If (LAnd (Local5, LNot (And (Local5, 0x8000))))
                {
                    ShiftRight (Local5, 0x05, Local5)
                    ShiftLeft (Local5, 0x05, Local5)
                    Store (Local5, Index (PBIF, One))
                    Store (Local5, Index (PBIF, 0x02))
                    Divide (Local5, 0x64, , Local2)
                    Add (Local2, One, Local2)
                    If (LLess (^^PCI0.LPCB.EC0.BADC, 0x0C80))
                    {
                        Multiply (Local2, 0x0E, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x05))
                        Multiply (Local2, 0x09, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x06))
                        Multiply (Local2, 0x0B, Local4)
                    }
                    ElseIf (LEqual (SMA4, One))
                    {
                        Multiply (Local2, 0x0C, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x05))
                        Multiply (Local2, 0x07, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x06))
                        Multiply (Local2, 0x0A, Local4)
                    }
                    Else
                    {
                        Multiply (Local2, 0x0C, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x05))
                        Multiply (Local2, 0x07, Local4)
                        Add (Local4, 0x02, Index (PBIF, 0x06))
                        Multiply (Local2, 0x0A, Local4)
                    }

                    Add (Local4, 0x02, FABL)
                }

And also stuff like this ("MCUR" is the field):

Code:
Store (^^PCI0.LPCB.EC0.MCUR, Local0)
 
And also stuff like this ("MCUR" is the field):

Code:
Store (^^PCI0.LPCB.EC0.MCUR, Local0)

DSDT.aml doesn't compile when not patched... (attached)
 

Attachments

  • DSDT.aml
    219.3 KB · Views: 122
Read the guide for correct disassembly procedures and fixing common errors:
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

Note that your DSDT.aml when opened with MaciASL using current iasl (built from source) opens without errors (I think Intel has fixed some bugs).

Also note that "HP G6 2221ss" is a match for your DSDT (very common).

I'm gonna have a go with this:
https://www.insanelymac.com/forum/t...s-only-laptop/?do=findComment&comment=2578705
 
Read the guide for correct disassembly procedures and fixing common errors:
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

Note that your DSDT.aml when opened with MaciASL using current iasl (built from source) opens without errors (I think Intel has fixed some bugs).

Also note that "HP G6 2221ss" is a match for your DSDT (very common).

That battery patch did compile, but macOS still doesn't recognise the battery.

Additionally, the code in the post I linked above produces errors for me, I'm not sure if I'm putting it in the right place though.
 
That battery patch did compile, but macOS still doesn't recognise the battery.

Additionally, the code in the post I linked above produces errors for me, I'm not sure if I'm putting it in the right place though.


No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
Status
Not open for further replies.
Back
Top