LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-15-2008, 11:33 PM   #1
Mr.Carioca
Member
 
Registered: Jan 2008
Posts: 48

Rep: Reputation: 15
Improving battery life.


I think the title says it all.

I'm using Ubuntu 7.04, so what do you recommend for a better battery life-time?

Thank you so much for reading!
 
Old 02-16-2008, 02:51 AM   #2
PAix
Member
 
Registered: Jul 2007
Location: United Kingdom, W Mids
Distribution: SUSE 11.0 as of Nov 2008
Posts: 195

Rep: Reputation: 40
Hi, General answer I'm afraid. I'm uncertain if you mean the life of your battery before you can't use it portable - life of single charge, or the overall useful life of the battery - Subtle difference.

The single most important thing with most batteries of whatever technology is to never leave them in a discharged state. To do so will reward you with diminishing performance and an early retirement from general usefulness. Generally speaking a happy battery is one that is exercised regularly and kept charged. From time to time it is a good idea to run the battery down and give it a good charge so that it know where it's limits are. In the bad old days of NiCD radio batteries, if you kept them on trickle charge and only used 10%, you quickly found that you had batteries that would only give you 10%. Fortunately times have changed, but some of the tenets are the same.

For single charge longevity, dim down that display to what is required, it consumes power and switch off the wireless if it is unneeded as that will be consuming too. The leaner and meaner your config is with regard to unnecessary processes accessing the disks then it all helps.

I hope that I haven't been too general or outright boring. Happy hacking.
 
Old 02-16-2008, 06:01 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
So, I'm betting what you mean is this:
You have a laptop and you want the batteries to last longer when you're not running on AC current ?

If so, there are several things you can do, in order of effectiveness most to least:
1) Use CPU frequency scaling if your processor supports it, which is usually does
Quote:
Clock scaling allows you to change the clock speed of the CPUs on the
fly. This is a nice method to save battery power, because the lower
the clock speed, the less power the CPU consumes.
2) Look into using laptop-mode
Quote:
Introduction
------------

Laptop mode is used to minimize the time that the hard disk needs to be spun up,
to conserve battery power on laptops. It has been reported to cause significant
power savings.

Installation
------------

To use laptop mode, you don't need to set any kernel configuration options
or anything. Simply install all the files included in this document, and
laptop mode will automatically be started when you're on battery. For
your convenience, a tarball containing an installer can be downloaded at:

http://www.xs4all.nl/~bsamwel/laptop_mode/tools/

To configure laptop mode, you need to edit the configuration file, which is
located in /etc/default/laptop-mode on Debian-based systems, or in
/etc/sysconfig/laptop-mode on other systems.

Unfortunately, automatic enabling of laptop mode does not work for
laptops that don't have ACPI. On those laptops, you need to start laptop
mode manually. To start laptop mode, run "laptop_mode start", and to
stop it, run "laptop_mode stop". (Note: The laptop mode tools package now
has experimental support for APM, you might want to try that first.)
3) Lower screen brightness, for example my $ony laptop can use the 'sony-laptop' module to lower brightness (for $ony laptops only), I'm sure other laptops can do this too somehow (I don't own any, so look around)
Quote:
Backlight control:
------------------
If your laptop model supports it, you will find sysfs files in the
/sys/class/backlight/sony/
directory. You will be able to query and set the current screen
brightness:
brightness get/set screen brightness (an iteger
between 0 and 7)
actual_brightness reading from this file will query the HW
to get real brightness value
max_brightness the maximum brightness value
Sources of all the quotes are the Linux kernel documentation that comes with the kernel source.
 
Old 02-16-2008, 01:48 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
In addition to H_TeXMeX_H's response, some easy ways to reduce battery load:

1) Use darker colors. I read somewhere that it's more energy-consuming to display brighter colors.
2) Set the screen saver to something simple, preferably just a blank screen.
3) Use a lighter wm/dm like XFCE or Fluxbox instead of Gnome/KDE.
4) Avoid processor-intensive programs (compiling a new kernel, 3D accelerated apps)
5) Minimize HDD access and file transfers.
6) If possible, avoid using the cd/dvd drive.
7) If you use the battery a lot consider making /tmp a separate partition using tmpfs.

I got some of that from here:
http://www.faqs.org/docs/Linux-mini/...y-Powered.html
 
Old 02-21-2008, 12:05 AM   #5
normscherer
Member
 
Registered: Sep 2005
Location: Prescott, AZ
Distribution: Ubuntu Mate 18 LTS
Posts: 50

Rep: Reputation: 15
Quote:
Originally Posted by dracolich View Post
In addition to H_TeXMeX_H's response, some easy ways to reduce battery load:

1) Use darker colors. I read somewhere that it's more energy-consuming to display brighter colors.
2) Set the screen saver to something simple, preferably just a blank screen.
The screen power is in the backlight. The backlight power varies with the brightness setting you are using. It does not matter what you are displaying with a lcd screen. If you had a crt on your laptop items 1 and 2 might apply but...

YMMV
Norm
 
Old 02-21-2008, 07:16 AM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Quote:
Originally Posted by normscherer View Post
The screen power is in the backlight. The backlight power varies with the brightness setting you are using. It does not matter what you are displaying with a lcd screen. If you had a crt on your laptop items 1 and 2 might apply but...

YMMV
Norm
It may have been outdated information where I found the suggestion of darker colors. I can't even find it anymore. The idea of a "simpler" screen saver, though, is to put less load on the processor.
 
Old 02-21-2008, 10:14 AM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Also I've read that using hibernation or suspension helps because you aren't booting from scratch each time.
 
Old 02-23-2008, 11:27 PM   #8
cbxzcm
LQ Newbie
 
Registered: Jul 2007
Distribution: Arch
Posts: 1

Rep: Reputation: 0
Check out lesswatts.org . It's a great source of information for lowering your energy usage.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Improving low battery life on Thinkpad T41 jrdioko Linux - Software 7 12-03-2005 02:10 AM
battery life fought Linux - Hardware 5 09-11-2005 01:50 AM
Windows: 4-5 hour battery life, Gentoo : ~2:30 battery life numerous Linux - Laptop and Netbook 3 01-17-2005 08:39 PM
windows, good battery life -> fedora, bad battery life daedalusq1115 Linux - Laptop and Netbook 1 01-17-2005 06:40 AM
Battery life DAChristen29 Linux - Software 2 02-03-2003 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration