Fedora Linux Support Community & Resources Center
  #1  
Old 5th October 2007, 10:04 PM
dark_dimius Offline
Registered User
 
Join Date: Oct 2007
Posts: 12
Exclamation Live-time on battery(Dell Latitude d630)

So i bought dell latitude d630 with MS WindowsXp. Wile running windows on battery it worked normally for nearly 3 hours, After installing fedora(7.92) i mentioned that work time reduced to nearly 1.5 hours. Has anyone any opinions on reasons and ideas how to optimize working time?

Thanks in advance.
Reply With Quote
  #2  
Old 5th October 2007, 10:30 PM
BlueC Offline
Registered User
 
Join Date: Aug 2007
Location: Liverpool, UK
Posts: 733
A very obvious thing is to ensure that the monitor backlight is dimmed!

As that is a Pentium Dual Core CPU I guess one of the most important things to save power is to ensure that cpu scaling is correctly compiled into the kernel and that the "ondemand" governor is running. You can check that by doing the following...

Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
the above should give result in "ondemand" if the cpu scaling is working.

A useful tool for finding what is consuming power on intel pcs (and tips to make it consume less) is powertop

Also check out lesswatts.org for a ton of useful tips and tricks and programs to make your linux intel PC use less power.

If you want to get really involved in making your PC consume less power you can even undervolt the processor - but that requires compiling a new kernel module.
Reply With Quote
  #3  
Old 5th October 2007, 10:36 PM
dark_dimius Offline
Registered User
 
Join Date: Oct 2007
Posts: 12
thanks a lot. i will try to figure it out
Reply With Quote
  #4  
Old 5th October 2007, 10:57 PM
BlueC Offline
Registered User
 
Join Date: Aug 2007
Location: Liverpool, UK
Posts: 733
Sorry if that was a bit complicated. I guess "out-of-the-box" windows has a lot of "zero-config" power monitoring and control features, whereas on linux you can achieve the same (even more really because its more configurable) but it takes a bit more work.

1) Ensure you CPU is throttling correctly and using the ondemand governor - use something like the cpu frequency applet for gnome to set and monitor it.
2) Ensure your graphics card is doing the same, if for instance it's an ATI card then it will have different "powerstates" that can be set by the driver.
3) Ensure things like screen backlight are set dimmer when on battery power.
4) Install powertop and experiment with what it suggests
5) Take a look at lesswatts.org and follow some of their tips
6) Search for some threads on here - there are many threads about power saving

Oh, and heres a bash script I found somewhere that you can use while the battery is discharging to keep an eye on temperature, discharge rate and cpu frequency...

Code:
#!/bin/bash
# Display CPU frequency, temperature and current drawn from the battery
#in (almost) real time

TAlpha=0.99900 # Coeficient used to compute the temperature average
               # Keep it in the ]0..1[ range.
               # Increase it to have a more smooth temperature average
               # And keep the trailing 0 it is important

IAlpha=0.950   # Same as above but for the current

SamplingPeriod=1
DisplayPeriod=10
TempUnit="°C"

echo "Sampling period: $SamplingPeriod s"
echo "Temperature average coefficient: $TAlpha"
echo "Current average coefficient:     $IAlpha"

# Variables initialization
TAvg=`acpi -t -B | cut --delimiter=" " --fields=9`
TMin=$TAvg
TMax=$TAvg
IAvg=`grep 'present rate:' /proc/acpi/battery/BAT1/state | cut  --delimiter=" " --fields=14`
IMin=$IAvg
IMax=$IAvg
TBeta=`echo "1-$TAlpha" | bc`
IBeta=`echo "1-$IAlpha" | bc`
LastDisplay=1

# Main loop
while [ 0 ]
do
  # Get temperature
  T=`acpi -t -B | cut --delimiter=" " --fields=9`
  # Compute temperature moving aveage
  TAvg=`echo "$TAlpha * $TAvg + $TBeta * $T" | bc`
  # Get current
  I=`grep 'present rate:' /proc/acpi/battery/BAT1/state | cut  --delimiter=" " --fields=14`
  # Compute current moving average
  IAvg=`echo "$IAlpha * $IAvg + $IBeta * $I" | bc`
  # Comute min/max values of current display period
  TMax=`echo "a=$T; b=$TMax; if (a > b) a else b" | bc`
  TMin=`echo "a=$T; b=$TMin; if (a < b) a else b" | bc`
  IMax=`echo "a=$I; b=$IMax; if (a > b) a else b" | bc`
  IMin=`echo "a=$I; b=$IMin; if (a < b) a else b" | bc`
  # Get CPU frequency
  Freq=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
  # Display data
  if [ $LastDisplay -eq 1 ]; then
    Timestamp=`date "+%Y/%m/%d %H:%M:%S"`
    echo "$Timestamp  T = $TMin/$TMax $TempUnit  Avg(T) = $TAvg $TempUnit    I = $IMin/$IMax mA  Avg(I) = $IAvg mA    F = $Freq MHz"
    TMax=$T
    TMin=$T
    IMin=$I
    IMax=$I
  fi
  # Wait until next sampling period
  sleep $SamplingPeriod
  LastDisplay=$(($LastDisplay+$SamplingPeriod))
  if [ $DisplayPeriod -le $LastDisplay ]; then
    LastDisplay=1
  fi
done
Reply With Quote
Reply

Tags
batterydell, d630, latitude, livetime

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No sound: F10 fresh install Dell Latitude D630 jgmitchell Hardware & Laptops 2 2nd January 2009 12:54 AM
FC 8 on a Dell Latitude D630 gwiesenekker Hardware & Laptops 1 12th November 2007 06:09 AM
Unable to use wireless adapter on Dell Latitude D630 markrobt Servers & Networking 3 28th October 2007 02:28 AM
F7 and dell latitude D830 / D630 haerench Hardware & Laptops 22 30th August 2007 03:01 PM
dell latitude C series PPX only boots on battery MikeK Hardware & Laptops 1 17th October 2004 10:28 AM


Current GMT-time: 17:20 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat