Contribute
Register

Lenovo G500 10.12.3 - Audio/brightness/etc help needed

Status
Not open for further replies.
You probably need to set XHC.PMEE to zero in _PTS.
Refer to the code in my Probook repo for ideas/examples.


This is my _PTS. There's no XHC.PMEE in there.

Code:
    Method (_PTS, 1, NotSerialized)  // _PTS: Prepare To Sleep
    {
        Store (Zero, P80D)
        P8XH (Zero, Arg0, Zero)
        Store (Arg0, SLPS)
        If (LEqual (Arg0, 0x03))
        {
            P8XH (0x04, 0x53, Zero)
            P8XH (0x04, 0x53, One)
            If (LAnd (DTSE, LGreater (TCNT, One)))
            {
                TRAP (TRTD, 0x1E)
            }

            Store (\_SB.PCI0.LPCB.EC0.ADPT, Local0)
            If (Local0)
            {
                Store (One, \_SB.PCI0.LPCB.EC0.UWAK)
            }
            Else
            {
                Store (Zero, \_SB.PCI0.LPCB.EC0.UWAK)
            }

            Store (One, \_SB.PCI0.LPCB.EC0.S3ST)
        }

        If (LEqual (Arg0, 0x04))
        {
            P8XH (0x04, 0x54, Zero)
            P8XH (0x04, 0x54, One)
            Store (Zero, \_PR.CPU0._PPC)
            Store (One, \_SB.PCI0.LPCB.EC0.S4ST)
        }

        If (LEqual (Arg0, 0x05))
        {
            P8XH (0x04, 0x55, Zero)
            P8XH (0x04, 0x55, One)
            Store (One, \_SB.PCI0.LPCB.EC0.S5ST)
        }

        If (LEqual (DBGS, Zero)) {}
    }

However, there's this inside _GPE _L0D.

Code:
        Method (_L0D, 0, NotSerialized)  // _Lxx: Level-Triggered GPE
        {
            P8XH (0x04, 0x0D, Zero)
            P8XH (0x04, 0x0D, One)
            Notify (\_SB.PCI0.EHC1, 0x02)
            Notify (\_SB.PCI0.EHC2, 0x02)
            Notify (\_SB.PCI0.XHC, 0x02)
            If (LAnd (\_SB.PCI0.XHC.PMES, \_SB.PCI0.XHC.PMES))
            {
                Store (One, \_SB.PCI0.XHC.PMES)
            }
        }

Is it related somehow? Any ideas? Thanks.
 
This is my _PTS. There's no XHC.PMEE in there.

Code:
    Method (_PTS, 1, NotSerialized)  // _PTS: Prepare To Sleep
    {
        Store (Zero, P80D)
        P8XH (Zero, Arg0, Zero)
        Store (Arg0, SLPS)
        If (LEqual (Arg0, 0x03))
        {
            P8XH (0x04, 0x53, Zero)
            P8XH (0x04, 0x53, One)
            If (LAnd (DTSE, LGreater (TCNT, One)))
            {
                TRAP (TRTD, 0x1E)
            }

            Store (\_SB.PCI0.LPCB.EC0.ADPT, Local0)
            If (Local0)
            {
                Store (One, \_SB.PCI0.LPCB.EC0.UWAK)
            }
            Else
            {
                Store (Zero, \_SB.PCI0.LPCB.EC0.UWAK)
            }

            Store (One, \_SB.PCI0.LPCB.EC0.S3ST)
        }

        If (LEqual (Arg0, 0x04))
        {
            P8XH (0x04, 0x54, Zero)
            P8XH (0x04, 0x54, One)
            Store (Zero, \_PR.CPU0._PPC)
            Store (One, \_SB.PCI0.LPCB.EC0.S4ST)
        }

        If (LEqual (Arg0, 0x05))
        {
            P8XH (0x04, 0x55, Zero)
            P8XH (0x04, 0x55, One)
            Store (One, \_SB.PCI0.LPCB.EC0.S5ST)
        }

        If (LEqual (DBGS, Zero)) {}
    }

However, there's this inside _GPE _L0D.

Code:
        Method (_L0D, 0, NotSerialized)  // _Lxx: Level-Triggered GPE
        {
            P8XH (0x04, 0x0D, Zero)
            P8XH (0x04, 0x0D, One)
            Notify (\_SB.PCI0.EHC1, 0x02)
            Notify (\_SB.PCI0.EHC2, 0x02)
            Notify (\_SB.PCI0.XHC, 0x02)
            If (LAnd (\_SB.PCI0.XHC.PMES, \_SB.PCI0.XHC.PMES))
            {
                Store (One, \_SB.PCI0.XHC.PMES)
            }
        }

Is it related somehow? Any ideas? Thanks.

It is code you have to add.
Refer to the code in my ProBook github.
 
It is code you have to add.
Refer to the code in my ProBook github.
I just tried the following.
Code:
    Method (_PTS, 1, NotSerialized)  // _PTS: Prepare To Sleep
    {
        Store (Zero, P80D)
        P8XH (Zero, Arg0, Zero)
        Store (Arg0, SLPS)
        If (LEqual (0x05, Arg0))
        {
            Store (Zero, \_SB.PCI0.XHC.PMEE)
        }

        If (LEqual (Arg0, 0x03))
        {
            P8XH (0x04, 0x53, Zero)
            P8XH (0x04, 0x53, One)
            If (LAnd (DTSE, LGreater (TCNT, One)))
            {
                TRAP (TRTD, 0x1E)
            }

            Store (\_SB.PCI0.LPCB.EC0.ADPT, Local0)
            If (Local0)
            {
                Store (One, \_SB.PCI0.LPCB.EC0.UWAK)
            }
            Else
            {
                Store (Zero, \_SB.PCI0.LPCB.EC0.UWAK)
            }

            Store (One, \_SB.PCI0.LPCB.EC0.S3ST)
        }
However, there was no change. What should I try next?

Thanks.
 
I just tried the following.
Code:
    Method (_PTS, 1, NotSerialized)  // _PTS: Prepare To Sleep
    {
        Store (Zero, P80D)
        P8XH (Zero, Arg0, Zero)
        Store (Arg0, SLPS)
        If (LEqual (0x05, Arg0))
        {
            Store (Zero, \_SB.PCI0.XHC.PMEE)
        }

        If (LEqual (Arg0, 0x03))
        {
            P8XH (0x04, 0x53, Zero)
            P8XH (0x04, 0x53, One)
            If (LAnd (DTSE, LGreater (TCNT, One)))
            {
                TRAP (TRTD, 0x1E)
            }

            Store (\_SB.PCI0.LPCB.EC0.ADPT, Local0)
            If (Local0)
            {
                Store (One, \_SB.PCI0.LPCB.EC0.UWAK)
            }
            Else
            {
                Store (Zero, \_SB.PCI0.LPCB.EC0.UWAK)
            }

            Store (One, \_SB.PCI0.LPCB.EC0.S3ST)
        }
However, there was no change. What should I try next?

Thanks.

Read FAQ, "Problem Reporting"
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
 
Here are my files. Thanks a lot for your continued help.

Code:
Mhks-MacBook-Pro:RehabMan mhk$  kextstat|grep -y acpiplat
   13    2 0xffffff7f8311c000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>
Mhks-MacBook-Pro:RehabMan mhk$ kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
kextstat|grep -y applehda
   24    0 0xffffff7f82d2d000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (219.0.0) F7CC3395-98DB-3420-9C24-1017D52E13AE <7 6 5 4 3 1>
   33    0 0xffffff7f82d28000 0x3000     0x3000     com.apple.driver.AppleIntelCPUPowerManagementClient (219.0.0) B802638B-251C-3602-BA8C-001F87228765 <7 6 5 4 3 1>
Mhks-MacBook-Pro:RehabMan mhk$ kextstat|grep -y applelpc
   92    0 0xffffff7f829fb000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <91 12 5 4 3>
Mhks-MacBook-Pro:RehabMan mhk$ kextstat|grep -y applehda
   97    1 0xffffff7f82dd2000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (278.56) CFB0D0AE-F09A-3660-8F95-7A02FD5FBF07 <96 95 84 12 7 6 5 4 3 1>
  123    0 0xffffff7f82f54000 0xb4000    0xb4000    com.apple.driver.AppleHDA (278.56) A4EB06C9-A40A-39EF-9C4A-D7F23DB9A2F9 <122 97 96 95 88 84 6 5 4 3 1>
  126    0 0xffffff7f82dce000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (278.56) 06C594F4-3E5D-3BF4-A783-90C741DAA3F0 <4 3>
Code:
Mhks-MacBook-Pro:RehabMan mhk$  sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleBacklightInjector.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext SATSMARTDriver.kext
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileUSBSwch.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileUSBLANMerge.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileMTP.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileMS.kext/ is in hash exception list, allowing to load
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleHDAHardwareConfigDriver.kext
kext-dev-mode allowing invalid signature -67061 0xFFFFFFFFFFFEFA0B for kext AppleHDA.kext
KernelCache ID: 2A2067556885665680780DD365223D63
 

Attachments

  • RehabMan.zip
    35.2 KB · Views: 91
  • Mhk’s MacBook Pro.ioreg.zip
    617.3 KB · Views: 95
  • CLOVER.zip
    2.1 MB · Views: 94
Here are my files. Thanks a lot for your continued help.

Code:
Mhks-MacBook-Pro:RehabMan mhk$  kextstat|grep -y acpiplat
   13    2 0xffffff7f8311c000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>
Mhks-MacBook-Pro:RehabMan mhk$ kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
kextstat|grep -y applehda
   24    0 0xffffff7f82d2d000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (219.0.0) F7CC3395-98DB-3420-9C24-1017D52E13AE <7 6 5 4 3 1>
   33    0 0xffffff7f82d28000 0x3000     0x3000     com.apple.driver.AppleIntelCPUPowerManagementClient (219.0.0) B802638B-251C-3602-BA8C-001F87228765 <7 6 5 4 3 1>
Mhks-MacBook-Pro:RehabMan mhk$ kextstat|grep -y applelpc
   92    0 0xffffff7f829fb000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <91 12 5 4 3>
Mhks-MacBook-Pro:RehabMan mhk$ kextstat|grep -y applehda
   97    1 0xffffff7f82dd2000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (278.56) CFB0D0AE-F09A-3660-8F95-7A02FD5FBF07 <96 95 84 12 7 6 5 4 3 1>
  123    0 0xffffff7f82f54000 0xb4000    0xb4000    com.apple.driver.AppleHDA (278.56) A4EB06C9-A40A-39EF-9C4A-D7F23DB9A2F9 <122 97 96 95 88 84 6 5 4 3 1>
  126    0 0xffffff7f82dce000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (278.56) 06C594F4-3E5D-3BF4-A783-90C741DAA3F0 <4 3>
Code:
Mhks-MacBook-Pro:RehabMan mhk$  sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleBacklightInjector.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext SATSMARTDriver.kext
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileUSBSwch.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileUSBLANMerge.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileMTP.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileMS.kext/ is in hash exception list, allowing to load
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext AppleHDAHardwareConfigDriver.kext
kext-dev-mode allowing invalid signature -67061 0xFFFFFFFFFFFEFA0B for kext AppleHDA.kext
KernelCache ID: 2A2067556885665680780DD365223D63

CLOVER.zip is corrupt and cannot be extracted.
 
I hope this one works.

Thanks in advance
 

Attachments

  • CLOVER.zip
    3.4 MB · Views: 90
I hope this one works.

Thanks in advance

XHC.PMEE should be set after all other _PTS code.
DSDT.aml should NOT be listed in SortedOrder.
XhciDxe-64.efi is probably a bad idea.
Same for OsxLowMemFixDrv-64.efi (usually we use OsxAptioFixDrv-64.efi or OsxAptioFix2Drv-64.efi).
HFSPlus.efi preferred over VboxHfs-64.efi.

Your kexts are not installed correctly. Refer to post #2 of the laptop Clover guide.
 
XHC.PMEE should be set after all other _PTS code.
DSDT.aml should NOT be listed in SortedOrder.
XhciDxe-64.efi is probably a bad idea.
Same for OsxLowMemFixDrv-64.efi (usually we use OsxAptioFixDrv-64.efi or OsxAptioFix2Drv-64.efi).
HFSPlus.efi preferred over VboxHfs-64.efi.

Your kexts are not installed correctly. Refer to post #2 of the laptop Clover guide.
I moved XHC.PMEE at the end of _PTS, removed DSDT.aml from SortedOrder, and replaced VboxHfs-64.efi for HFSPlus.efi as instructed. My machine will still reboot after shutdown. Why is XhciDxe-64.efi a bad idea? I thought it was necessary for USB ports to work properly.
 
I moved XHC.PMEE at the end of _PTS, removed DSDT.aml from SortedOrder, and replaced VboxHfs-64.efi for HFSPlus.efi as instructed. My machine will still reboot after shutdown. Why is XhciDxe-64.efi a bad idea? I thought it was necessary for USB ports to work properly.

XHC.PMEE fix is for "auto restart after shutdown".
If your laptop is rebooting during shutdown, that is a different situation.
The difference is subtle, but important to understand which problem you have.
No need for XhciDxe-64.efi, remove.
 
Status
Not open for further replies.
Back
Top