keithpk
Apr 13 2006, 11:55 PM
Hey Everyone,
So here is the final version of my PowerManagement.bundle with debug messages removed. For people who are interested in the discussion that occured during the development of this driver, please refer to:
http://forum.osx86project.org/index.php?sh...ic=2237&hl=2200Overview:
This PowerManagement.bundle fixes many of the issues that people were having with displaying battery time remaining on laptop systems. As many of you already know, Apple is using many of the advanced features of Intels new Core Duo architecture. One of these is the power management features. Therefore, much of the code was not written to support power management on older (ACPI-based) systems. This new bundles basically, adds support for detecting and retriving information from batteries registered using ACPI.
Who Should Use It:
Really this should only affect people who are using laptop systems, as there really aren't any power management features on a desktop. If you are having problems getting time remaining calculations to display properly I recomend trying this new bundle. If you are not having any problems, you are welcome to try it out anyways, but I really see no reason to. In designing the new ACPI support I tried to leave the existing functionality as intact as possible, therefore, I am sort of curious about whether I succeded. Therefore, if someone would like to try installing this on a working systems, I would be interested in hearing how it worked. (However backup your old bundle just in case.)
Installation:
1. Download the PowerManagement.tar.gz file below to your favorite location
2. Un-archive the files. This will leave you with a PowerManagement.bundle
3. Navigate to: /System/Library/SystemConfiguration
4. (Optional) Backup your old PowerManagement.bundle
5. Copy (drag-n-drop) the new bundle into the SystemConfiguration folder
6. When the dialog box pops up, select authenticate and type your admin password
7. Reboot
8. (Optional) For those of you who helped with testing the debug release, please delete /var/log/PM.log
Additionally, for those of you who are interested, source code of the changes has been provided as well.
Thanks to everyone's help in the original thread for their comments/questions/suggestions, as well as their help testing.
autoy
Apr 13 2006, 11:59 PM
A W S O M E !
Thank you for your time and efforts!
blinksilver
Apr 14 2006, 12:32 AM
Best news ever! THE MBP does not use dynamicpowerstep. I was sitting in front of an mbp at the bookstore of my school (UCSC for those who care) and i check for the little option inside > Preference> energy saver> options, that lets you pick from highest/automatic/reduced CPU speeds and it was not there. So I asked one of the reps to let me look at the console, he did. I checked for dynamicPowerStep and the MPB had the failed to load message. That means something else is controlling the CPU in the MBP.
jrrjrr
Apr 14 2006, 12:39 AM

Thank you for giving me back my battery indicator, keithpk
maclancer
Apr 14 2006, 12:50 AM
thank you for the nice working job!
keithpk
Apr 14 2006, 12:55 AM
QUOTE(blinksilver @ Apr 13 2006, 05:35 PM)

Best news ever! THE MBP does not use dynamicpowerstep. I was sitting in front of an mbp at the bookstore of my school (UCSC for those who care) and i check for the little option inside > Preference> energy saver> options, that lets you pick from highest/automatic/reduced CPU speeds and it was not there. So I asked one of the reps to let me look at the console, he did. I checked for dynamicPowerStep and the MPB had the failed to load message. That means something else is controlling the CPU in the MBP.
Very interesting blinksilver. To keep the discussion of these two different topics separate, lets start a new thread about DynamicPowerStep information:
http://forum.osx86project.org/index.php?showtopic=14915
Zappadoc
Apr 14 2006, 01:44 AM
Great here with my DELL Inspiron 9400 / 10.4.5. Thanks for this amazing stuff!
Bruce Wang
Apr 14 2006, 03:03 AM
Update to the final version and it works great, as expected! Thanks!
mrhotwings
Apr 14 2006, 04:15 AM
working good so far
thanks
Tek_No
Apr 14 2006, 06:08 AM
So far OK on my HP Pavilion ZT3010EA laptop

Great job!
Take care,
Tek_No
184200
Apr 14 2006, 09:41 AM
What about DVD issue? I can't check it at the moment but will do and report back later. Anyway thank you keithpk for all your hard work. Such enthusiasts as you keep this forum running
JJJJJ
Apr 14 2006, 09:41 AM
works great! good job!
Thanks!
stocke
Apr 14 2006, 10:03 AM
Thanks!
Working on Dell C840/8200!
cyclonefr
Apr 14 2006, 10:27 AM
does it works on desktop computer to allow the monitor to automatically shut down after 10 min? thanx
aconu
Apr 14 2006, 12:03 PM
QUOTE(cyclonefr @ Apr 14 2006, 12:30 PM)

does it works on desktop computer to allow the monitor to automatically shut down after 10 min? thanx
No, if you have an ATI video card, you need RadeonTools for that (see Jas posts on first page of the last Omni ATI driver thread).
lilitz
Apr 14 2006, 01:29 PM
Hi all...
Thanks for the driver and thanks to all developers whose are making a great effort to help us.
One question.... My system doesn't detect the battery charge yet. The battery's Icon shows 0% of charge always... why? It's a centrino (with intel Chipset). It's possible that I have to do any change before install the driver?
Thanks otherwise!
Ultraviolence
Apr 14 2006, 03:17 PM
Works great on my laptop (Inspiron 8500)!
Thanks!
cyclonefr
Apr 14 2006, 03:23 PM
aconu ive tried radeontool doesnt work on my desktop computer..and yes my card is in the plist
feyeleanor
Apr 14 2006, 03:38 PM
Works nicely on a Thinkpad X31, and with RadeonTool allows the display to go to sleep. Looks like I won't be needing X-Charge anymore
phb
Apr 14 2006, 05:10 PM
QUOTE(cyclonefr @ Apr 14 2006, 05:26 PM)

aconu ive tried radeontool doesnt work on my desktop computer..and yes my card is in the plist
radeonTool is for laptops only, atleast that's what the linux radeonTools do.
Amet
Apr 14 2006, 08:41 PM
well done keithpk,
Its working on my compaq evo 800c but only after I take the battery out and put it back in.Only then the battery indicator starts working and it works fine until I restart the system....
System profiler shows me that there is no battery instaled but your power bundle is calculating the remaining time just fine.....strange isnt it?
If you get the chance let me know what you think
thanks for all your hard work
System Power Settings:
AC Power:
System Sleep Timer (Minutes): 10
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 10
Wake On LAN: Yes
Display Sleep Uses Dim: Yes
Battery Power:
System Sleep Timer (Minutes): 10
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 2
Display Sleep Uses Dim: Yes
Reduce Brightness: Yes
Battery Information:
Battery Installed: No
First low level warning: No
Full Charge Capacity (mAh): 1713
Remaining Capacity (mAh): 1713
Amperage (mA): 0
Voltage (mV): 16464
AC Charger Information:
AC Charger (Watts): 0
Connected: No
Charging: No
Hardware Configuration:
UPS Installed: No
wishbone
Apr 14 2006, 10:48 PM
same as above on a HP nc6000, before I used a 10.4.3 and with your patch (old) it works great ,but as I installed a new 10.4.5 and try to patch with this new one and it can't find the battery.Still can show icon on the menu bar ,but just with a cross in it .
keithpk
Apr 15 2006, 02:25 AM
QUOTE(Amet @ Apr 14 2006, 01:44 PM)

Battery Installed: No
First low level warning: No
Full Charge Capacity (mAh): 1713
Remaining Capacity (mAh): 1713
Amperage (mA): 0
Voltage (mV): 16464
AC Charger Information:
AC Charger (Watts): 0
Connected: No
Charging: No
Good question , Amet. I didn't know what to make of this at first, either when I saw it in profiler. However, after a while I realized that although the kernel level has support for multipler batteries, very little of the GUI has ever been coded to asume that there will be more than one battery, because Apple no longer makes computers with dual batteries in them. Therefore, what is essentially happening here is that profiler is chosing the first battery it finds, which happens to be the one not present. I haven't quite figured out why it says "Not Installed" but at the same time reports teh "Full Charge Capacity" of the other battery. I know that there are multiple locations where it can pull this information from, so all I can figure is it is getting it from two different sources, one that says the battery isn't present and the other that gives it a full charge.
184200
Apr 15 2006, 11:51 AM
The same old result - I see battery icon in system tray with some % - and it says calculating time. The icon doesn't change even when I unlug power or replug it. I'm using LG LS 50a notebook - Pentium M 1.8MHz
rogabean
Apr 15 2006, 12:51 PM
working as expected on my laptop.
stocke
Apr 15 2006, 01:27 PM
Bug??? (OS X 10.4.5, Dell C840, Maxxuss Patch to 10.4.5)
In the Option Energy Saver:
Optimization: Custom
the computer sleep is set to: 45min
the display sleep is set to: 36min
if one changes the times and closes and open the System Preferences,
then again the same times:
the computer sleep is set to: 45min
the display sleep is set to: 36min
the changes of time are not store!
Can that confirm any?
Can any help me?
mark7714
Apr 15 2006, 08:44 PM
QUOTE(stocke @ Apr 15 2006, 01:30 PM)

Can that confirm any?
Can any help me?
Works for me (I usually have mine around 1- 3 minutes). There are work arounds if you want to use apple script (or the console), but I'm sure you're looking for a working pannel.
dhruv
Apr 16 2006, 07:28 AM
Hey Keith-O, thanks for the release. Still having the problem where my Compaq V2402AU freezes if I (dis)connect the power cord. Do you know why this is caused? Help is greatly appreciated.
devils-haven
Apr 16 2006, 03:15 PM
yehh this works for me too to an extent
on my dell inspiron 1100 with os x 10.4.5
the sleep and display sleep don't shut off the lcd screen and i don't thnk it actualy goes to sleep
also the monitor won't shut off when i close the lid, any way to fix that?
Amet
Apr 16 2006, 04:42 PM
Keith,
I just spent last three days trying to replace drivers(Kexts) in 10.4.6 with the ones from 10.4.1 cos in 10.4.1 i had the battery working and with no sucess, the battery meter only works after I pull the battery out and put it back in....Any ideas what can be done please...anything at all? I know that the laptop is capable of that since it was working....
Thanks
Akira
Apr 17 2006, 01:26 AM
I've spent the better part of the last two days on this forum trying to find references to the Apple DVD Player playback issue, but it almost seems like no one is aware of the fact that this modified PowerManagement Bundle causes Apple's DVD Player applet to slow down to a crawl making the system nearly unresponsive even to Force Quit.
Has anyone else noticed this?
I've tried this on Dell's Inspiron 8600 and HP's Compaq NC6000 laptops. The symptom occurs the moment I install the modified bundle and is corrected when I restore the original bundle.
On the side note, I'm also experiencing the "no battery installed" issue on the HP Compaq NC6000 laptop and yes, the battery removal trick seems to fix the recognition problem, but only for the current session.
For reference the Dell is running 10.4.5 from the pre-patched 10.4.4/10.4.5 iMac Restore DVD and the HP is running 10.4.6 also from the pre-patched 10.4.4/10.4.5 iMac Restore DVD and Myzar's 10.4.6 V3 update patch.
Bruce Wang
Apr 17 2006, 05:44 AM
QUOTE(devils-haven @ Apr 16 2006, 11:18 PM)

yehh this works for me too to an extent
on my dell inspiron 1100 with os x 10.4.5
the sleep and display sleep don't shut off the lcd screen and i don't thnk it actualy goes to sleep
also the monitor won't shut off when i close the lid, any way to fix that?
If you use ATI Radeon Mobility graphics chip, to shut off the LCD screen, you can try RadeonTool:
http://s44.yousendit.com/d.aspx?id=1S4FZKO...0P0DVBYL2BE66K4It works on my Radeon M 7500.
The original post is here:
http://forum.osx86project.org/index.php?showtopic=14724 Post #12 by JaS.
Bruce
devils-haven
Apr 17 2006, 06:01 PM
dell inspiron 1100 only comes with intel extreme grahpics 845g sadly for me.
any oter way?
Xenokira
Apr 17 2006, 06:45 PM
Awesome thanks! I'm going to give this a shot here in the next few minutes

update:
works as expected in Dell Inspiron 6000
mark7714
Apr 18 2006, 02:50 AM
QUOTE(Akira @ Apr 17 2006, 01:29 AM)

I've spent the better part of the last two days on this forum trying to find references to the Apple DVD Player playback issue, but it almost seems like no one is aware of the fact that this modified PowerManagement Bundle causes Apple's DVD Player applet to slow down to a crawl making the system nearly unresponsive even to Force Quit.
Has anyone else noticed this?
People have commented on the DVD issue a couple of times. That specific issue (slowing down) is different than what (I think) most of us have (black screen with audio). The only solution so far is to use VLC or Mplayer, which isn't really a solution, but better than not having the battery monitor.
JJJJJ
Apr 18 2006, 06:38 AM
I've found (may be) a minor bug. It does'nt work "Put Incon on the taskbar..."
Sazpaimon
Apr 22 2006, 11:21 AM
Good news and bad news. This hack got my battery indicator to get the percentage (though it still continues to not be able to calculate its life), bad news is, my laptop still suffers from locking up when it is plugged in or unplugged, though it seems to be more intermittent now (it seems to work properly when removing or adding the power when putting the computer to sleep first).
codeattack
Apr 24 2006, 03:08 AM
Unless there is something else I need to do other than getting this PowerManagement bundle into the SystemConfiguration directory and rebooting, I haven't been able to get this to work. I see no battery icon and my laptop behaves in whatever mode it booted in i.e. if the AC power was plugged in on boot it will operate at full speed and if it is not plugged in it will operate at much lower speed. I have a Dell 710M running an Intel Pentium-M 755. Any ideas why this is not working?
Thanks,
codeattack
codeattack
Apr 24 2006, 02:17 PM
Here is my output from ioreg attached as a textfile.
Thanks,
codeattack
yehweh
Apr 24 2006, 09:24 PM
Works on xps m140 will let you guys know how well after test driving it for a bit.
chazman
Apr 25 2006, 03:26 PM
Wow. Thanks! I didnt think this was possible yet. I'll try it in a few minutes and let you know how it went.
Now all we need is full res
chazman
Apr 25 2006, 11:19 PM
Great job! It works flawlessly with my Compaq V2000.
My parents just bought a mac, and they're taking classes at the apple store on the weekends. My dad told the guy about me being able to run osx on my intel laptop without any hitches. The appleman, of course, denied that it was possible.
Looks like im going in with my dad on the next day I have off to do a little showing off.
yonu
Apr 27 2006, 01:31 AM
hi i have installed the powermanagement bundle on my dell inspiron 1100 and it works somewhat sometimes it gives me battery reading sometimes it doesn't it also doen't allow sleep an advice would be great
icecubed
Apr 27 2006, 04:15 PM
QUOTE(dhruv @ Apr 16 2006, 07:31 AM)

Hey Keith-O, thanks for the release. Still having the problem where my Compaq V2402AU freezes if I (dis)connect the power cord. Do you know why this is caused? Help is greatly appreciated.
I use a HP Pavilion ze2000, have exactly the same problems as you have.
Compaq Presario V2402AU - OSx86 10.4.5: Mine is HP Pavilion ze2000
AMD Turion64 SSE3 ML-32 1.8Ghz (no PowerNow! throttling) AMD Turion64 SSE3 1.6Ghz (no PowerNow! too)
512 MB RAM - same
60 GB 4200 RPM Toshiba HDD - 80GB 4200 RPM HDD
14" WXGA BrightView Display (stretched widescreen)- 15''4' BrightView display
Keyboard + Touchpad (no touchpad scrolling; FN keys freeze system) -same
128 MB ATI Radeon Xpress 200M DevID:5955 (no hardware acceleration; no res switching) - same
AC97 Soundcard w/ 56k SoftModem (no sound; modem not recognised) -same
Broadcom 802.11b/g WLAN Card -same
8x Pioneer Dual-Layer DVD-RW - 16x DL DVD+-RW
Standard 6-Cell Battery (no sleep support; freezes when connecting power cable; extremely high power consumption) - same
so... 3 problems : 1st - power cable; 2nd - SOUND!!; 3rd - FN Keys
i can live with about every other problem there is, execpt those 3
Please try to fix the power cable bug ASAP, Thank you
Sazpaimon
Apr 28 2006, 06:20 AM
Glad I'm not alone here, I'm witnessing the same problem on my Presario M2000 notebook.
vince29
Apr 28 2006, 11:49 AM
The bundle works perfectly on my old gericom/complal/toshiba/... ACL10, but does not on my Acer 1692 wlmi.
ther, it only shows an empty battery icon and keeps calculating. It does not detect wether the power cord is plugged or not. Oh, and I've lost the processor speed setting from the control panel I had in 10.4.3.
cyclonefr
Apr 28 2006, 12:46 PM
any hope one fine day u can use ACPI for desktop's monitor?
johnnylemar
Apr 29 2006, 01:37 PM
Tried the management fix, but get...the operation cannot be complete because i dont have sufficient privilages for power management bundle,after authenticating..Anyone can help with this. My password was correct, so dont know why.
johnnylemar
Apr 29 2006, 03:08 PM
QUOTE(johnnylemar @ Apr 29 2006, 02:37 PM)

Tried the management fix, but get...the operation cannot be complete because i dont have sufficient privilages for power management bundle,after authenticating..Anyone can help with this. My password was correct, so dont know why.
Never mind peeps, got it working after repairing permissions on the disk.
QUOTE(johnnylemar @ Apr 29 2006, 04:06 PM)

Never mind peeps, got it working after repairing permissions on the disk.
Thanks to Keithpk, and all who worked on this
krauli
Apr 29 2006, 09:37 PM
didnt work on my acer aspire 1694..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.