Contribute
Register

Battery Manager with Fix for Boot without Batteries

Status
Not open for further replies.
Thx. Applied that last patch. Only difference is the reported battery voltage has now increased to 5059mV - that is, it has increased slightly.

Got another problem now - seems serious.
The battery light is blinking orange. The manual does not state what this means.

I just pulled the AC adapter and the laptop switched off :-o
The battery light is off - everything is off.

i press the power button and nothing happens.
Like all power is dead - battery fully drained.

I plugged the AC adapter and can power up and boot but the battery light is blinking orange.

Looks like the battery is dead or the charging circuit is dead.
Damn -- the battery is embedded deep inside and not removable :banghead:

Any software method to test if the battery is dead ?
 
Hi, I tried to install v1.40 of this kext, but all I get is an X on the battery icon, no matter if I have a battery or not, or have plugged in the charger or not. Please help and thanks in advance.

You probably need DSDT patches. Post your vanilla DSDT.
 
Thx. Applied that last patch. Only difference is the reported battery voltage has now increased to 5059mV - that is, it has increased slightly.

Got another problem now - seems serious.
The battery light is blinking orange. The manual does not state what this means.

I just pulled the AC adapter and the laptop switched off :-o
The battery light is off - everything is off.

i press the power button and nothing happens.
Like all power is dead - battery fully drained.

I plugged the AC adapter and can power up and boot but the battery light is blinking orange.

Looks like the battery is dead or the charging circuit is dead.
Damn -- the battery is embedded deep inside and not removable :banghead:

Any software method to test if the battery is dead ?

Kind of sounds like you actually have a failed battery. Have you tried under Windows to see what it shows? Windows, is of course, the gold standard for determining whether you have software (eg. OS X config) or hardware issues.
 
Kind of sounds like you actually have a failed battery. Have you tried under Windows to see what it shows? Windows, is of course, the gold standard for determining whether you have software (eg. OS X config) or hardware issues.

Two steps forward and one step back.

I installed Win 7 - what a pain. It's simpler to install OS X on a PC !
Win 7 battery meter basically said the same as OS X - "0% available, plugged in, not charging":
battery.png

Orange Battery light was blinking.
I downloaded BatteryMon utility to find out more. It basically showed the same problem:

BatteryMon.png

Battery still not charging. So I went about the following:

  1. Disconnect AC
  2. Shutdown Win 7
  3. Tear down the laptop to remove the embedded battery - what a pain.
  4. Pressed and hold down Power button for 2 minutes (seemed liked 2 hours :rolleyes:) to remove any residue power on the motherboard.
  5. Connect AC
  6. Startup Win 7
  7. Get into Device Manager -> Batteries category, click the Microsoft ACPI Compliant Control Method Battery listing and Uninstalled it.
  8. Shutdown
  9. Disconnect AC
  10. Insert battery
  11. Connect AC
  12. Startup Win 7

Success !
Partly. Now windows was showing that the battery is plugged in and charging.
The orange battery LED was on solid.
But after a few seconds, the animated charging icon on the Task Bar, stopped animating but it still showed that it was charging (0% available, plugged in, charging).
Left it over night and this morning, it still shows 0% available :-X
battery voltage is around 5v.
Orange battery LED is blinking.

I removed AC adapter, disconnected battery, held down the Power button for 2 minutes, reconnected battery & AC, started Win 7 and it shows charging. Orange LED is on solid.

Shutdown Win7

I fired up OS X.
Now, the menu bar shows:

Screen Shot 2013-09-24 at 10.06.21.png

After 30 minutes, it still shows "Calculating Time Until Full..."

Looks like the battery is toasted.

Update:
After an hour, the battery meter now shows "2:00 Until Full" :

Screen Shot 2013-09-24 at 11.11.33.png

But after 3 hours, it stated that the "Battery Is Not Charging"

At least, smartbattery meter looks to be working well.
 
BTW, here is another patch I just created for a Sony VAIO SVE15117FDB. I post it here as well, just in case someone has the same or similar computer. They might find it via google search.

Here is the patch:

Code:
# Sony battery patch -boy_iran_64
# for Sony VAIO SVE15117FDB

# created by RehabMan 2013-09-18

into definitionblock code_regex External\s+\(\\TNOT\) remove_matched;

into method label B1B2 remove_entry;
into definitionblock code_regex . insert
begin
Method (B1B2, 2, NotSerialized) { Return (Or (Arg0, ShiftLeft (Arg1, 8))) }\n
end;

# EC registers (that are likely battery related)

into device label EC0 code_regex SMW0,\s+16 replace_matched begin SM00,8,SM01,8 end;
into device label EC0 code_regex BT1I,\s+16 replace_matched begin BTI0,8,BTI1,8 end;
into device label EC0 code_regex BT1C,\s+16 replace_matched begin BTC0,8,BTC1,8 end;
into device label EC0 code_regex BT1V,\s+16 replace_matched begin BTV0,8,BTV1,8 end;
into device label EC0 code_regex BATD,\s+16 replace_matched begin BTD0,8,BTD1,8 end;

# method fixes

into method label SELE code_regex \(BATD, replaceall_matched begin (B1B2(BTD0,BTD1), end;
into method label SMRW code_regex \(\\_SB\.PCI0\.LPCB\.EC0\.SMW0, replaceall_matched begin (B1B2(\\_SB.PCI0.LPCB.EC0.SM00,\\_SB.PCI0.LPCB.EC0.SM01), end;
into method label SMRW code_regex Store\s+\(Arg3,\s+\\_SB\.PCI0\.LPCB\.EC0\.SMW0\) replaceall_matched
begin
Store (ShiftLeft(Arg3, 8), \\_SB.PCI0.LPCB.EC0.SM01)
Store (Arg3, \\_SB.PCI0.LPCB.EC0.SM01)
end;
into method label _PSR parent_label ACAD code_regex \(\^\^PCI0\.LPCB\.EC0\.BATD, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BTD0,^^PCI0.LPCB.EC0.BTD1), end;
into method label UPBS code_regex \(\^\^PCI0\.LPCB\.EC0\.BT1I, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BTI0,^^PCI0.LPCB.EC0.BTI1), end;
into method label UPBS code_regex \(\^\^PCI0\.LPCB\.EC0\.BT1C, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BTC0,^^PCI0.LPCB.EC0.BTC1), end;
into method label UPBS code_regex \(\^\^PCI0\.LPCB\.EC0\.BT1V, replaceall_matched begin (B1B2(^^PCI0.LPCB.EC0.BTV0,^^PCI0.LPCB.EC0.BTV1), end;

# deal with 264-bit SMD0

into device label EC0 code_regex SMD0,\s+264 replace_matched 
begin
//SMD0, 264,\n
SD00,8,SD01,8,SD02,8,SD03,8,\n
SD04,8,SD05,8,SD06,8,SD07,8,\n
SD08,8,SD09,8,SD0A,8,SD0B,8,\n
SD0C,8,SD0D,8,SD0E,8,SD0F,8,\n
SD10,8,SD11,8,SD12,8,SD13,8,\n
SD14,8,SD15,8,SD16,8,SD17,8,\n
SD18,8,SD19,8,SD1A,8,SD1B,8,\n
SD1C,8,SD1D,8,SD1E,8,SD1F,8,\n
SD20,8\n
end;


into device label EC0 insert
begin
Method (RSMD, 0, Serialized)\n
{\n
    Name (TEMP, Buffer(0x21) { })\n
    Store (SD00, Index(TEMP, 0x00))\n
    Store (SD01, Index(TEMP, 0x01))\n
    Store (SD02, Index(TEMP, 0x02))\n
    Store (SD03, Index(TEMP, 0x03))\n
    Store (SD04, Index(TEMP, 0x04))\n
    Store (SD05, Index(TEMP, 0x05))\n
    Store (SD06, Index(TEMP, 0x06))\n
    Store (SD07, Index(TEMP, 0x07))\n
    Store (SD08, Index(TEMP, 0x08))\n
    Store (SD09, Index(TEMP, 0x09))\n
    Store (SD0A, Index(TEMP, 0x0A))\n
    Store (SD0B, Index(TEMP, 0x0B))\n
    Store (SD0C, Index(TEMP, 0x0C))\n
    Store (SD0D, Index(TEMP, 0x0D))\n
    Store (SD0E, Index(TEMP, 0x0E))\n
    Store (SD0F, Index(TEMP, 0x0F))\n
    Store (SD10, Index(TEMP, 0x10))\n
    Store (SD11, Index(TEMP, 0x11))\n
    Store (SD12, Index(TEMP, 0x12))\n
    Store (SD13, Index(TEMP, 0x13))\n
    Store (SD14, Index(TEMP, 0x14))\n
    Store (SD15, Index(TEMP, 0x15))\n
    Store (SD16, Index(TEMP, 0x16))\n
    Store (SD17, Index(TEMP, 0x17))\n
    Store (SD18, Index(TEMP, 0x18))\n
    Store (SD19, Index(TEMP, 0x19))\n
    Store (SD1A, Index(TEMP, 0x1A))\n
    Store (SD1B, Index(TEMP, 0x1B))\n
    Store (SD1C, Index(TEMP, 0x1C))\n
    Store (SD1D, Index(TEMP, 0x1D))\n
    Store (SD1E, Index(TEMP, 0x1E))\n
    Store (SD1F, Index(TEMP, 0x1F))\n
    Store (SD20, Index(TEMP, 0x20))\n
    Return (TEMP)\n
}\n
end;

into device label EC0 insert
begin
Method (WSMD, 1, Serialized)\n
{\n
    Name (TEMP, Buffer(0x21) { })\n
    Store (Arg0, TEMP)\n
    Store (DerefOf(Index(TEMP, 0x00)), SD00)\n
    Store (DerefOf(Index(TEMP, 0x01)), SD01)\n
    Store (DerefOf(Index(TEMP, 0x02)), SD02)\n
    Store (DerefOf(Index(TEMP, 0x03)), SD03)\n
    Store (DerefOf(Index(TEMP, 0x04)), SD04)\n
    Store (DerefOf(Index(TEMP, 0x05)), SD05)\n
    Store (DerefOf(Index(TEMP, 0x06)), SD06)\n
    Store (DerefOf(Index(TEMP, 0x07)), SD07)\n
    Store (DerefOf(Index(TEMP, 0x08)), SD08)\n
    Store (DerefOf(Index(TEMP, 0x09)), SD09)\n
    Store (DerefOf(Index(TEMP, 0x0A)), SD0A)\n
    Store (DerefOf(Index(TEMP, 0x0B)), SD0B)\n
    Store (DerefOf(Index(TEMP, 0x0C)), SD0C)\n
    Store (DerefOf(Index(TEMP, 0x0D)), SD0D)\n
    Store (DerefOf(Index(TEMP, 0x0E)), SD0E)\n
    Store (DerefOf(Index(TEMP, 0x0F)), SD0F)\n
    Store (DerefOf(Index(TEMP, 0x10)), SD10)\n
    Store (DerefOf(Index(TEMP, 0x11)), SD11)\n
    Store (DerefOf(Index(TEMP, 0x12)), SD12)\n
    Store (DerefOf(Index(TEMP, 0x13)), SD13)\n
    Store (DerefOf(Index(TEMP, 0x14)), SD14)\n
    Store (DerefOf(Index(TEMP, 0x15)), SD15)\n
    Store (DerefOf(Index(TEMP, 0x16)), SD16)\n
    Store (DerefOf(Index(TEMP, 0x17)), SD17)\n
    Store (DerefOf(Index(TEMP, 0x18)), SD18)\n
    Store (DerefOf(Index(TEMP, 0x19)), SD19)\n
    Store (DerefOf(Index(TEMP, 0x1A)), SD1A)\n
    Store (DerefOf(Index(TEMP, 0x1B)), SD1B)\n
    Store (DerefOf(Index(TEMP, 0x1C)), SD1C)\n
    Store (DerefOf(Index(TEMP, 0x1D)), SD1D)\n
    Store (DerefOf(Index(TEMP, 0x1E)), SD1E)\n
    Store (DerefOf(Index(TEMP, 0x1F)), SD1F)\n
    Store (DerefOf(Index(TEMP, 0x20)), SD20)\n
}\n
end;

into method label SMRW code_regex Store\s+\(Arg3,\s+\\_SB\.PCI0\.LPCB\.EC0\.SMD0\) replaceall_matched begin \\_SB.PCI0.LPCB.EC0.WSMD(Arg3) end;
into method label SMRW code_regex Store\s+\(\\_SB\.PCI0\.LPCB\.EC0\.SMD0,\s+Arg3\) replaceall_matched begin Store(\\_SB.PCI0.LPCB.EC0.RSMD(), Arg3) end;
 
Two steps forward and one step back.

I installed Win 7 - what a pain. It's simpler to install OS X on a PC !
Win 7 battery meter basically said the same as OS X - "0% available, plugged in, not charging":
View attachment 68135

Orange Battery light was blinking.
I downloaded BatteryMon utility to find out more. It basically showed the same problem:

View attachment 68136

Battery still not charging. So I went about the following:

  1. Disconnect AC
  2. Shutdown Win 7
  3. Tear down the laptop to remove the embedded battery - what a pain.
  4. Pressed and hold down Power button for 2 minutes (seemed liked 2 hours :rolleyes:) to remove any residue power on the motherboard.
  5. Connect AC
  6. Startup Win 7
  7. Get into Device Manager -> Batteries category, click the Microsoft ACPI Compliant Control Method Battery listing and Uninstalled it.
  8. Shutdown
  9. Disconnect AC
  10. Insert battery
  11. Connect AC
  12. Startup Win 7

Success !
Partly. Now windows was showing that the battery is plugged in and charging.
The orange battery LED was on solid.
But after a few seconds, the animated charging icon on the Task Bar, stopped animating but it still showed that it was charging (0% available, plugged in, charging).
Left it over night and this morning, it still shows 0% available :-X
battery voltage is around 5v.
Orange battery LED is blinking.

I removed AC adapter, disconnected battery, held down the Power button for 2 minutes, reconnected battery & AC, started Win 7 and it shows charging. Orange LED is on solid.

Shutdown Win7

I fired up OS X.
Now, the menu bar shows:

View attachment 68137

After 30 minutes, it still shows "Calculating Time Until Full..."

Looks like the battery is toasted.

Update:
After an hour, the battery meter now shows "2:00 Until Full" :

View attachment 68154

But after 3 hours, it stated that the "Battery Is Not Charging"

At least, smartbattery meter looks to be working well.

Time for a new battery and/or AC adapter...
 
Good Day Rehabman.
I hope you can supply me with some assistance.
I installed the kext: Release ACPIBatteryManager.kext, v1.40, Built 2013-09-18. Unfortunately, I only get the battery icon with an x. Any guidance or suggestions you may have will be very much appreciated.
Here is some info about my system:

Laptop: HP G60-440US, Pentium Core Duo T4300, BIOS F.65: OS X 10.8.5/Win7/Linux Mint triple-boot.

I have also attached my dsdt, ssdt, and ioreg file if that is any help.

Thanks,
Charrua1972
 

Attachments

  • DSDT.aml.zip
    17.7 KB · Views: 68
  • IOReg.zip
    295.6 KB · Views: 59
  • SSDT.aml.zip
    467 bytes · Views: 60
Good Day Rehabman.
I hope you can supply me with some assistance.
I installed the kext: Release ACPIBatteryManager.kext, v1.40, Built 2013-09-18. Unfortunately, I only get the battery icon with an x. Any guidance or suggestions you may have will be very much appreciated.
Here is some info about my system:

Laptop: HP G60-440US, Pentium Core Duo T4300, BIOS F.65: OS X 10.8.5/Win7/Linux Mint triple-boot.

I have also attached my dsdt, ssdt, and ioreg file if that is any help.

Thanks,
Charrua1972

You definitely need DSDT patches for the battery. Your DSDT looks very similar to a Compaq CQ60 that I did (which is also similar to an HP Envy patch I did). See: http://www.tonymacx86.com/mountain-...fix-boot-without-batteries-28.html#post656659

If it doesn't work, install the debug version of ACPIBatteryManager and respond with output in system.log.
 
Thanks so much Rehabman.
The patch you recommended worked like a charm and with the release version of the kext.
Not that I am complaining or am concerned at this point but, I thought you might like to know for FYI purposes; the HW Monitor included with *beast doesn't report the battery.

Thanks again Rehabman. If I could ever be of help just ping me.

Cheers.
 
Thanks so much Rehabman.
The patch you recommended worked like a charm and with the release version of the kext.
Not that I am complaining or am concerned at this point but, I thought you might like to know for FYI purposes; the HW Monitor included with *beast doesn't report the battery.

Thanks again Rehabman. If I could ever be of help just ping me.

Cheers.

Yes, that is a known issue...
 
Status
Not open for further replies.
Back
Top