Jump to content

AppleACPIBatteryManager for Tiger and Leopard


418 posts in this topic

Recommended Posts

chun-nan,

tested appleacpibatterymanager b14 - somehow my mouse pointer is jumpy like crazy every minute.

 

I'm also using intelenhancedspeedstep 1.3.2 and appleacpiplatform 1.2.1 on a pentium m sse2

 

Hi KAIBA,

 

Have you tried not to remove intelenhancedspeedstep to see if mouse works ok?

 

Chun-Nan

 

same problems with me here... and my battery still shows 123% in the energy saver panel...

but it shows right model in the system profiler...

 

trying the b13 now...

 

edited: with the b13 one it shows 2 battery icon so i installed the 14 back...

 

Hi kreez_2k,

 

If possible, please post your ioreg_sp.txt so that I can try to find out "123%" issue. Thanks.

 

Chun-Nan

Link to comment
Share on other sites

Hey Chun-nan,

 

thanks for creathing this, I had some problem after install that with 10.5.5

 

1. I can see icon and setting in System Preferences, but I can't see anything in System Profiler, what will be the problem? (I am using... ACPIPlatform 1.0.3, SMBIOS 1.0.14, 10.5.5 PowerManagement.bundle)

 

2. I can't adjust display brightness as well, haven't try restart yet, but I can't figure out a way to solve that problem. Will that be any chance related to the SMBios? or the ACPIPlatform?

 

Thanks

 

Here's my full ioreg_sp ioreg_sp.rtf

Link to comment
Share on other sites

Hey Chun-nan,

 

thanks for creathing this, I had some problem after install that with 10.5.5

 

1. I can see icon and setting in System Preferences, but I can't see anything in System Profiler, what will be the problem? (I am using... ACPIPlatform 1.0.3, SMBIOS 1.0.14, 10.5.5 PowerManagement.bundle)

 

2. I can't adjust display brightness as well, haven't try restart yet, but I can't figure out a way to solve that problem. Will that be any chance related to the SMBios? or the ACPIPlatform?

 

Thanks

 

Here's my full ioreg_sp ioreg_sp.rtf

 

Hi Nozumi,

 

Are you using the original PowerManagement.nundle? If nothing shows up in system profiler but in system preferences, it usually means that you don't have original PowerManagement.nundle installed.

 

As far as I know, you need a backlight driver if you want to adjust brightness on the Display panel of system preferences.

 

Chun-Nan

Link to comment
Share on other sites

Hi Nozumi,

 

Are you using the original PowerManagement.nundle? If nothing shows up in system profiler but in system preferences, it usually means that you don't have original PowerManagement.nundle installed.

 

As far as I know, you need a backlight driver if you want to adjust brightness on the Display panel of system preferences.

 

Chun-Nan

 

Just a question, does the one you post earlier in this thread capable in 10.5.5? Because I extract the one in the 10.5.5 Combo update, and put that to replace the one I had, I'm a bit worry will there be any KP happening...

 

Thanks Chun-Nan

Link to comment
Share on other sites

Good work Chun Nan!Work in 10.5.5;10.5.4;10,4.9 (10.5.4 and 10.5.5 iDeneb)

this is my sistem profiler :thumbsup_anim:

Informazioni batteria:

 

Informazioni sul modello:

Numero di serie: TOSHIBA -PA3450U-1BRS-LION-278

Produttore: TOSHIBA

Nome dispositivo: PA3450U-1BRS

Pack Lot Code: 0000

PCB Lot Code: 0000

Versione firmware: 0000

Revisione hardware: 0000

Revisione cella: 0000

Informazioni sulla carica:

Carica restante (mAh): 1626

Carica completa: No

In carica: Sì

Capacità a carica completa (mAh): 1674

Informazioni sulle condizioni della batteria:

Conteggio cicli: 46

Condizione: Buona

Batteria installata: Sì

Amperaggio (mA): 64858

Voltaggio (mV): 16760

 

Impostazioni d'alimentazione del sistema:

 

Corrente alternata (AC):

Timer per la messa in Stop del sistema (minuti): 10

Timer per la messa in Stop del disco (minuti): 10

Timer per la messa in Stop del monitor (minuti): 10

Lo stop del monitor usa l'attenuazione di luminosità: Sì

Batteria:

Timer per la messa in Stop del sistema (minuti): 10

Timer per la messa in Stop del disco (minuti): 10

Timer per la messa in Stop del monitor (minuti): 2

Lo stop del monitor usa l'attenuazione di luminosità: Sì

Riduci la luminosità: Sì

 

Configurazione hardware:

 

UPS installata: No

 

Informazioni sul dispositivo di ricarica CA:

 

Collegato: Sì

In carica: Sì

 

Thanks!

Link to comment
Share on other sites

Chun-nan:

 

You, sir, are the man.

 

I've been messing with Macs and Windows for decades. but my Acer Aspire One is about the most fun I've had in years, and work like yours is what is making this worth it. Sincere thanks.

Link to comment
Share on other sites

Hi Guys,

 

I was thinking, is it possible to install a script that will put the system to sleep when the battery percent is lower than 5 for example?

 

On my Mac it goes to safesleep when battery is too low. i can then restore from where it was by connecting the power adaptor.

 

On my Hack, it shutdown...

 

So, does somebody tried that or has an idea how we could do?

 

Thanks in advance.

Regards,

 

Edit : I've successed in putting my system to sleep when battery is lower than 5%

 

Here is my script loaded with cron :

 

#!/bin/sh

percent=0

percent=`pmset -g ps | grep "%" | awk '{print $2}' | sed "s/%;//g"`

mode=`pmset -g ps | grep "%" | awk '{print $3}' | sed "s/;//g"`

if [ $mode == "charging" ]

then

{

echo "en charge"

}

else

{

if [ $((percent)) -lt 5 ]

then

{

pmset sleepnow

}

fi

if [ $((percent)) -lt 7 ]

then

{

echo "La mise en veille va se faire dans 2 minutes environ"

}

fi

}

fi

Link to comment
Share on other sites

Still no battery meter - sort of. The battery meter is in the dock, but has no icon, and when I click on it, it says no batteries available.

Kalyway 10.5.2 on dell e1505 intel core 2 duo.

I installed original PowerManagement and AppleACPIBatteryManager_b14.zip

Battery shows up in power info:

Battery Information:

 

Model Information:

Serial Number: Sanyo- DELLUD2606-LION-963

Manufacturer: Sanyo

Device name: DELLUD2606

Pack Lot Code: 0000

PCB Lot Code: 0000

Firmware Version: 0000

Hardware Revision: 0000

Cell Revision: 0000

Charge Information:

Charge remaining (mAh): 4119

Fully charged: No

Charging: Yes

Full charge capacity (mAh): 6554

Health Information:

Cycle count: 178

Battery Installed: Yes

Amperage (mA): 1979

Voltage (mV): 12033

 

System Power Settings:

 

AC Power:

System Sleep Timer (Minutes): 0

Disk Sleep Timer (Minutes): 0

Display Sleep Timer (Minutes): 20

Automatic Restart On Power Loss: No

Wake On Clamshell Open: Yes

Display Sleep Uses Dim: Yes

 

Hardware Configuration:

 

UPS Installed: No

 

AC Charger Information:

 

Connected: Yes

Charging: Yes

 

Here is my general info:

Hardware Overview:

 

Model Name: Mac

Model Identifier: MM061

Processor Name: Intel Core 2 Duo

Processor Speed: 1.83 GHz

Number Of Processors: 1

Total Number Of Cores: 2

L2 Cache: 2 MB

Memory: 1 GB

Bus Speed: 667 MHz

 

Anything else you need to help? Let me know and I'll try to get it here. Any tips you might have would be fantastic.

I appreciate your hard work!

Thanks,

Al

Link to comment
Share on other sites

same problems with me here... and my battery still shows 123% in the energy saver panel...

but it shows right model in the system profiler...

 

trying the b13 now...

 

edited: with the b13 one it shows 2 battery icon so i installed the 14 back...

 

Hi kreez_2k,

 

I have uploaded b15 edition. It should fix the wrong percentage after battery finishes charging.

 

Chun-Nan

 

Still no battery meter - sort of. The battery meter is in the dock, but has no icon, and when I click on it, it says no batteries available.

Kalyway 10.5.2 on dell e1505 intel core 2 duo.

I installed original PowerManagement and AppleACPIBatteryManager_b14.zip

Battery shows up in power info:

Battery Information:

 

Model Information:

Serial Number: Sanyo- DELLUD2606-LION-963

Manufacturer: Sanyo

Device name: DELLUD2606

Pack Lot Code: 0000

PCB Lot Code: 0000

Firmware Version: 0000

Hardware Revision: 0000

Cell Revision: 0000

Charge Information:

Charge remaining (mAh): 4119

Fully charged: No

Charging: Yes

Full charge capacity (mAh): 6554

Health Information:

Cycle count: 178

Battery Installed: Yes

Amperage (mA): 1979

Voltage (mV): 12033

 

System Power Settings:

 

AC Power:

System Sleep Timer (Minutes): 0

Disk Sleep Timer (Minutes): 0

Display Sleep Timer (Minutes): 20

Automatic Restart On Power Loss: No

Wake On Clamshell Open: Yes

Display Sleep Uses Dim: Yes

 

Hardware Configuration:

 

UPS Installed: No

 

AC Charger Information:

 

Connected: Yes

Charging: Yes

 

Here is my general info:

Hardware Overview:

 

Model Name: Mac

Model Identifier: MM061

Processor Name: Intel Core 2 Duo

Processor Speed: 1.83 GHz

Number Of Processors: 1

Total Number Of Cores: 2

L2 Cache: 2 MB

Memory: 1 GB

Bus Speed: 667 MHz

 

Anything else you need to help? Let me know and I'll try to get it here. Any tips you might have would be fantastic.

I appreciate your hard work!

Thanks,

Al

 

Hi alancsi,

 

It seems that AppleACPIBatteryManager is loaded. Can you post your "original" PowerManagement here? Thanks.

 

Chun-Nan

Link to comment
Share on other sites

Hi Chun-nan! I have a question to the calculation of the Remaining Time of the Battery.

 

I dont have many experince in programming.

But i think you calculate the Remaining Time like this:

For my Battery with 7200mAh

AverageRate in b14 = 40mA / minute

AverageRate in b14 = 60mA / minute

 

TimeToEmpty = CurentCapacity / AverageRate

 

Is it possible to make a calculation for example every 60 seconds.

Example: Time1 = 0 seconds; Time2 = 60 seconds;

 

TimeToEmpty = MaxCapacity / (CurentCapacity(Time1) - CurentCapacity(Time2))

 

So you can get the the real remaining time in dependency of the cpu load.

If it is possible can you help me or try to realize that?!

Batterie-Informationen:

 Informationen zum Batteriemodell:
 Seriennummer:	Sanyo     -PA3465U -Li-Ion-3658Q
 Hersteller:	Sanyo
 Gerätename:	PA3465U
 Pack Lot Code:	0000
 PCB Lot Code:	0000
 Firmware-Version:	0000
 Hardware-Version:	0000
 Batterieversion überprüfen:	0000
 Informationen zum Ladezustand:
 Verbleibende Ladung (in mAh):	2880
 Vollständig geladen:	Nein
 Batterie wird geladen:	Ja
 Volle Ladekapazität (in mAh):	7200
 Informationen zum Batteriezustand:
 Anzahl der Zyklen:	0
 Bedingung:	Gut
 Batterie ist installiert:	Ja
 Stromverbrauch (in mA):	3600
 Spannung (in mV):	11100

 

I´m again the second equation is wrong.

 

I mean TimeToEmpty = CurentCapacity / (CurentCapacity(Time1) - CurentCapacity(Time2)).

Link to comment
Share on other sites

First of all, many thanks to Chun Nan for all his work.

 

I am running 10.5.5 on an Acer Aspire ONE (a.k.a. a MacBook Mini :D ). Vanilla kernel, PowerManagement.bundle from the .zip file posted in this topic (10.5.4 is included in the .zip file, I used that one. I wonder if that could be the source of the problem) and AppleACPIBatteryManager b15.

 

In the Energy preferences I get the Battery option and I also get the battery charge percentage. Howeever in the menubar icon I get the icon with the X on top.

 

The System Profiler is interesting:

 

Battery Information:

 

Model Information:

Manufacturer: 11

sppower_battery_model: BAT1

Charge Information:

Charge below critical level: No

Charge below warning level: No

Charge remaining (mAh): 643

Fully charged: No

Charging: No

Full charge capacity (mAh): 4400

Health Information:

Cycle count: 0

Battery Installed: No

Amperage (mA): -1098

Voltage (mV): 10493

 

As you can see, it shows all the battery info. However, it says the battery is NOT installed, which is bizarre.

 

I am attaching my ioreg_sp in case it's useful.

 

Again, thanks for all the work!

ioreg_sp.txt

Link to comment
Share on other sites

Just found out something else interesting. Looking at the Energy Saver preferences, the battery charge will not go above 50%. The reason? Have a look at this line from the System Profiler output (from my post above)

 

Full charge capacity (mAh): 4400

 

It turns out that my Acer Aspire ONE has a 2200mAh battery. Perhaps this is related?

Link to comment
Share on other sites

UPDATE: 10/25/2008

1. Fixed the problem that battery meter doesn't show 100% after finished charging.

2. Changed to only read last three bit for "fCurrentRate" in case that the value read from ACPI table is too big.

 

Thank you :P It workes fine on my Asus X51L notebook ;)

Link to comment
Share on other sites

This is really bizarre.

 

As per the instructions found at http://www.insanelymac.com/lofiversion/ind...hp/t122497.html I installed the RTL8102E driver found at http://www.realtek.com.tw/downloads/downlo...01E/RTL8102E-GR to get the wired Ethernet hotplugging working. For some unknown reason this fixed my battery display! I'm also getting correct battery readings in the System Profiler (it's telling me the correct charge info and brand of the battery). Looking at the package it seems only to contain the AppleRTL8169Ethernet.kext.

 

So now I have a MacBook Mini...erm...Acer Aspire ONE with everything except sleep and the card slots working perfectly. YES!!!!

Link to comment
Share on other sites

Another success - Thanks!!! :D

Acer Aspire One (Intel Atom 1.60GHz, 1GB, 160GB, Dell 1390 with "Wireless Working!")

 

Battery Information:

 

Model Information:

Serial Number: SANYO-UM08A31-LION-7148

Manufacturer: SANYO

Device name: UM08A31

Pack Lot Code: 0000

PCB Lot Code: 0000

Firmware Version: 0000

Hardware Revision: 0000

Cell Revision: 0000

Charge Information:

Charge remaining (mAh): 1852

Fully charged: No

Charging: Yes

Full charge capacity (mAh): 2200

Health Information:

Cycle count: 0

Condition: Good

Battery Installed: Yes

Amperage (mA): 3311

Voltage (mV): 12230

 

System Power Settings:

 

AC Power:

System Sleep Timer (Minutes): 0

Disk Sleep Timer (Minutes): 10

Display Sleep Timer (Minutes): 20

Automatic Restart On Power Loss: No

Display Sleep Uses Dim: Yes

Battery Power:

System Sleep Timer (Minutes): 5

Disk Sleep Timer (Minutes): 10

Display Sleep Timer (Minutes): 2

Display Sleep Uses Dim: Yes

Reduce Brightness: Yes

 

Hardware Configuration:

 

UPS Installed: No

AC Charger Information:

 

Connected: Yes

Charging: Yes

Link to comment
Share on other sites

 Share

×
×
  • Create New...