Script to log current power consumption

Hello,
I'd like to log the minute-to-minute power consumption of my MacBook, and am wondering if Applescript can do this.
The information is obtained by System Profiler. Can I use applescript to go in to System Profiler and extract the current Amerpage value?

The *System Profiler* application is more or less a front end to the system_profiler shell utility. You can get the battery amperage with something like:
do shell script "/usr/sbin/system_profiler SPPowerDataType | /usr/bin/grep 'Amperage'"
display dialog the result

Similar Messages

  • Powermanager 1.60 has removed the abilty to show the current power consumption in the tray.

    Hi,
    well the topic says it. Powermanager 1.60 has removed the abilty to show the current power consumption in the tray.
    I realy frustrated right now, why the heck did they remove this nice feature?
    And this new energy slider is just trash. If i change back to advanced mode, i cant see my current power consumption. Nor in the main battery tab. The field "Current Power" is just blank. And the option in the tray vanished.
    What the **bleep** are these guys doing. There was a time i fought this powermanger is the best software ibm/lenovo ever produced, but since the change of the ui, and removing important features. Its unbeliveable.
    Especialy if you are on windows xp, this looks like **bleep**, and this "new" gauge desgin, flickers and stops my mouse on hower over the new "Design".
    a frustrated,
    R61 user.

    you should try uninstalling & re install it http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-70602
    Message Edited by GMAC-R60 on 08-08-2009 12:38 PM
    Thinkpad R61 7733-1GU
    Thinkpad X61T 7762-54U
    Thinkpad X60T 6363-4GU
    Did a member help you today? Thank them with a Kudo!
    If a post answers your question, please mark it as an "Accepted Solution"!
    Regards,
    GMAC

  • SONY BM10 Power consumption - working current (for outdoor use)

    Does anybody know what is the max power consumption in watts or miliwatts and the max working current in mA of the sony bm10 bluetooth receiver.Is it possible to power it with a rechargeable battery pack for outdoor use (no AC outlet) and if so, how many mAh should the battery pack be in order for the bm10 to work for 4 - 5 hours? As i am ignorant about these issues i would really appreciate any help.
    Thank you all in advance
    Nikos

    You should contact Sony Xperia Care
    http://www.sonymobile.com/gb/support/contact-us/
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • 2011 MacBook Pro hard drive power consumption

    Does anyone know the differences in power consumption between the Apple-supplied 750GB 5400rpm HDD, 500GB 7200rpm HDD, and 256GB SSD drives?  I'm currently using a 2011 MacBook Pro with an Apple-supplied 256GB SSD and I'm getting between 5-8 hours of battery life, depending on what I'm doing.  I wish it could get closer to a full 10-hour battery life for longer trips, but I realize there's a price for performance.  What's the best hard drive option to minimize power consumption?  Are there any other tips for increasing battery life?  Does it make a difference if you turn off Bluetooth and WiFi when you know you're not going to be able to use them?  Thank you in advance for your reply.

    Yes, turn Wi-Fi and BT off when not needed. That and your screen are the biggest power consumers. Keep the brightness as low as you can to conserve power.  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • Nokia N86 power consumption

    I have a Nokia N86 which is 2 years old.
    I have been experiencing a problem with battery drainage since I bought it. The battery meter suddenly drops from 5 bars to one bar when I browse the net using HSDPA, after about 30mins or so, when the phone is already hot. I sent it into service once, because it happened very randomly and it did not look like a major issue. They said they recalibrated the battery. After a week of somehow uniform battery draining, the battery started going flat suddenly, again, from 5-6 bars to "low battery".
    I went to a service center again to check if it's the battery or the phone. Nokia Energy Profiler says that the current is about 400-500mA when using HSDPA. The engineer at the service center connected a power supply with measurable current consumption, and during the usage of HSDPA, the current was at least 800mA, with almost 1000mA peaks. He said that these current intensities damage the battery in about a month and that he would not recommend changing the battery, but the HSDPA chip. The warranty period expired a month ago.
    I am asking you guys:are these values normal? 800-1000mA during HSDPA usage for a Nokia N86? I need a serious, valid opinion from somebody who really knows mobile hardware. Thank you.

    This has happened to me every now and then. First it seems as if the battery is almost full and then it's suddenly empty even without using the device much.
    Sometimes the device feels warm. In those cases I just reboot it.
    Obvious things to check would be that BlueTooth and WLAN are off if you don't need them.
    Sometimes the switch of the kickstand has activated when I have carelessly thrown the phone on a bed for example. If you have defined it to start an application that could cause some power consumption.
    I haven't tried to measure my power consumption. I guess there are two options:
    - the device actually consumes a lot of power sometimes
    - the battery indicator isn't always up-to-date i.e. it shows several bars when the battery is actually almost empty.
    It's a shame because it's a pretty nice phone and I quite like it. Luckily it's quite a rare problem. 
    (But not that great if the battery dies during a bicycle trip just because I have SportsTracker running.)

  • Actual power consumption on WS-C6509-E

    Hello everyone,
    I have a WS-C6509-E with two WS-CAC-6000W power supplies. I have to determine what is the real power consumption of the whole device but I noticed that there is a mismatch between measurements and show power output so I would very much appreciate if someone could explain why is that so.
    I did the following test to try figure out the consumption from the power grid.
    Step 1. When both supplies are active, show power gives me the following output:
    C6509Test#show power
    system power redundancy mode = redundant
    system power total =     5771.64 Watts (137.42 Amps @ 42V)
    system power used =      2253.72 Watts (53.66 Amps @ 42V)
    system power available = 3517.92 Watts (83.76 Amps @ 42V)
                            Power-Capacity PS-Fan Output Oper
    PS   Type               Watts   A @42V Status Status State
    1    WS-CAC-6000W       5771.64 137.42 OK     OK     on
    2    WS-CAC-6000W       5771.64 137.42 OK     OK     on
                            Pwr-Allocated  Oper
    Fan  Type               Watts   A @42V State
    1    WS-C6509-E-FAN      150.36  3.58  OK
                            Pwr-Requested  Pwr-Allocated  Admin Oper
    Slot Card-Type          Watts   A @42V Watts   A @42V State State
    1    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    2    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    3    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    4    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    5    VS-S720-10G         338.10  8.05   338.10  8.05  on    on
    6    VS-S720-10G         338.10  8.05   338.10  8.05  on    on
    7    WS-X6724-SFP        125.16  2.98   125.16  2.98  on    on
    system auxiliary power mode = off
    system auxiliary power redundancy operationally = non-redundant
    system primary connector power limit =   10920.00 Watts (260.00 Amps @ 42V)
    system auxiliary connector power limit = 10500.00 Watts (250.00 Amps @ 42V)
    system primary power used =              2253.72 Watts (53.66 Amps @ 42V)
    system auxiliary power used =            0 Watt
    Step 2. Then I switched off power supply 1:
    C6509Test#
    *Jan 22 09:29:21.753: %C6KPWR-SP-4-PSOUTPUTDROP: Power supply 1 output has dropp
    ed
    *Jan 22 09:29:21.769: %C6KPWR-SP-2-PSFAIL: power supply 1 output failed.
    *Jan 22 09:29:21.769: %C6KPWR-SP-4-PSREDUNDANTONESUPPLY: in power-redundancy mod
    e, system is operating on one power supply.
    C6509Test#
    C6509Test#show power
    system power redundancy mode = redundant
    system power redundancy operationally = non-redundant
    system power total =     5771.64 Watts (137.42 Amps @ 42V)
    system power used =      2253.72 Watts (53.66 Amps @ 42V)
    system power available = 3517.92 Watts (83.76 Amps @ 42V)
                            Power-Capacity PS-Fan Output Oper
    PS   Type               Watts   A @42V Status Status State
    1    WS-CAC-6000W       3780.00 90.00  -      -      off
    2    WS-CAC-6000W       5771.64 137.42 OK     OK     on
                            Pwr-Allocated  Oper
    Fan  Type               Watts   A @42V State
    1    WS-C6509-E-FAN      150.36  3.58  OK
                            Pwr-Requested  Pwr-Allocated  Admin Oper
    Slot Card-Type          Watts   A @42V Watts   A @42V State State
    1    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    2    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    3    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    4    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    5    VS-S720-10G         338.10  8.05   338.10  8.05  on    on
    6    VS-S720-10G         338.10  8.05   338.10  8.05  on    on
    7    WS-X6724-SFP        125.16  2.98   125.16  2.98  on    on
    system auxiliary power mode = off
    system auxiliary power redundancy operationally = non-redundant
    system primary connector power limit =   10920.00 Watts (260.00 Amps @ 42V)
    system auxiliary connector power limit = 10500.00 Watts (250.00 Amps @ 42V)
    system primary power used =              2253.72 Watts (53.66 Amps @ 42V)
    system auxiliary power used =            0 Watt
    Step 3. Now I disconnect the power input 1 on running power supply 2 thus leaving the device working on only one out of four power inputs:
    C6509Test#
    *Jan 22 09:35:50.297: %C6KPWR-SP-4-INPUTCHANGE: Power supply 2 input has changed
    .  Power capacity adjusted to 2671.20W
    *Jan 22 09:35:50.297: %C6KPWR-SP-4-PSOUTPUTDROP: Power supply 2 output has dropp
    ed
    C6509Test#show power
    system power redundancy mode = redundant
    system power redundancy operationally = non-redundant
    system power total =     2671.20 Watts (63.60 Amps @ 42V)
    system power used =      2253.72 Watts (53.66 Amps @ 42V)
    system power available =  417.48 Watts ( 9.94 Amps @ 42V)
                            Power-Capacity PS-Fan Output Oper
    PS   Type               Watts   A @42V Status Status State
    1    WS-CAC-6000W       3780.00 90.00  -      -      off
    2    WS-CAC-6000W       2671.20 63.60  OK     OK     on
                            Pwr-Allocated  Oper
    Fan  Type               Watts   A @42V State
    1    WS-C6509-E-FAN      150.36  3.58  OK
                            Pwr-Requested  Pwr-Allocated  Admin Oper
    Slot Card-Type          Watts   A @42V Watts   A @42V State State
    1    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    2    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    3    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    4    WS-X6748-GE-TX      325.50  7.75   325.50  7.75  on    on
    5    VS-S720-10G         338.10  8.05   338.10  8.05  on    on
    6    VS-S720-10G         338.10  8.05   338.10  8.05  on    on
    7    WS-X6724-SFP        125.16  2.98   125.16  2.98  on    on
    system auxiliary power mode = off
    system auxiliary power redundancy operationally = non-redundant
    system primary connector power limit =   10920.00 Watts (260.00 Amps @ 42V)
    system auxiliary connector power limit = 10500.00 Watts (250.00 Amps @ 42V)
    system primary power used =              2253.72 Watts (53.66 Amps @ 42V)
    system auxiliary power used =            0 Watt
    C6509Test#
    *Jan 22 09:37:22.317: %C6KPWR-SP-4-INPUTCHANGE: Power supply 2 input has changed
    .  Power capacity adjusted to 5771.64W
    *Jan 22 09:38:58.523: %C6KPWR-SP-4-PSOK: power supply 1 turned on.
    *Jan 22 09:38:58.535: %C6KPWR-SP-4-PSREDUNDANTBOTHSUPPLY: in power-redundancy mo
    de, system is operating on both power supplies.
    C6509Test#
    Step 4. I used the current clamp to measure the current on the remaining power input and it reads 4.9 A.
    When I multiply the current with voltage I get 
    P=4.9*230=1127 W.
    So why does the show power output gives system power used = 2253.72 Watts, which is actually double value of measured 1127 W? What am I missing?
    Thank you in advance for any help on this,
    Marin

    marin_otto.
    Where are you located and what AC line voltage are you operating on (208 or 230v)?  I ran into your post and was wondering if you were operating on 208v which is line to line (two hots) and perhaps you are only measuring current on one line, effectively half the power.
    Dave

  • MacBook Power Consumption

    We operate tens of macbooks at our campus for student loans. We are trying to cut on the power consumption of the loans operation. I am interested to know how much power does the power brick consume when:
    a) nothing is connected to the MagSafe jack.
    b) the macbook is fully charged and the LED is lit green.
    Please don't guess or think! give me a firm answer if you know. I appreciate that!

    I pulled out my 1940s era General Electric Wattmeter. This is a two-coil instrument that measures Vrms * Irms * cos( phase angle) = actual Watts. This type of meter does not measure reactive power that does not deliver energy to the load but circulates in the system. Reactive power is a concern because the out-of-phase current of reactive power does cause energy loss (I squared R loss) by heating the wires carrying the current.
    Power brick energized, but not attached to computer - unmeasurable.
    Power brick energized, attached to computer, green LED on - about 0.7 Watt.
    Power brick energized, attached to computer, OSX booted, but idle - 8 to 10 Watts.
    Power brick energized, attached to computer, screen saver running - 8 - 12.5 Watts.
    Power brick energized, attached to computer, 5th Element DVD playing - 12.5 -15 Watts.
    Power brick energized, attached to computer, Grapher, contours.gcx - 18.5 - 20.5 Watts.
    Once in a while, I could get the MacBook to peak at about 25 Watts (averaged by the mechanical dynamics of my meter) of power consumption. The initial plug-in of the power pack to the socket also consumes several amps for a split second - too hard to measure accurately with my crude equipment. There's also a little audible crack! as the prong touches the outlet, so it is obviously a pretty large momentary in-rush of current.
    When the power brick is unplugged, the Irms current draw is about 22 mA according to my Fluke 8060A. Presumably that's almost all reactive at close to -90 degrees phase angle relative to the voltage. Switch mode power packs like the MacBook's tend to be capacitive loads. That's about 2.64 VARs of reactive power.
    When the MacBook is idling at about 9.5 Watts of real power consumption, the current draw is about 245 mA. The real power corresponds to about 70 mA of in phase current. This gives the surprising result of about 234 mA of lagging reactive current.
    In terms of what real-world thing can you do? For 10 to 100 MacBooks, I don't belive it is worthwhile to do anything. Probably remediating the power supply to reduce the reactive current load would be good thing. At industrial scales, factories worry about current phase angle a lot. Power providers bill for reactive current they have to generate, otherwise they would lose revenue by heating their transmission lines, but the customer gets no energy delivered to the manufacturing process by the out-of-phase reactive current.
    Probably, the energy consumed and eventual environmental waste generated by remediating 10-100 power supplies, not to mention the engineering hours required, would not offset the power that would be saved over the useful life of the MacBook.
    On the other hand, grumbling at Apple to contract with the manufacturer for a greener design for the power pack for the many thousands of users would be a good thing on which to expend a little energy.
    PS: just to be sure my Wattmeter is giving reasonable results, I plugged in a "60 Watt" bulb that's been used for about 200 hours. According to the meter, it draws 58 watts.
    Bill
    Message was edited by: impulse_telecom

  • Power Consumption Revisited

    I was reading an article on tomshardware.com the other day in which they described a process by which they were able to measure the power consumption of various video cards using a simple device that plugs into a standard wall socket and then displays the number of watts the currently plugged in device is using.  In light of the ever-increasing PSU recommendations that tend to show up here (I recall seeing one poster recommend "a PSU with 24 or more amps on the +12V rail for anything other than a barebones system"), I decided that it might be beneficial to these forums if I did a little empirical study of my own.  So anyways, I shelled out ~$30 for the device shown here:
    http://www.supermediastore.com/kilwateldet1.html
    ...and ran some tests of my own.  The results:
    Preliminary Testing -
    To verify that my power meter would give reasonably accurate readings, I first hooked it up to a 3-way lamp with a 50/100/150 watt bulb installed.  The readings returned for the 50/100/150 watt settings (respectively) were 44/94/142, so it would seem like my power meter is at least reasonably accurate.  Some other stuff I measured just for the hell of it...my speakers use 3 watts of power in stadby mode, and 30 watts when active (haven't yet tested when active and playing at full volume), and my monitor uses about 70 watts when on, and about 2 watts in standby mode.
    Results -
    Satisfied that I had not just wasted my money on an inaccurate power meter, I then went and hooked it up to my PC (the one described in my sig) and measured the power consumption under a variety of circumstances.  It is important to note that these readings reflect the total amount of power drain being applied to the wall socket, not the amount of power that is actually being demanded by the system.  This is because no PSU is 100% efficient (a good one will be maybe 80% efficient, if even that much), so the amount of power that is actually needed by the system is actually about (at least)20% *less* than the recorded values.  Anyways:
    During startup, the power usage spikes very briefly at 197 watts, then averages 152 watts over the rest of the boot cycle.
    The system uses 134 watts of power when idling.
    Under full CPU load, the system uses 168 watts.
    Running 3d Mark 2001 the power usage is 169 watts.
    Playing Far Cry (high detail settings, 1024x768x32), the power usage is again 169 watts.
    Conclusions -
    So, let's now assume a worst-case scenario, in which the extra 34 watts recorded during full CPU load came entirely from extra CPU power drain (a reasonable assumption), and in which the extra 35 watts recorded during 3d Mark and Far Cry came entirely from extra video card load (a much less reasonable assumption), and in which we have a PSU that is 90% efficient (greater efficiency means that the system would actually have to demand *more* power in order to get the total power drain up that high).  In this case we see that if an application were developed that fully taxed the video card and CPU continuously, the total power drain would be 134 + 34 + 35 = 203 watts (which actually correlates rather nicely with the 197 watt spike observed during the boot cycle), meaning that the system is demanding about 183 watts from our unrealistically efficient PSU (note that with the PSU efficiency set to a more realistic 75%, the system would only be demanding a mere 153 watts of juice at full CPU and video card load).  
    Admittedly, the video card in my system is relatively weak, so let us again take the worst case scenario and assume that if I were to be using a 6800 Ultra, the total power drain would be 100 watts greater (this is above what the actual difference should be given the results posted on tomshardware.com regarding the power use of the 6800 Ultra), so our video card now consumes an astounding 135 watts of power, and our total power drain (in our unrealistic situation where we have some application which is capable of 100% CPU and video card utilization for a sustained length of time) is now 303 watts.  With our unrealistic 90% efficient PSU, it would mean that the system is demanding about 273 watts from the PSU (about 228 watts with a 75% efficient PSU).
    Note that aside from the weak video card, I have a fairly robust system (which also happens to be slightly overclocked), with 4 HDD's (two of which are WD Raptors), 2 optical drives, several PCI devices, and two large 120mm case fans, and yet the power demands of this system, even in an unrealisticly demanding situation, are *well* within the ability of a quality 380W (or even 300W) PSU to deliver.  In this case even if all the power happened to be being sucked off of the +12V rail (which is not the case), any PSU with 18 amps at +12V could still handle it.  Furthermore, even if I were to add a needlessly power-hungry video card into the mix, the power demands are *still* safely within what any decent 380W PSU should be capable of (and even what a quality 300W PSU should be capable of, although this may be pushing it a little, though it should always be noted that the numbers indicate a hypothetical worst-case power drain that should be beyond the maximum drain possible in any real-world situation).
    So, we can therefore conclude that the power demands of a reasonably robust Athlon64 based system are not astronomical by any means, and that they do not justify a minimum recommendation of a 465W PSU with 24+ amps on the +12V rail for any system which is not "barebones," and that there is no observational evidence to support the idea that a PSU with 18 or fewer amps at +12V is categorically inadequate for use in an Athlon64 based system.
    ...anyways, I guess that's all, I hope you found this interesting, or at least informative.  I'm off to see what else I can do with my power meter thingy...

    Really?  Do you have measured data which clearly supports your claims, or are you just holding up an opinion as a matter of fact?
    My point was, my measured results show that the total power demand of an Athlon64 based system across *all* of the rails is fairly low, even at 100% system load.  So, let's recalculate things assuming a 75% efficient PSU, with 75% of all load being at + 12V (which is still probably higher than the actual value), and let's leave the hypothetical 6800U inside of my system.  We get .75 * 303 = 227 watts in total that the system is demanding.  Of these 227 watts, the system is demanding .75 * 227 = 170 watts over the +12V rail.  170 watts / 12V gives us a total demand of 14.2 amps on the +12V rail.  Note that this is with the hypothetically demanding 6800U card installed and is still likely to be at least a couple amps higher than what a *real* system would ever use, and any *quality* PSU capable of 18 amps at +12V should still be perfectly adequate for use in the system.
    Furthermore, PSU efficiency dropping to 60% in real world situations supports my results, as it means that the actual system was demanding substantially *less* power than the system in my hypothetical example, making things even *easier* for the PSU.  Re-running the above equation with a 60% efficient PSU and 75% of all power demand coming from the +12V rail, we see that the system is only asking for 11.4 amps at +12V at full load with a 6800U installed (and also at full load).
    If you want to disagree with my results, that's fine, but don't expect me to take your argument as credible unless you have some actual, measurable data to back up your claims.  Saying "this is the way things *really* work because I say so" doesn't cut it, so until you want to break out a multimeter and measure the amps your PSU delivers to the MB on the +12V rail at boot, idle, load, and gaming and then report your results and discuss whether or not they are consistent with your "amps are what counts" hypothesis, I hold my results and conclusions up as being valid, and as soon as I see any measured results which contradict mine, I will gladly stfu about PSU recommendations being needlessly high.

  • [Solved] High power consumption of eth0

    Hi everyone,
    i successfully installed Arch on my new Acer Travelmate P653-MG a few months ago with the Gnome DE. Everything worked fine until a few weeks ago, when i discovered a really hard power regression due to my network interface. Before i had a solid 12 W of power consumption (without that much of finetuning), but afterwards my power consumption jumped to 23-25 W. I have attached two screenshots of my current powertop output:
    http://i.imgur.com/8tpSnXf.png
    http://i.imgur.com/CaVg61A.png
    Unfortunately i can't quite say when this regression occured, so as to point to a certain update. My first guess was, this had to be kernel specific, but the downgrade from kernel 3.7 to 3.6 brought no results. I must admit after hours of searching google, the arch wiki and the forum here, i'm at a complete loss. I have discovered no one with a similar problem.
    If anyone can help me in this matter, your help would be very much appreciated!
    My current kernel parameters are: quiet splash nmi_watchdog=0 acpi_osi=linux acpi_backlight=vendor
    Please tell me any outputs i can provide which could be of help to you.
    Greetings
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by ToshiroTaicho (2013-02-16 22:08:07)

    Thanks for your suggestions, but i was finally able to figure it out myself. linux-lts was unfortunately no option for me, as i want to use bumblebee. But the direction, this pointed me to was good. It seems one of the kernel updates broke my bumblebee package, so the power management didnt work and the card was constantly powered on. This was nothing new, but my powertop completely messed it up, by adding this additional power consumption to eth0. Funny enough, this power consumption even disappeared, when i unloaded eth0. After deleting powertops saved results and recalibrating it, it now shows up all components power usage correctly.
    Thus i mark this thread as SOLVED.

  • [SOLVED] Huge power consumption after kernel upgrade.

    Dear All,
    I have recently bought the new lenovo thinkpad X1 equipped with a Core I5 processors and 4GB of RAM.
    I am quite satisfied with this machine except for the fact that the fan is extremely loud (but perhaps a bios upgrade will fix problem).
    Now my problem:
    When I first installed Arch (first days of August) I ran powertop and the power consumption was around 10 Watts when idle with wifi card turned off.
    Now, after some upgrades, the power consumption raises to 18W in idle and consequently the battery lasts less than 2h.
    Here my current configuration:
    Linux think-x1 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64 Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz GenuineIntel GNU/Linux
    and here the powertop output obtained with the cpu frequency governor set to "On demand":
    Cn Avg residency P-states (frequencies)
    C0 (cpu running) ( 5.3%) Turbo Mode 0.1%
    polling 0.0ms ( 0.0%) 2.50 Ghz 0.0%
    C1 mwait 0.2ms ( 0.1%) 2.21 Ghz 0.0%
    C2 mwait 0.3ms ( 0.0%) 1200 Mhz 0.1%
    C3 mwait 2.4ms ( 0.0%) 800 Mhz 99.8%
    C4 mwait 13.1ms (94.6%)
    Wakeups-from-idle per second : 76.1 interval: 3.0s
    Power usage (ACPI estimate): 15.7W (2.8 hours)
    Top causes for wakeups:
    46.5% (135.7) kworker/0:0
    17.7% ( 51.7) PS/2 keyboard/mouse/touchpad interrupt
    11.9% ( 34.7) [kernel scheduler] Load balancing tick
    8.6% ( 25.0) [iwlagn] <interrupt>
    2.9% ( 8.3) [i915] <interrupt>
    2.6% ( 7.7) [acpi] <interrupt>
    1.8% ( 5.3) chromium
    1.6% ( 4.7) [kernel core] hrtimer_start (tick_sched_timer)
    1.5% ( 4.3) kworker/0:1
    0.7% ( 2.0) minilogd
    0.7% ( 2.0) [kernel core] iwl_bg_watchdog (iwl_bg_watchdog)
    0.6% ( 1.7) X
    0.6% ( 1.7) [kernel core] intel_gpu_idle_timer (intel_gpu_idle_timer)
    0.3% ( 1.0) Terminal
    0.3% ( 1.0) [kernel core] tpt_trig_timer (tpt_trig_timer)
    0.2% ( 0.7) [mmc0, mei, ehci_hcd:usb3] <interrupt>
    0.2% ( 0.7) upowerd
    0.1% ( 0.3) init
    0.1% ( 0.3) gpg-agent
    0.1% ( 0.3) [kernel core] ieee80211_sta_reset_conn_monitor (ieee80211_sta_conn_mon_timer)
    0.1% ( 0.3) wicd-client
    0.1% ( 0.3) kworker/u:3
    0.1% ( 0.3) watchdog/0
    I have also tried to disable most of the running daemons and unload some modules, but I have never got less than 14/15W when idle, which in my opinion is definitely too much!
    As far as I'm concerned, the kworker process is responsible most of the wakeups. 
    Any ideas?
    Last edited by jacopo_c (2011-09-05 13:12:16)

    pogeymanz wrote:I read somewhere that the kernel devs really don't see this as an issue. They just expect that laptop owners should know to try these boot parameters. So, definitely not by 3.1.
    from https://bugzilla.redhat.com/show_bug.cgi?id=727579:
    Dave Jones 2011-08-03 15:32:21 EDT
    enabling it by default in 3.0 caused regressions for some people, so it was
    disabled. Hopefully Intel figures it out, and we can switch it back on by
    default in 3.1 / 2.6.41 (until then, you'll have to set it by hand).
    Interesting stuff, also recommend this thread on phoronix:
    http://phoronix.com/forums/showthread.p … Regression
    Last edited by masteryod (2011-09-12 00:30:00)

  • I915 power consumption issue after switch to systemd?

    After switching to systemd I noticed a massive increase of power consumption on my Thinkpad X220 (i5 Sandy Bridge).
    The strange thing is, that after some reboots it randomly seems to catch the i915 power saving mode and the consumption gets from ~24W to ~7W at idle. But only after several reboots.
    Adding the good old i915.i915_enable_rc6=1 to the boot parameters doesn't make any differences. But looking at the powertop detail outputs it seems to be a i915 issue.
    Using the latest linux kernel from core (3.6.4) and latest intel drivers (2.20.12).

    I started to get suspicious because I have only ever had the issue in my office. Last week, when I encrypted my drive, my machine wrote to disk for more than 14 hours solid. I then did all the set up and all the restoring from backup etc. with no issue whatsoever. Lenovo ran the thing for 48 hours straight with no problem. But once in my office...
    So I asked the local IT people if they could think of anything other than overheating and explained the issue. They took my laptop yesterday , booted it from a hardware testing CD and ran it for a couple of hours sitting on top of a hot computer in the server room which is definitely hot. (It has a whole bunch of computers, I guess.) No issue. They then ran stress tests for a while in the same place. No problem. Highest recorded temp: 65C.
    The head of IT then took my power adapter to a more general IT service to be tested and inspected. They looked at it, they opened the plug to check the fuse, they tested it. No problem. Of course, the guy also explained why he was asking and the other IT person said, "Oh, is that on level 1?" "Yes..." So apparently there was another machine (a Mac), I think, doing just the same thing in an office in my part of the building. Testing showed that the power spikes and when the power spikes, the laptop shut down as a safety measure. Solution: they installed a UPS for that one laptop. They didn't tell anybody else, including the local IT people.
    What the local IT people were going to do was to install equipment to monitor the power in my office and see if anything weird was causing my laptop to react. However, that was when this was an extremely-unlikely-but-we-are-getting-desperate-for-theories scenario. Clearly, that theory no longer seems wildly implausible at all. So the current hypothesis is that it is most likely that my machine is also reacting to the spikes in power by shutting itself off. (I'm not sure why it should have just started doing this but who knows what the state of the electricals is and how that might vary?)
    I have been told that a surge protector will do no good. (They've given me one anyway but apparently it will not deal with spikes in phase 3 power or something - I didn't understand this bit but the head IT person said he didn't understand it either but the electricals IT person showed him with graphs on the whiteboard. So it must be true.)
    The current plan is to try to get the UPS from central IT which was provided for the other laptop since that person's discipline has since moved to another floor of the building so the UPS probably went back to central IT. They are going to ask during a meeting tomorrow about this possibility. Otherwise, they are planning to order a UPS for me on Monday.
    I'm somewhat surprised that the abrupt shutdowns haven't screwed my data. I've lost work but not seen fs corruption. I didn't take my laptop today. I'll need it next week but I do not plan to plug it in in my office until I have a UPS.
    I'm pretty annoyed, to be honest. I've wasted hours on this and got incredibly stressed about it. The IT people have also wasted a (smaller) amount of time. I hoped to have a new draft of an article I'm working on written by the end of reading week but that didn't happen due to all of this. And they *knew*. It would be different if this was an unknown problem just discovered - of course, one could understand that. But there's a known problem which can cause this type of problem and presumably could well damage equipment without these sorts of safety shutdown features and they don't tell anybody.
    And, no, I doubt very much indeed that a damaged personal machine would be considered the institution's liability. (Maybe if it was a student's machine and the student was required to use it or something but even then...)
    I can't believe it does much good to their equipment either.
    The local IT people did know there was an issue with some burnt out devices but that was about eight years ago and only got mentioned as a outside possibility when other diagnostics turned up no result.
    What gets me is that the proposed solution will only solve the issue for me - not for anybody else in my part of the building on level 1.

  • How to measure power consumption of a brushless DC motor

    Hi,
        I need to measure the power consumption of a moog 23-23 motor using a PXI platform because I need to save the instant power consumption data. I have a Dqmx 6259 and a FPGA module. The problem is that I don't know if I should measure the current and voltaje of all three coils of the motors or if it is enuogh measuring just one, plus is it better to measure in differential mode all the signals directly with the DAQmx or shoul I use a differential amplifier first?

    I don't see anything wrong with your approach; however, I'll throw out a few thoughts:
    If you could tie the sending of the change-voltage command (in your DLL) to the START TASK command for DAQ, you could reduce the variability in the time between the two events. Maybe that's important, maybe not.
    Can you set the voltage via some LabVIEW code, rather than a DLL?
    You might or might not want a variable sampling rate - if you expect 10 mSec, you might want to sample at 10 kHz to catch the 1% difference between 10.2 and 10.3 mSec. But if you're expecting 500 mSec, you could sample at 200 Hz to catch the 1% difference between 500 mSec and 505 mSec, thereby saving data space and processing time. Maybe that's important, maybe not.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Measuring Power Consumption

    I bought a Kill-a-Watt power meter some time ago and used it to measure how much power my MAc ***** up. I currently have a Mini and it's power consumption I think is tremendous. I am considering purchasing a MacPRO sometime in the next few months and was wondering what the MacPro, or any other Mac for that matter, uses in electricity in 3 different modes: sleep, pegged, running
    Mac Mini:
    running: 19-20 watts
    pegged: 33 watts
    sleep: 2-3 watts
    Also, please post how you measured the electricity used.
    Thanks, Jim

    Here is what Apple has to say:
    http://www.apple.com/environment/resources/calculator.html
    Also:
    http://www.apple.com/environment/resources/specs.html
    -mj
    [email protected]
    Message was edited by: macjack

  • Sandy bridge bootloader power consumption fix

    Have the power consumption fixes been implemented in newer/current versions of the kernel? Or is still necessary to keep the lines in the grub cfg?

    pcie_aspm=force should no longer be necessary. i915_enable_rc6 etc should be included in 3.4 kernel as far as i know.

  • Macbook 13" Pro Power consumption

    I've emailed Apple about this, thought I should repeat here:
    There is a nice page with the technical power and thermal data of the Mac Mini at http://support.apple.com/kb/HT3468 , but I wasn't able to find something like this for the 13" and 15" pros, any chance we'll see them?
    PS A web review said idle 13" was 14W, and they never went over 29W, but I doubt the MacBook overperforms Atom netbooks in power consumption. Running prime95 and a nice graphical app should do the trick

    I don't think they are available for the mid-June models yet. Here are the environmental reports for the 15" Late 2008 MacBook Pro and the 13" Late 2008 MacBook.
    The power consumption of the current 15" MBP should be similar to the previous 15" MBP, and the power consumption of the current 13" MBP should be similar to the previous 13" MB.

Maybe you are looking for

  • Cannot delete music from iPod

    Hi all, I have a 32Gb iPod Touch. My library makes it necessary to only load music that can fill the iPod, as I have more music that that. I attempted to delete my iPod library, which seemed to work initially. BUT, not all the music was deleted - 4 a

  • How can I set my y-intercept (b) equal to zero retina macbook 2014

    Hello everyone, I hope you can reply to my question before 11:55p.m. today because that is when my report is due. I graphed my scatter plot and got my trend line, but my professor wants the class to set the y-intercept, the (b) from y=mx+b to zero. C

  • Botton on selection screen

    Hello gurus ,            guru I want to make a selection screen like fint tcode . suppose I have two button one is open and another is close , when user will press the open button one bolck will come wih close button and open button will disappear ,

  • Playing iPod through iTunes

    One of the primary reasons I purchased my iPod is that I have over 10 GB of music on my harddrive, which is only 40 GB, and about 100 CDs that I didn't have room to rip. I wanted to import them all to my iPod and then put the original files on an ext

  • What is the use of Indexes in ODS&Infocube??

    What is the use of Indexes in ODS&Infocube??