stevezhengshiqi / one-key-cpufriend

Generate customized CPUFriendDataProvider.kext for dynamic macOS CPU power management
342 stars 47 forks source link

Sometimes battery drain too fast #21

Closed nikhil19rathore99 closed 4 years ago

nikhil19rathore99 commented 4 years ago

I've used cpufriend from pm's pikers scipt method but my battery drains too fast Will it possible to make longer battery life from your cpu provider kext I've used manjaro linux alongside with mac it gives me 4hr+ battery on browsing and normal work but on mac it won't give me a even 2.3hr Will it be possible to get more battery life on normal work System specs: Asus X556UQK Processor: i5-7200U Ram: 8GB Thanks

nikhil19rathore99 commented 4 years ago

EFI.zip I'll share my EFI to you so you better understand the which CPU provider kext i used?? Help me to get better battery management also one more thing It says service recommended Screenshot 2020-06-30 at 5 11 23 PM

stevezhengshiqi commented 4 years ago

@nikhil19rathore99 Your X86PlatformPlugin.kext is not loading, try to remove CPUFriend.kext, CPUFriendDataProvider.kext, and CpuTscSync.kext. For modern platform laptops, pikers script is no longer needed. Just choose a correct SMBIOS will bring great power control.

nikhil19rathore99 commented 4 years ago

@nikhil19rathore99 Your X86PlatformPlugin.kext is not loading, try to remove CPUFriend.kext, CPUFriendDataProvider.kext, and CpuTscSync.kext. For modern platform laptops, pikers script is no longer needed. Just choose a correct SMBIOS will bring great power control.

Without cputcsync i am not able to go to the login because it was stuck at login like graphics stucks

nikhil19rathore99 commented 4 years ago

@nikhil19rathore99 Your X86PlatformPlugin.kext is not loading, try to remove CPUFriend.kext, CPUFriendDataProvider.kext, and CpuTscSync.kext. For modern platform laptops, pikers script is no longer needed. Just choose a correct SMBIOS will bring great power control.

Without cputcsync i am not able to go to the login because it was stuck at login like graphics stucks

About SMBIOS which one should i use 14,2 or any other

stevezhengshiqi commented 4 years ago

14,1 is good. Get rid of CPUFriendDataProvider you may see different Energy Saver panel.

nikhil19rathore99 commented 4 years ago

Screenshot 2020-07-01 at 11 04 43 AM

Will i get better battery management now?? Please look at it i've attached Ioreg of my mac

Asus_X556UQK.zip

stevezhengshiqi commented 4 years ago

Looks better to me, at least X86PlugInFamily is loaded according to your ioreg. More PM information can be found by running AppleIntelInfo.kext

nikhil19rathore99 commented 4 years ago

Looks better to me, at least X86PlugInFamily is loaded according to your ioreg. More PM information can be found by running AppleIntelInfo.kext

now 2% drop in 1.3 min, that is too fast.

nikhil19rathore99 commented 4 years ago

Looks better to me, at least X86PlugInFamily is loaded according to your ioreg. More PM information can be found by running AppleIntelInfo.kext

Sorry Bymistake i close it, and how i get the info from AppleIntelInfo, For the X86PluginFamily it was there since the begining in my mac

nikhil19rathore99 commented 4 years ago

AppleIntelInfo attached below: AppleIntelInfo.kext v2.4 Copyright © 2012-2017 Pike R. Alpha. All rights reserved.

Settings:

logMSRs..................................: 1 logIGPU..................................: 1 logCStates...............................: 1 logIPGStyle..............................: 1 InitialTSC...............................: 0x933b08122d5 (374 MHz) MWAIT C-States...........................: 286531872

Processor Brandstring....................: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

Processor Signature..................... : 0x806E9

Model Specific Registers (MSRs)

MSR_CORE_THREAD_COUNT............(0x35) : 0x1B

MSR_PLATFORM_INFO................(0xCE) : 0x4043DF1011B00

MSR_PMG_CST_CONFIG_CONTROL.......(0xE2) : 0x1E008006

MSR_PMG_IO_CAPTURE_BASE..........(0xE4) : 0x51814

IA32_MPERF.......................(0xE7) : 0x16E777038AC IA32_APERF.......................(0xE8) : 0x146D5483970

MSR_FLEX_RATIO...................(0x194) : 0x0

MSR_IA32_PERF_STATUS.............(0x198) : 0x1D1100001900

MSR_IA32_PERF_CONTROL............(0x199) : 0xA00

IA32_CLOCK_MODULATION............(0x19A) : 0x0

IA32_THERM_INTERRUPT.............(0x19B) : 0x10

IA32_THERM_STATUS................(0x19C) : 0x882F0800

MSR_THERM2_CTL...................(0x19D) : 0x0

IA32_MISC_ENABLES................(0x1A0) : 0x850089

MSR_TEMPERATURE_TARGET...........(0x1A2) : 0xA640000

MSR_MISC_PWR_MGMT................(0x1AA) : 0x401CC1

MSR_TURBO_RATIO_LIMIT............(0x1AD) : 0x1F1F1F1F

IA32_ENERGY_PERF_BIAS............(0x1B0) : 0x0

MSR_POWER_CTL....................(0x1FC) : 0x24005F

MSR_RAPL_POWER_UNIT..............(0x606) : 0xA0E03

MSR_PKG_POWER_LIMIT..............(0x610) : 0x4280C800DD80C8

MSR_PKG_ENERGY_STATUS............(0x611) : 0xD9D06D0

MSR_PP1_POWER_LIMIT..............(0x640) : 0x0

MSR_PP1_ENERGY_STATUS............(0x641) : 0x3C1206

MSR_PP1_POLICY...................(0x642) : 0x18

MSR_CONFIG_TDP_NOMINAL...........(0x648) : 0x19 MSR_CONFIG_TDP_LEVEL1............(0x649) : 0x8003C MSR_CONFIG_TDP_LEVEL2............(0x64a) : 0x1B00C8 MSR_CONFIG_TDP_CONTROL...........(0x64b) : 0x0 MSR_TURBO_ACTIVATION_RATIO.......(0x64c) : 0x0 MSR_PKGC3_IRTL...................(0x60a) : 0x884E MSR_PKGC6_IRTL...................(0x60b) : 0x8876 MSR_PKGC7_IRTL...................(0x60c) : 0x8894 MSR_PKG_C2_RESIDENCY.............(0x60d) : 0x146C995B720 MSR_PKG_C3_RESIDENCY.............(0x3f8) : 0x4FEC78B540D MSR_PKG_C2_RESIDENCY.............(0x60d) : 0x146C9C24979 MSR_PKG_C3_RESIDENCY.............(0x3f8) : 0x4FEC78B540D MSR_PKG_C6_RESIDENCY.............(0x3f9) : 0x0 MSR_PKG_C7_RESIDENCY.............(0x3fa) : 0x0

MSR_PLATFORM_ENERGY_COUNTER......(0x64D) : 0x732FE15

MSR_PPERF........................(0x64E) : 0x132DFFE3A66

MSR_CORE_PERF_LIMIT_REASONS......(0x64F) : 0x8000000

IA32_PKG_HDC_CTL.................(0xDB0) : 0x0

IA32_PM_CTL1.....................(0xDB1) : 0x1

HDC Allow Block..................(0xDB1) : 1 (HDC blocked)

IA32_THREAD_STALL................(0xDB2) : 0x0

MSR_PKG_HDC_CONFIG...............(0x652) : 0x2

Pkg Cx Monitor ..................(0x652) : 2 (count package C3 and deeper) MSR_CORE_HDC_RESIDENCY...........(0x653) : 0x0

MSR_PKG_HDC_SHALLOW_RESIDENCY....(0x655) : 0x0

MSR_PKG_HDC_DEEP_RESIDENCY.......(0x656) : 0x0

IA32_TSC_DEADLINE................(0x6E0) : 0x933CE4E3E6E MSR_PPERF........................(0x63E) : 0x1 (22)

IA32_PM_ENABLE...................(0x770) : 0x1 (HWP Supported and Enabled)

IA32_HWP_CAPABILITIES............(0x771) : 0x106191F

IA32_HWP_INTERRUPT...............(0x773) : 0x1

IA32_HWP_REQUEST................(0x774) : 0x80191F04

IA32_HWP_STATUS..................(0x777) : 0x0

CPU Ratio Info:

Base Clock Frequency (BLCK)............. : 100 MHz Maximum Efficiency Ratio/Frequency.......: 4 ( 400 MHz) Maximum non-Turbo Ratio/Frequency........: 27 (2700 MHz) Maximum Turbo Ratio/Frequency............: 31 (3100 MHz)

IGPU Info:

IGPU Current Frequency...................: 0 MHz IGPU Minimum Frequency...................: 300 MHz IGPU Maximum Non-Turbo Frequency.........: 300 MHz IGPU Maximum Turbo Frequency.............: 1000 MHz IGPU Maximum limit.......................: No Limit

P-State ratio * 100 = Frequency in MHz

CPU P-States [ (13) 23 31 ] iGPU P-States [ ] CPU C3-Cores [ 0 1 2 3 ] CPU C7-Cores [ 0 1 2 3 ] CPU P-States [ (13) 23 31 ] iGPU P-States [ ] CPU P-States [ (13) 23 24 31 ] iGPU P-States [ ] CPU P-States [ 13 (20) 23 24 31 ] iGPU P-States [ ] CPU P-States [ 13 (20) 23 24 31 ] iGPU P-States [ (18) ] CPU P-States [ 13 20 23 24 (25) 31 ] iGPU P-States [ 18 ] CPU P-States [ (4) 13 20 23 24 25 31 ] iGPU P-States [ 18 ]

nikhil19rathore99 commented 4 years ago

Please look at it, if it can be improved