Help - Search - Members - Calendar
Full Version: PowerManagement bundle (with ACPI) for Leopard
InsanelyMac Forum > OSx86 Project > Hardware and Drivers > Other Peripheral Devices
Pages: 1, 2, 3, 4, 5
jaro12345
Hey, everyone !

After tweaking a little Tiger PowerManagement.bundle by keithpk (see: http://forum.insanelymac.com/index.php?showtopic=14912 for more information)

here comes the same, but rebuilt for Leopard (10.5.1).

What works:

- Battery meter (percentage / time) while using only primary battery.
- EnergySaver settings (are retained correctly, unlike when using Tiger bundle on Leopard)
(be aware that manipulating these settings does change your system hibernate mode back to standard -
SafeSleep (mode 3) - use sudo pmset -a hibernatemode 0 hibernatefile /dev/null on the console to reset to what seems to work
for laptop sleep for most people out here - check status with pmset -g)

What does not:

- Real power management (CPU speed / display dimming .. etc): Powermanagement.bundle is not responsible
for applying any of these .. it just provides a way of changing settings and provides battery meter icon ...

- Battery indicator when using two batteries and / or hotswapping secondary battery
(what happens is that battery meter will display inconsistent info when using two batteries and changing
power source ...
- hotswapping support for secondary battery is simply not there in the Apple code.
- reading of current power source (in IOKit/ps) always reads the first battery only (which indicates fact of
being AC Power connected when fully charged and not in use ... at least on my laptop .. YMMV)
(not sure this can be fixed until Apple releases laptops with multiple batteries ...)

Installation:

1. Download the PowerManagement-137-1.bundle.tar.gz file (and unarchive it)
2. Go to: /System/Library/SystemConfiguration
3. Backup your old PowerManagement.bundle
4. Copy the new bundle into the /System/Library/SystemConfiguration/ folder
5. Reboot

Downloads:

09.01.2008: Updated (137-1) release (fixes time calculation in battery meter):

Click to view attachment
Click to view attachment

Problems:

Battery meter does not show: check your AppleACPIPlatform version: kextstat | grep ACPI

- Battery meter does not show while using AppleACPIPlatform v 1.1.0 (KALYWAY)
( -> to fix KALYWAY AppleACPIPlatform: edit /System/Library/Extensions/AppleACPIPlatform.kext/Contents/Plugins/AppleACPIPowerSource.kext/Contents/Info.plist
file and change:
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.driver.AppleACPIPlatform</key>
<string>1.0.5</string>

to:
<string>1.1.0</string>
(then reboot or
sudo kextload -t /System/Library/Extensions/AppleACPIPlatform.kext/Contents/Plugins/AppleACPIPowerSource.kext ..)

- Battery meter shows OK with AppleACPIPlatform v 1.0.5 (iATKOS?)

- I do not think it will work with vanilla AppleACPIPlatform ... (vanilla does not have ACPIPowerSource PlugIn ..)

Sleep does not work anymore: (BUT WAS working before installing this bundle):

- Open Energy Saver Pref pane, make your changes
- from Terminal run sudo pmset -a hibernatemode 0 hibernatefile /dev/null
- You will notice that Battery/AC Power options in the pane moved to "Custom": LEAVE these like this:
changing to Normal / Better Performance / Better Battery Life will reset your system sleep mode again.
(Alternatively: just remember to go to Custom mode before putting system to sleep)

Old download (do not use ..) 07.01.2008: Initital (137) release (does not calculate battery/charge time):

Click to view attachment
Click to view attachment


Enjoy !

J
saepe
Hi!

Thats not working for me! (no bat-meter! EnergySaver settings are quite simple... dont know if intel-power-management-features work?!)

Do i have to fix permissions or sth. like that?!

Im on a Dell Vostro 1700.
Java Duke
Looks good on my HP nw9440, leo 10.5.1 kalyway. I was able to change power settings for battery. However my laptop still doesn't go sleep when I select Sleep from the Apple menu. Screen goes black but fans and leds are on. If I close the lid, it's even worse - all fans and leds are on, when I reopen the lid, the screen goes back on but the system is frozen and I have to power it off. Reboot also doesn't work.
Nero55
Hi,great Forum!
On my Toshiba A100 the Powermanagement works great. smile.gif Good work.
I can change the mode in which the notebook should be. But showing the remaining battery time does not work. There is just :(calculating...)

I'm only missing an opportunity to set the backlight of the lcd lower.

However from the beginning on the sleep mode does not work(also not yet).The fans(CPU/GPU?) do not stop and the Led from the power button glows also. I think only the HDD seems to stop.

Update: If the lcd goes off and i want to go back to leo( typing on a key/touchpad) only the screen backlight goes on... waiting a minute the backlight goes off...(it is a loop) => i have to restart the pc, because can not see what i do huh.gif

Greetings,
Nero

Ps. sorry for my bad english, i'm no native speaker.
wengleung
Man! I LOVE YOU! thank you thank you thank you! Now I don't have to worry about my laptop randomly going to sleep again! I wonder how much battery life i will be able to squeeze out of my laptop with "better battery saving" setting... will it be like vista? ie. 3 hours? I do wonder... I will try this out when I have time later today.

Thank you!

Edit: P.S. my laptop is the hp DV2221tx if it would help anyone.
jaro12345
Hey everyone !

Thanks for trying out !

1. For battery meter not showing problem: check permissions (chown -R root:wheel /System/Library/SystemConfiguration/PowerManagement.bundle ; chmod -R 755 /System/Library/SystemConfiguration/PowerManagement.bundle), then go to System Preferences -> Energy Saver and mark the checkbox in options tab (show battery meter ...)

2. For sleep not working - if it worked before and does not now it's because the bundle resetted your sleep mode back to the original mode 3 (Safe Sleep) most likely: open terminal and set it to 0 (sudo pmset -a hibernatemode 0) - you will notice that Energy Saver settings change to custom: leave these like that - if you switch them back to Better Battery Life the sleep mode will be set to 3 again ...
(check in terminal with pmset -g).

J.
netcrawler
Does this patch work with ToH's RC2 Leopard? It's not 10.5.1, is it?
Order2Chaos
Doesn't work on dell E1505, no battery meter available. Permissions are correct.
jaro12345
Should work on ToH too.. Havent checked (using Kalyway ...)

J.
MeAngry
Does this one also work with the Vanilla ACPIPlatform.kext? Because the Tiger version doesn't. And the Vanilla ACPIPlatform.kext is the only one that puts my laptop to sleep the correct way.
jaro12345
Yes, it should work with Vanilla ACPIPlatform.kext too (that;s to say: if that kext does not run OK on your platform ... you'll not see the battery indicator either ... since it addreses batteries via ACPI ...)

J.
wengleung
@MeAngry,

can you please post your vanilla ACPIPlatform.kext?
Emranit
QUOTE(jaro12345 @ Jan 8 2008, 07:49 AM) *
1. For battery meter not showing problem: check permissions (chown -R root:wheel /System/Library/SystemConfiguration/PowerManagement.bundle ; chmod -R 755 /System/Library/SystemConfiguration/PowerManagement.bundle), then go to System Preferences -> Energy Saver and mark the checkbox in options tab (show battery meter ...)

J.


I have problem. After place powermanagement.bundle and reboot it don't works.
When i type that what u post in terminal i see that, and i don't have options in Energy Saver:

CODE
Last login: Tue Jan  8 17:15:11 on ttys000
michals-mac-pro:~ MN$ chown -R root:wheel /System/Library/SystemConfiguration/PowerManagement.bundle
chown: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/version.plist.obsolete: Operation not permitted
michals-mac-pro:~ MN$ chmod -R 755 /System/Library/SystemConfiguration/PowerManagement.bundle
chmod: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/CodeResources: Operation not permitted
chmod: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/Info.plist: Operation not permitted
chmod: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/Resources/com.apple.SystemPowerProfileDefaults.plist: Operation not permitted
chmod: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/Resources/English.lproj/Localizable.strings: Operation not permitted
chmod: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/Resources/French.lproj/Localizable.strings: Operation not permitted
michals-mac-pro:~ MN$

I have kalyway 10.5.1 on hp pavilion dv6108ea.
Please help me.
djmastera2000
QUOTE(jaro12345 @ Jan 7 2008, 08:58 PM) *
..What does not:- battery meter (time remaining)- PowerSource indicator (will always show Battery if you have primary battery in your laptop, AC otherwise)...


What do you mean could you get it working completelly? Or what has to be add to the source
Megamixman
QUOTE(djmastera2000 @ Jan 8 2008, 10:29 AM) *
What do you mean could you get it working completelly? Or what has to be add to the source


It means it doesn't work yet.... That isn't hard to understand.


QUOTE(Emranit @ Jan 8 2008, 08:27 AM) *
I have problem. After place powermanagement.bundle and reboot it don't works.
When i type that what u post in terminal i see that, and i don't have options in Energy Saver:

CODE
Last login: Tue Jan  8 17:15:11 on ttys000
michals-mac-pro:~ MN$ chown -R root:wheel /System/Library/SystemConfiguration/PowerManagement.bundle
chown: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/version.plist.obsolete: Operation not permitted
michals-mac-pro:~ MN$ chmod -R 755 /System/Library/SystemConfiguration/PowerManagement.bundle
chmod: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/CodeResources: Operation not permitted
chmod: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/Info.plist: Operation not permitted
chmod: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/Resources/com.apple.SystemPowerProfileDefaults.plist: Operation not permitted
chmod: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/Resources/English.lproj/Localizable.strings: Operation not permitted
chmod: /System/Library/SystemConfiguration/PowerManagement.bundle/Contents/Resources/French.lproj/Localizable.strings: Operation not permitted
michals-mac-pro:~ MN$

I have kalyway 10.5.1 on hp pavilion dv6108ea.
Please help me.



Uhmm.... forgetting sudo?
You need root permissions to chown and chmod a file that is only editable by root....
djmastera2000
Sure, just ment there is not so much difference to the "old" one, just wanted to know what could be the issue...

I understand wink.gif
jaro12345
Update: battery time calculation does work now.

See Post #1 in this topic for updated bundle.

J.
~Neo
The time calc does not work for me and the indication if the power source is AC or battery.

Thanks for the work tho...

Edit:
Oh, forgot my System specs:
Lenovo 3000 N200 0769-BDG
Intel Core2Duo
GMA X3100
Leopard 10.5.1 (Not EFI)


cYa ~Neo
the great deceiver
QUOTE(jaro12345 @ Jan 7 2008, 07:58 PM) *
Hey, everyone !

After tweaking a little Tiger PowerManagement.bundle by keithpk (see: http://forum.insanelymac.com/index.php?showtopic=14912 for more information)


1. Download the PowerManagement-137-1.bundle.tar.gz file (and unarchive it)
2. Go to: /System/Library/SystemConfiguration
3. Backup your old PowerManagement.bundle
4. Copy the new bundle into the /System/Library/SystemConfiguration/ folder
5. Reboot

Downloads:

09.01.2008: Updated (137-1) release (fixes time calculation in battery meter):


Enjoy !

J


hey, great work. works 100% on Dell Inspiron E1505. thank you!
saepe
I have problems with reboot sleep and shutdown!
Batterymeter seems to work.
I use the 10.5.2 kexts for my 8600m maybe thats the reason?

i get the message in system log:

usb caused wake event (ehci)

when i klick sleep

anyone has a solution for me?

chilex
Hey, in my hackintosh HP Pavilion dv2322la, Leopard 10.5.1 from Kalyway, work without problems, only i have to run disk permissions beacause the first time the kext didnt work....


Now show the percentage and that things...


Thnxz men!+


PD: sorry my inglish xD
Nicholaslee
This didnt work on my Dell 1520 with Kalyway 10.5.1 .. Tried the kalyway fix in post and still doesn't work, when i try to load the kext in terminal here is what happens: Nicholas$ sudo kextload -t /System/Library/Extensions/AppleACPIPlatform.kext/Contents/Plugins/AppleACPIPowerSource.kextPassword:kernel extension /System/Library/Extensions/AppleACPIPlatform.kext/Contents/Plugins/AppleACPIPowerSource.kext has problems:Missing dependencies:{ "com.apple.driver.AppleACPIPlatform" = "A valid compatible version of this dependency cannot be found"}HELP Someone?Thanks.Anyone with dell 1520 with Kalyway 10.5.1 have the powermanagment bundle working?
zikman
Does screensaver works ok for you all with this bundle?cause in mine i have problem...
Even if i set a certain amount of time in screensaver prefs, the screensaver never activates...
(Sleep and display sleep is set to never)
jaro12345
QUOTE
kernel extension /System/Library/Extensions/AppleACPIPlatform.kext/Contents/Plugins/AppleACPIPowerSource.kext has problems:Missing dependencies:{ "com.apple.driver.AppleACPIPlatform" = "A valid compatible version of this dependency cannot be found"}


Check that ACPIApplePlatform version listed in /System/Library/Extensions/AppleACPIPlatform.kext/Contents/Plugins/AppleACPIPowerSource.kext/Info.plist matches the one in/System/Library/Extensions/AppleACPIPlatform.kext/Contents/version.plist ....

QUOTE
Anyone with dell 1520 with Kalyway 10.5.1 have the powermanagment bundle working?


Yes.

J.
jaro12345
QUOTE(zikman @ Jan 11 2008, 07:40 AM) *
Does screensaver works ok for you all with this bundle?


No, it never kicks in. (However putting display sleep does work)

J.
zikman
i wish someone would found the solution!
Megamixman
QUOTE(zikman @ Jan 11 2008, 06:49 AM) *
i wish someone would found the solution!


Why don't you find the solution?
Otherwise, quit complaining.

Revised kext works great on Lenovo X60 and T61p.
For the most part as long as the power management part of the ACPI image is close to standard, the kext should be fine.
Some notebook manufacturers have been known to mess with their ACPI in order to get better battery life at the expense of compatibility. People who have had lots of trouble with linux power management will understand what i mean.
zikman
i realised the problem the second day of leopard realese using the tiger bundle....
sorry but i dont have the knowledge....sorry for insulting you
Emranit
i fix KALYWAY AppleACPIPlatform -> 1.0.5 to 1.1.0
after reboot, when desk is loaded i see this:

System extension cannot be used.
...../AppleACPIPowerSource.kext

what should i do?
_______________
hp pavilion dv6108ea, kalyway 10.5.1
finjay
does anybody knows if it works with iatkos? or what to do?

dell xps m1210
more or less
QUOTE(jaro12345 @ Jan 7 2008, 07:58 PM) *
Hey, everyone !

After tweaking a little Tiger PowerManagement.bundle by keithpk (see: http://forum.insanelymac.com/index.php?showtopic=14912 for more information)

here comes the same, but rebuilt for Leopard (10.5.1).

[...]


Enjoy !

J


Just curious, keithpk's seems to be working fine for me... what's "new" about this one? I also have working sleep in 10.5.1 with EFI v52...
homerjr43
I tried this on my Dell e1705/9400 and i cant get it to work.. I replaced the PowerManagement.bundle rebooted and nothing has changed...I used the iAtkos v1.0 r2 to install and installed the speedstep patch. The thing that is confusing me is that during the installation of using the iAtkos disc the battery meter was working...but once the system was installed i do not have a battery indicator..

Thanks
the great deceiver
QUOTE(more or less @ Jan 12 2008, 09:10 PM) *
Just curious, keithpk's seems to be working fine for me... what's "new" about this one? I also have working sleep in 10.5.1 with EFI v52...


for many the settings don't stick and always revert back to default. See here in the same thread last pages people finding problems on 10.5.1 (here).

call yourself lucky, it doesn't work for me. but the new one works.
igyo
Superb! smile.gif We wait for new versions!
`Black
Works perfect with Samsung Q35. Sleep is also working with fixed Kalyway ACPIPlatform. Now i only need speedstep and display dimming. smile.gif
Joeandmat
could anybody attach the AppleACPIPlatform fixed in zip format? Thanks!
Joeandmat
thanks at all! dry.gif
STRESSY
Did everything with iatkos...
Doesn't work and my AppleACPIPlatform is OK
Unisex
works for my IBM R51 wink.gif

thank you very much.
Romano2K
QUOTE(Unisex @ Jan 23 2008, 10:31 AM) *
Works for my IBM R51 wink.gif

I own an IBM ThinkPad R51 too. I installed Kalyway Leopard 10.5.1 yesterday and I'm now trying to fix a few issues (see that dedicated topic).

I'm trying to fix the Power Management and therefore followed this topic. I updated my PowerManagement.bundle, on reboot it worked (I had the battery metter working) but I tried to suspend it and it crashed. On next boot it was sooo slow it became unusable. I'm now booting on the Installation DVD in order to recover the original PowerManagement.bundle.

Can you tell me how you did?

Any help about one or several of my other issues are welcome on the related topic though! smile.gif


Update 1:

I launched the Terminal from the Installation DVD and figured out that my PowerManagement.bundle wasn't owned by root:wheel, so I did: chown -R root:wheel PowerManagement.bundle/. There was also a @ at the end of the chmod that I didn't understand but after reboot, the battery display works again.

I can close the screen and re-open it, the computer still works. But it doesn't turn off itself as I requested in the Power Saving settings.
Suspend mode still crashes the computer.
worx
In general, would running os x leopard on a pc have longer battery life than if it were running vista?
chris20
I cannot get this to work on my Vostro 1500.

I am running iAtkos 10.5.1 v1.0 Vanilla Kernel ( I think, how do you know?)

I replaced PowerManagement.bundle with the newest one from the post, repair permissions, reboot and nothing happens. I have no new options in Energy Preferences and battery icon does not appear.

I looked for: /System/Library/Extensions/AppleACPIPlatform.kext/Contents/Plugins/AppleACPIPowerSource.kext/Contents/Info.plist to try some of the solutions recommended. I made it as far as /System/Library/Extensions/AppleACPIPlatform.kext/Contents/Plugins/ all that is listed here is

AppleACPIButtons.kext
AppleACPIEC.kext
AppleACPIPCI.kext

ACPIPlatform.kext is version 1.1.0

I am stumped where to go from this point?
Can anyone please help me? Anyone with iAtkos and Dell Vostro 1500/Inspiron 1520 able to get this working? Please let me know what Im doing wrong here.

---------------------------------------------------------------------------------------------------------------------------

Dell Vostro 1500
C2D 1.6ghz
2gb ram
160 hdd
x3100 working
bluetooth, airport work from install
patched audio with hdapatcher
lan works with patch
vga out works s-video does not
battery want to resolve
wbpluto
it works on my Lenovo F50A....thanks
putzi
QUOTE
I am running iAtkos 10.5.1 v1.0 Vanilla Kernel ( I think, how do you know?)

I replaced PowerManagement.bundle with the newest one from the post, repair permissions, reboot and nothing happens. I have no new options in Energy Preferences and battery icon does not appear.


Same bad luck here.
I have a Toshiba Satellite A100-775 notebook and iAtkos 1.0i

thx anyway
ZoomZom
QUOTE(wbpluto @ Jan 25 2008, 12:57 PM) *
it works on my Lenovo F50A....thanks

It's work, but not correctly show the time to charge or estimated time of batarey...
How to fix it?
Sorry for offtop, but how to manage tne cpu speed and etc to put the nout in energy safe mode
funnypanks
QUOTE(putzi @ Jan 25 2008, 05:05 PM) *
Same bad luck here.
I have a Toshiba Satellite A100-775 notebook and iAtkos 1.0i

thx anyway


same problem here. it says it doesnt work with the vanilla acpiplatform, so i put the one from kalyway dvd on my comp and it no longer boots, so im gonna put my old acpiplatform back, but is there anyway that i can use the kext in the first post with a vanilla setup?
abyz
I have the same situation as Chris. I have a feeling that this patch does not work for Vanilla kernel. I downloaded and copied in the updated AppleACIPPlatform.kext from the Dell thread and it caused the system to panic immediately at boot - I had to boot back to the DVD to restore the one I backed up.

If anyone can figure out how to get this working in our situation, please post!

~abyz
macgirl
I used PM.bundle 137 with 10.5.2 9C23

AppleACPIPLatform is vanilla, just copy the AppleACPIPowerSource.kext from previous and I put it on the Extensions folder inside the plugins directory causes not automatically loaded (I edited its Info.plist to match the 1.2.1 acpiplatform)

AppleSMBIOS and Kernel are also vanilla (PC-EFI 8).

Battery status showing fine.
maj
Confirmed working on a Dell Latitude D620 on Kalyway 10.5.1 with the Info.plist fix.

Thanks!
MrZeroo00
Thank's it works under Leopard for my HP Pavilion dv6113ea with Kalyway 10.5.1 (ACPI) after fixing it (info.plist).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.