LukaJankovic / 10.12-zenbook-ux303u

6 stars 3 forks source link

Better power management #4

Open randy98 opened 7 years ago

randy98 commented 7 years ago

I've gotten better battery life with this:

https://www.tonymacx86.com/threads/release-hwp-intel-speed-shift-on-skylake-and-up-enabler-kext.206090/

LukaJankovic commented 7 years ago

how big was the difference?

randy98 commented 7 years ago

Almost 2x...my intel power gadget output was routinely at 4W or over and now it's under 2W.  I'm still confused why it's not lower than 2W given the CPU is only using a fraction of that .  Maybe you're right and the NVidia GPU is running without being shut off. Here's the diff between my and your config.plist.  Everything is running now...I don't crash when going to sleep with power which is nice.  I'm using the VoodooPS2 and have full trackpad in Sierra.  But the plam rejection isn't as good as ApplePS2 driver which is a bit annoying. I read somewhere that the i7 needs 0x1916000 , not sure.  Here's the chart: https://pikeralpha.wordpress.com/2016/03/25/os-x-10-11-4-build-15e65-and-skylake-graphics-support/

 diff /Volumes/EFI/EFI/CLOVER/config.plist ~/Downloads/10.12-zenbook-ux303u-master/CLOVER/config.plist 154,155d153< HWPEnable< 324c322 < 0x191b0000---> 0x19160000513,514d510< BoardSerialNumber< C02RXBBWH00059137524c520< MacBook---> MacBook Pro530,534c526< MacBook9,1< SerialNumber< C02RXBBWH000< SmUUID< 33985FC1-79DD-4DD5-AD20-A7C37A898000---> MacBookPro12,1

And then do this: From: https://www.tonymacx86.com/threads/release-hwp-intel-speed-shift-on-skylake-and-up-enabler-kext.206090/page-4

I assume you know what Homebrew is (A package manager for macOS):

Code (Text): brew install sleepwatcher sudo brew services start sleepwatcher  It is important to preface the brew services command with sudo, as we want the sleepwatcher service to run as root.

now make a shell script called ".wakeup" containing (assuming the kext is in /S/L/E): Code (Text): kextunload -b good.win.HWPEnabler kextload -b good.win.HWPEnabler  Make the script executable: Code (Text): chmod +x .wakeup  Copy it to "root's home folder": Code (Text): sudo cp .wakeup /var/root/  

 --Randy

  From: Luka Janković <notifications@github.com>

To: LukaJankovic/10.12-zenbook-ux303u 10.12-zenbook-ux303u@noreply.github.com Cc: randy98 randychou@yahoo.com; Author author@noreply.github.com Sent: Thursday, December 29, 2016 11:27 AM Subject: Re: [LukaJankovic/10.12-zenbook-ux303u] Better power management (#4)

how big was the difference?— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

randy98 commented 7 years ago

In looking at this post related to other laptops...: http://www.insanelymac.com/forum/topic/295584-disabling-nvidia-optimus-card-on-all-laptops/

My NVidia is still visible in my System.  So it's probably drawing a lot of power.  I think disabling may bring 8-10 hours of laptop use.  That would be very nice :). --Randy

  From: Randy Chou <randychou@yahoo.com>

To: LukaJankovic/10.12-zenbook-ux303u reply@reply.github.com; LukaJankovic/10.12-zenbook-ux303u 10.12-zenbook-ux303u@noreply.github.com Cc: Author author@noreply.github.com Sent: Thursday, December 29, 2016 11:43 AM Subject: Re: [LukaJankovic/10.12-zenbook-ux303u] Better power management (#4)

Almost 2x...my intel power gadget output was routinely at 4W or over and now it's under 2W.  I'm still confused why it's not lower than 2W given the CPU is only using a fraction of that .  Maybe you're right and the NVidia GPU is running without being shut off. Here's the diff between my and your config.plist.  Everything is running now...I don't crash when going to sleep with power which is nice.  I'm using the VoodooPS2 and have full trackpad in Sierra.  But the plam rejection isn't as good as ApplePS2 driver which is a bit annoying. I read somewhere that the i7 needs 0x1916000 , not sure.  Here's the chart: https://pikeralpha.wordpress.com/2016/03/25/os-x-10-11-4-build-15e65-and-skylake-graphics-support/

 diff /Volumes/EFI/EFI/CLOVER/config.plist ~/Downloads/10.12-zenbook-ux303u-master/CLOVER/config.plist 154,155d153< HWPEnable< 324c322 < 0x191b0000---> 0x19160000513,514d510< BoardSerialNumber< C02RXBBWH00059137524c520< MacBook---> MacBook Pro530,534c526< MacBook9,1< SerialNumber< C02RXBBWH000< SmUUID< 33985FC1-79DD-4DD5-AD20-A7C37A898000---> MacBookPro12,1

And then do this: From: https://www.tonymacx86.com/threads/release-hwp-intel-speed-shift-on-skylake-and-up-enabler-kext.206090/page-4

I assume you know what Homebrew is (A package manager for macOS):

Code (Text): brew install sleepwatcher sudo brew services start sleepwatcher  It is important to preface the brew services command with sudo, as we want the sleepwatcher service to run as root.

now make a shell script called ".wakeup" containing (assuming the kext is in /S/L/E): Code (Text): kextunload -b good.win.HWPEnabler kextload -b good.win.HWPEnabler  Make the script executable: Code (Text): chmod +x .wakeup  Copy it to "root's home folder": Code (Text): sudo cp .wakeup /var/root/  

 --Randy

  From: Luka Janković <notifications@github.com>

To: LukaJankovic/10.12-zenbook-ux303u 10.12-zenbook-ux303u@noreply.github.com Cc: randy98 randychou@yahoo.com; Author author@noreply.github.com Sent: Thursday, December 29, 2016 11:27 AM Subject: Re: [LukaJankovic/10.12-zenbook-ux303u] Better power management (#4)

how big was the difference?— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

astibojr commented 7 years ago

I've successfully disabled the Nvidia graphics with patching the DSDT/SSDTs and now there is better battery performance.

randy98 commented 7 years ago

Can you send me or post all your dsdt and ssdt? My zen book ux303ub (i7 12GB) doesn't always go to sleep even when lid is closed. I used most of the patches here in this git repo...

Thx!!!

Regards,

Randy (phone)

On Feb 24, 2017, at 4:23 PM, Mihaylo Shteryov notifications@github.com wrote:

I've successfully disabled the Nvidia graphics with patching the DSDT/SSDTs and now there is better battery performance.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.