Contribute
Register

Lenovo Y50 with Clover

Status
Not open for further replies.
[Guide] Lenovo Y50

Any kind of software that might be causing code to execute mostly in the kernel...

Does that include DSDT, SSDTs ? I mean I think that's software too but it's "deeper" than the kernel is (at least that's what I understand).

So I'l just reinstall OS X after I get my Wireless card and AppleHDA working.

Also, OatmealDome has this part in his guide where I need to patch my DSDT with this code:
Can you tell me what it does ?

Code:
[COLOR=#000000]into DefinitionBlock code_regex External\s\(_SB_\.PCI0\.PEG0,\sUnknownObj\) remove_matched;[/COLOR]into DefinitionBlock code_regex External\s\(_SB_\.PCI0\.PEG1,\sUnknownObj\) remove_matched;


into method label _Q1C code_regex ,\sSleep\s\(0x01F4\)\)\)\s\{\} replace_matched begin
))\n
                       {\n
                           Sleep (0x01F4)\n
                       }\n
end;
into method label _Q11 code_regex \^\^\^GFX0\.AINT\s\(One\)\n\s+DerefOf\s\(Index\s\(PLV1,\sLocal0\)\) replace_matched begin
^^^GFX0.AINT (One, DerefOf (Index (PLV1, Local0)))
end;
into method label _Q12 code_regex \^\^\^GFX0\.AINT\s\(One\)\n\s+DerefOf\s\(Index\s\(PLV1,\sLocal0\)\) replace_matched begin
^^^GFX0.AINT (One, DerefOf (Index (PLV1, Local0)))
end;
into method label VPCW code_regex \^\^\^\^GFX0\.AINT\s\(One\)\n\s+DerefOf\s\(Index\s\(PLV1,\sLocal0\)\) replace_matched begin
^^^^GFX0.AINT (One, DerefOf (Index (PLV1, Local0)))
end;
into method label MHCF code_regex And\s\(Local0,\s0x60\) replace_matched begin
And (Local0, 0x60, Local0) [COLOR=#000000]end;[/COLOR]
 
[Guide] Lenovo Y50

Does that include DSDT, SSDTs ? I mean I think that's software too but it's "deeper" than the kernel is (at least that's what I understand).

So I'l just reinstall OS X after I get my Wireless card and AppleHDA working.

DSDT/SSDT patches affect kexts (and the system as a whole)... But not very likely that DSDT/SSDT patches will create your situation.

Also, OatmealDome has this part in his guide where I need to patch my DSDT with this code:
Can you tell me what it does ?

Code:
[COLOR=#000000]into DefinitionBlock code_regex External\s\(_SB_\.PCI0\.PEG0,\sUnknownObj\) remove_matched;[/COLOR]into DefinitionBlock code_regex External\s\(_SB_\.PCI0\.PEG1,\sUnknownObj\) remove_matched;


into method label _Q1C code_regex ,\sSleep\s\(0x01F4\)\)\)\s\{\} replace_matched begin
))\n
                       {\n
                           Sleep (0x01F4)\n
                       }\n
end;
into method label _Q11 code_regex \^\^\^GFX0\.AINT\s\(One\)\n\s+DerefOf\s\(Index\s\(PLV1,\sLocal0\)\) replace_matched begin
^^^GFX0.AINT (One, DerefOf (Index (PLV1, Local0)))
end;
into method label _Q12 code_regex \^\^\^GFX0\.AINT\s\(One\)\n\s+DerefOf\s\(Index\s\(PLV1,\sLocal0\)\) replace_matched begin
^^^GFX0.AINT (One, DerefOf (Index (PLV1, Local0)))
end;
into method label VPCW code_regex \^\^\^\^GFX0\.AINT\s\(One\)\n\s+DerefOf\s\(Index\s\(PLV1,\sLocal0\)\) replace_matched begin
^^^^GFX0.AINT (One, DerefOf (Index (PLV1, Local0)))
end;
into method label MHCF code_regex And\s\(Local0,\s0x60\) replace_matched begin
And (Local0, 0x60, Local0) [COLOR=#000000]end;[/COLOR]

They look like they are correcting errors.
 
[Guide] Lenovo Y50

They look like they are correcting errors.

But isn't that what any patch is supposed to do ? :D :D

Can you tell me in detail ? I need to know that so I understand if I need the patch or not. I see some GFX0 entries there and that's why.
 
[Guide] Lenovo Y50

But isn't that what any patch is supposed to do ? :D :D

No. Some patches add functionality or change existing behavior to be what OS X wants. So there were no "errors", but we still want the code to behave differently.

Can you tell me in detail ? I need to know that so I understand if I need the patch or not. I see some GFX0 entries there and that's why.

Try without the patch, then you'll know whether it is necessary and specifically what it is fixing.
 
[Guide] Lenovo Y50

I've installed ACPI Battery Driver and the battery status shows, however the remaining time is always incorrect and really low. Is there anyway to fix it?

I have Nvidia disabled via BIOS (for now).
 
[Guide] Lenovo Y50

I've installed ACPI Battery Driver and the battery status shows, however the remaining time is always incorrect and really low. Is there anyway to fix it?

I have Nvidia disabled via BIOS (for now).

It is all based on what your DSDT returns in the battery methods. Use the debug ACPIBatteryManager.kext to see if the values returned make any sense.
 
[Guide] Lenovo Y50

RehabMan do you have any experience with AppleHDA pathmaps ?

I think I found the problem for my jack.

I just need a little help for the Pin Config and more help for the Pathmaps :D :D :D
 
[Guide] Lenovo Y50

I've started debugging and got this from the log (battery at 82%, 0:22 remaining):
Code:
AppleSmartBatteryManager::getBatteryBST called
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: acpibat_bst size = 4
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fPowerUnit       = 0x0
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: currentStatus    = 0x1
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate     = 18260
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 39040
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentVoltage  = 7876
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: Calculating for WATTS
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate = 2467
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 5275
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fAverageRate = 12563
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery: Battery is discharging.

Is there anything that stands out that needs fixed? I don't have another log for comparison.

EDIT:

Another log:
Code:
Feb 15 13:36:26 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::constructAppleSerialNumber called
Feb 15 13:36:26 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::rebuildLegacyIOBatteryInfo called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::pollingTimeOut called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::pollBatteryState: path = 1
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBatteryManager::getBatterySTA called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatterySTA: battery_status = 0x1f
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBatteryManager::getBatteryBIX called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: acpibat_bix size = 20
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fPowerUnit       = 0x0
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fDesignCapacity  = 54760
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fMaxCapacity     = 49830
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fBatteryTech     = 0x1
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fDesignVoltage   = 7400
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fCapacityWarning = 4980
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fLowWarning      = 1494
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fCycleCount      = 0
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fMaxErr          = 0
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fDeviceName      = 'PABAS0241231'
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fSerialNumber    = '41167'
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fType            = 'Li-Ion'
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fManufacturer    = 'LENOVO '
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBatteryManager::getBatteryBST called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: acpibat_bst size = 4
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fPowerUnit       = 0x0
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: currentStatus    = 0x1
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate     = 17090
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 43000
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentVoltage  = 7998
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: Calculating for WATTS
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate = 2309
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 5810
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fAverageRate = 23125
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery: Battery is discharging.
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::constructAppleSerialNumber called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::rebuildLegacyIOBatteryInfo called
 
[Guide] Lenovo Y50

RehabMan do you have any experience with AppleHDA pathmaps ?

I think I found the problem for my jack.

I just need a little help for the Pin Config and more help for the Pathmaps :D :D :D

Not yet. Ask me in a couple of weeks.
 
[Guide] Lenovo Y50

I've started debugging and got this from the log (battery at 82%, 0:22 remaining):
Code:
AppleSmartBatteryManager::getBatteryBST called
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: acpibat_bst size = 4
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fPowerUnit       = 0x0
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: currentStatus    = 0x1
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate     = 18260
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 39040
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentVoltage  = 7876
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: Calculating for WATTS
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate = 2467
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 5275
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fAverageRate = 12563
Feb 15 13:16:06 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery: Battery is discharging.

Is there anything that stands out that needs fixed? I don't have another log for comparison.

EDIT:

Another log:
Code:
Feb 15 13:36:26 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::constructAppleSerialNumber called
Feb 15 13:36:26 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::rebuildLegacyIOBatteryInfo called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::pollingTimeOut called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::pollBatteryState: path = 1
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBatteryManager::getBatterySTA called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatterySTA: battery_status = 0x1f
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBatteryManager::getBatteryBIX called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: acpibat_bix size = 20
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fPowerUnit       = 0x0
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fDesignCapacity  = 54760
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fMaxCapacity     = 49830
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fBatteryTech     = 0x1
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fDesignVoltage   = 7400
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fCapacityWarning = 4980
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fLowWarning      = 1494
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fCycleCount      = 0
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fMaxErr          = 0
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fDeviceName      = 'PABAS0241231'
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fSerialNumber    = '41167'
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fType            = 'Li-Ion'
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBIX: fManufacturer    = 'LENOVO '
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBatteryManager::getBatteryBST called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: acpibat_bst size = 4
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fPowerUnit       = 0x0
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: currentStatus    = 0x1
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate     = 17090
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 43000
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentVoltage  = 7998
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: Calculating for WATTS
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate = 2309
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 5810
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::setBatteryBST: fAverageRate = 23125
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery: Battery is discharging.
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::constructAppleSerialNumber called
Feb 15 13:36:56 Barteks-MacBook-Pro kernel[0]: AppleSmartBattery::rebuildLegacyIOBatteryInfo called

fCurrentRate and fAverageRate is rather large in some instances indicating a large power draw from the battery.
 
Status
Not open for further replies.
Back
Top