|
|
10.4: Use new power management features
I was curious to find out just how much battery charge life was being saved by this "Reduce the brightness..." when in Battery setting.
Battery levels w/pmset -g pslog
[Seeing as the original hint was posted several years ago, I'll leave this mini-hint here largely for posterity]
The pmset utility in OSX 10.5 now includes a new feature to loop through a continuous series of battery level updates w/o having to use a separate sleep command: pmset -g pslog Which will display battery stats and loop every minute or so. If you need to monitor battery life (say for troubleshooting) and you don't want to watch the batt. level indicator constantly, here's a quick way to have OSX's text-to-speech tell you the current value every 2 minutes: ruby -e 'loop do;if %x(pmset -g batt)=~/(\d+%)/;%x(say "battery at #{$1}");end;sleep 120;end' (This works with the Leopard version of pmset. I haven't tested it w/any other. Why use Ruby instead of a shell script w/pipes to awk/sed/etc? I dunno -- why not? Ruby is awesome :-) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|