View Single Post
 
Old 12-14-2009, 04:15 AM
prasys prasys is offline
Puma
 
Join Date: May 2009
Posts: 21
patched iStat/iStat Pro for HackBooks (battery)

Quote:
Ive managed to fix the problem on why iStat Pro and iStat Nano would not work on HackBooks is that on Intel Macs , it checks for SMC controller to get information about battery. Our SMC data is not being populated for battery and not to mention that we are using a kernel-based driver to get our Battery Information (similar to how PowerBooks and iBooks do work , were using the same ol fashioned method from 10.4.x till today). Obviously we can opt to use SMC , but then we need to gather more data from our laptop Electronic Controller (the backbone of our laptop which is in charge of getting battery information , brightness information , spinning up the disk , spinning down , getting information about ac adapter , etc)


Its not a feasible solution at all . Patching DSDT may not be everyones cup of tea nor having a perfect Electronic Controller . Anyhow Ive patched both iStat Pro and Nano for HackBooks. This will get your battery indicator to work , ETA , its able to tell if the laptop is plugged or unplugged. However its not able to tell you the health of the battery nor the cycle counts of the battery. these information are provided by the SMC controller to the system. We dont have our ACPI drivers probing for that. Its possible to fake it out or find a proper method to do it

Here are the patched version of iStat Pro and iStat Nano. Source codes are included inside the istat.bundle , open it up. its inside there. You cant miss it. Ive commented on how Ive changed. Again we gotta find a proper way to use FakeSMC to give istat the information its looking for , rather then patching istat !

No, they arent going to put this patch in the official iStat and it will never happen as we are using ACPI , and real macs use SMC to probe details from battery
Source : http://prasys.co.cc/2009/12/fixed-is...for-hackbooks/)

Anyway

http://www.mediafire.com/download.php?gwmbmtmtmqj - iStat Pro (source is included)

http://www.mediafire.com/download.php?3nyzoewyj4t - iStat Nano ( source is included)

Compatible with Superhai's VodooBattery (32-bit/64-bit) and AppleACPIBattery by Eureka

Requires OSX 10.5 / OSX 10.6 (will not work on 10.4 with patched powermanagement.bundle) or 10.5 with patched powermanagement.bundle

Edit : Its not going to report battery health nor other vital info apart from the charge left , eta , if its plugged or not.

Just double click and run and yeah as for the screenshot that it works
Attached Images
File Type: jpg Screen-shot-2009-12-13-at-11.25.11-PM.jpg (29.7 KB, 28 views)
Reply With Quote