Jump to content
[ IMPORTANT ] Premium and Donators users ×
Olarila Professional Hackintosh Services ×

_HID Error


toleda

Recommended Posts

Get the following warnings:

11048 Warning Not all control paths return a value (_HID)

11048 Warning Reserved method must return a value (Integer/String required for _HID)


Using this patch:

into_all all code_regex (If\s\(TCMF)\s*\)
replace_matched
begin
   If (TCMF) \n
   { \n
       Return (Zero) \n
   } \n
end

 

The result is: How do I get the return in the right place and avoid the extra set of brackets?

       Method (_HID, 0, NotSerialized)
       {
               If (TCMF) 
    { 
        Return (Zero) 
    } 
{}
           Else
           {
               Return (0x0201D824)
           }
       }

 

DSDT:

Original

   Device (_SB.PCI0.LPCB.TPM)
   {
       Method (_HID, 0, NotSerialized)
       {
           If (TCMF) {}
           Else
           {
               Return (0x310CD041)
           }
       }


Fixed

  Device (_SB.PCI0.LPCB.TPM)
   {
       Method (_HID, 0, NotSerialized)
       {
           If (TCMF) {}
           Else
           {
               Return (0x310CD041)
           }
           Return (Zero)
       }

test.aml.zip

Link to comment
Share on other sites

You are talking about 2 different fixes.


First one is mentioned here http://Olarila.com/forum/viewtopic.php?f=19&t=1752#p14711

into_all all code_regex If\s\(TCMF\)\s\{\} replace_matched
begin
If (TCMF)\n
{\n
   Return (Zero)\n
}
end

The second is simpler

into method label _HID parent_label _SB.PCI0.LPCB.TPM insert
begin
Return (Zero)
end

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...