Jump to content

AppleACPIBatteryManager/AppleSmartBatteryManager For Lion


  • Please log in to reply
175 replies to this topic

#41
archintosh

archintosh

    InsanelyMac Protégé

  • Members
  • Pip
  • 37 posts
  • Gender:Male
I fixed my dsdt using Zprood suggestions, but now I'm using latest voodooBattery instead of using AppleACPIBatteryManager. Now battery percentage is displaying correctly. Patched dsdt allows me to use vanilla Lion AppleACPIPlatform instead of SnowLeo's AppleACPIPlatform.

edit: I ran my laptop on battery for several mins, it's still showing 100%, I think I need to recheck my dsdt.
I have fixed my DSDT, now it's running fine, I don't need to convert BFC1 into 8-bit for my Lenovo G470. I just need to convert some parameters under EmbeddedControl into 8-bit. I'm going to try AppleACPIBatteryManager later.

#42
fyodor123

fyodor123

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
Hi @Zprood I coldn't make it. Kext is loaded but it always show %0 percentage. Can you look at my dsdt please.

#43
jazzyguy

jazzyguy

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 188 posts
  • Gender:Male
  • Location:USA

I fixed my dsdt using Zprood suggestions, but now I'm using latest voodooBattery instead of using AppleACPIBatteryManager. Now battery percentage is displaying correctly. Patched dsdt allows me to use vanilla Lion AppleACPIPlatform instead of SnowLeo's AppleACPIPlatform.

edit: I ran my laptop on battery for several mins, it's still showing 100%, I think I need to recheck my dsdt.
I have fixed my DSDT, now it's running fine, I don't need to convert BFC1 into 8-bit for my Lenovo G470. I just need to convert some parameters under EmbeddedControl into 8-bit. I'm going to try AppleACPIBatteryManager later.


Can you please let us know what you had to do to get to 100%?

We have the same thing happening.

#44
archintosh

archintosh

    InsanelyMac Protégé

  • Members
  • Pip
  • 37 posts
  • Gender:Male

Can you please let us know what you had to do to get to 100%?

We have the same thing happening.


I got two BFC on my original DSDT, BFC0 under EmbeddedControl, and BFC1 under
OperationRegion (OGNS, SystemMemory, 0xBCFBEF18, 0x14)
	Field (OGNS, AnyAcc, Lock, Preserve)

I converted BFC0 into 8-bit, n' left BFC1 untouched
Field (ERAM, ByteAcc, Lock, Preserve)
{
//BFC0,   16,
SFC0,   8,
SFC1,   8,

and changed this
//Store (^^EC0.BFC0, BFC1)
Store (B1B2 (^^EC0.SFC0, ^^EC0.SFC1), BFC1)

I also converted some parameters under EmbeddedControl into 8-bit as Zprood suggested on post #1
I don't know whether it will work with your laptop, but it's working on my Lenovo G470. Anyway I'm still using voodooBattery, I haven't gotten time to check it using AppleACPIBatteryManager.

#45
Sanky18

Sanky18

    InsanelyMac Protégé

  • Members
  • PipPip
  • 65 posts
  • Gender:Male

I got two BFC on my original DSDT, BFC0 under EmbeddedControl, and BFC1 under

OperationRegion (OGNS, SystemMemory, 0xBCFBEF18, 0x14)
	Field (OGNS, AnyAcc, Lock, Preserve)

I converted BFC0 into 8-bit, n' left BFC1 untouched
Field (ERAM, ByteAcc, Lock, Preserve)
{
//BFC0,   16,
SFC0,   8,
SFC1,   8,

and changed this
//Store (^^EC0.BFC0, BFC1)
Store (B1B2 (^^EC0.SFC0, ^^EC0.SFC1), BFC1)

I also converted some parameters under EmbeddedControl into 8-bit as Zprood suggested on post #1
I don't know whether it will work with your laptop, but it's working on my Lenovo G470. Anyway I'm still using voodooBattery, I haven't gotten time to check it using AppleACPIBatteryManager.



@archintosh can u please attach ur modified dsdt as i also have a lenovo g460 and i think that ur dsdt might help me edit the battery section of mine. Thanks. And also can u tell me where embedded control is located? I cant find it in my dsdt

#46
Sanky18

Sanky18

    InsanelyMac Protégé

  • Members
  • PipPip
  • 65 posts
  • Gender:Male
wooohoooooo.............battery finally working properly!!! No problems at all!!! Thanks a lot Zprood for such a super awesome guide. Ur the man!! :)
If any Lenovo users having trouble editing their battery info can give me their DSDT.
Thanks a lot!! :(

#47
loKEY

loKEY

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
any ideas for how to turn these 2 lines into 8 bit, cant get it to compile no matter what i try

Store (_SB.PCI0.LPCB.H_EC.B1DF, _SB.BFCC)

and

If (LNotEqual (_SB.PCI0.LPCB.H_EC.B1DF, _SB.BFCC))


#48
ZOleg

ZOleg

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 104 posts
  • Gender:Male
  • Location:Russia
Many thanks Zprood!!!
Battery indicator now work.
Attached File  dsdt.zip   39.7KB   65 downloads - original DSDT
Attached File  dsdt-fixed.zip   40.4KB   133 downloads - fixed DSDT

#49
jazzyguy

jazzyguy

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 188 posts
  • Gender:Male
  • Location:USA
Hey guys, some people using my DSDT as a base to patch their own had the problem with the battery saying fully charged, say at 95 percent. They fixed it by installing this kext.

Attached Files



#50
MiniHack

MiniHack

    InsanelyMac Legend

  • Donators
  • 584 posts
  • Gender:Male
Zprood,
Thank you for all the work you have done on this. I am having real difficulty trying to identify exactly how to modify my DSDT for this. The machine is a lenovo G570.
I'd really appreciate it if you could take a look.
Many thanks for your time.

Attached Files



#51
Zprood

Zprood

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 251 posts
  • Gender:Male
  • Location:CHN

Zprood,
Thank you for all the work you have done on this. I am having real difficulty trying to identify exactly how to modify my DSDT for this. The machine is a lenovo G570.
I'd really appreciate it if you could take a look.
Many thanks for your time.

Try this one:Attached File  dsdt_fix.aml.zip   15.02KB   177 downloads

#52
paulicat

paulicat

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 241 posts
Excellent work!
Worked perfectly for my Acer 8735, now its a complete 18.3" monster macbook pro clone!
Thanks for your hard work!

#53
MiniHack

MiniHack

    InsanelyMac Legend

  • Donators
  • 584 posts
  • Gender:Male

Try this one:Attached File  dsdt_fix.aml.zip   15.02KB   177 downloads


Thank you Zprood. The register conversion had been defeating me - I can now see where I went wrong. Your DSDT fix works very well and lets me use the Lion ACPI kext.

Again, many thanks.

#54
bisk

bisk

    InsanelyMac Protégé

  • Members
  • PipPip
  • 53 posts
Working perfectly on Gateway NV57H (i5/2410m) !

The 8 bit variable conversion routines simplify it all down to little more than a basic search & replace op.
VoodooBattery lives again ;)

Well done !!!

#55
Three Dimensions

Three Dimensions

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
Hi everyone,

Having some problem with the 8 bit conversion method. It got AppleSmartBatteryManager kernel panic when I used my modified DSDT. I think I already changed all the registry like the guide. Please someone take a look at my DSDT. :worried_anim:

Thanks in advance! :angel_not:

Attached Files



#56
loKEY

loKEY

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
Hi Zprood,
i've tried a bunch and really just can't figure this out on my dsdt. i'd really appreciate it if you could take a look. it's a samsung laptop.
thank you for your time and all the work you've done .

Attached Files



#57
CyberWalrus

CyberWalrus

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts
Hi all, I have been trying to get battery working without Voodoobattery on my sony vaio SA. I have tried to implement this method myself, but lots of my stuff seems very different, and I cant work out how it should go together. I would appreciate any help that anyone can give.
My dsdt is attached

Attached Files

  • Attached File  DSDT.zip   14.35KB   2 downloads


#58
gothic860

gothic860

    InsanelyMac Protégé

  • Members
  • PipPip
  • 83 posts
  • Gender:Male
  • Location:Germany, Bavaria
Hey,

i have a Lenovo Thinkpad W520 and i think everything works fine (without DSDT edit...) but i don't get a cycle count. Any idea? I have tried the DSDT edit but i can't find some of the stuff i have to edit / add.

Posted Image


Hope someone can help me here a little bit. Thanks!

Attached Files



#59
flip360

flip360

    InsanelyMac Protégé

  • Members
  • PipPip
  • 87 posts
  • Gender:Male
  • Location:Skopje

Hi Zprood,



Thanks for the kexts and the dsdt fix for a working battery in Lion :)


Fixed it now have correct readings from battery in system info and statusbar :)



Cheers and Thanks :)



#60
sebern

sebern

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts
Zprood,

I try to integrate your fix in my DSDT, but didn't find the right point
to replace 16 bit to 8 bit with your method in my HP/Compaq
DSDT. Tried it several times, but was not able to compile it.
Maybe you (or someone else) can point me to the right direction.
Thanks.

Regards,

Sebastian

Attached File  DSDT.aml.zip   31.95KB   3 downloads





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy