LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-15-2003, 04:05 AM   #1
navarre9
Member
 
Registered: Nov 2003
Posts: 40

Rep: Reputation: 15
battery power


could somebody tell me why the hell my laptop with windows lasts for 2 and a half hours fully charged and linux lasts for 1 and a half hour?? without ACPI and the likes??
 
Old 12-15-2003, 02:30 PM   #2
georgew
LQ Newbie
 
Registered: Feb 2002
Location: Alaska
Distribution: Fedora 5, Solaris 10, true64bit unix
Posts: 21

Rep: Reputation: 15
Im not recommending it, but using the 2.6 kernel, Im getting about 1/2 hour more using linux than it did with Windows, wtih ACPI and APM enabled by using very conservative settings, blanking the screen, power down the harddive, ect. I get about 3 1/2 hrs on a fully charged battery. The 2.6 kernel has all thouse options built in. There are patches for the 2.4.xx kernels that will do the same thing.
 
Old 12-16-2003, 02:02 AM   #3
adamis
Member
 
Registered: Oct 2003
Posts: 81

Rep: Reputation: 15
I've just gone through this whole nightmare trying to get things to work myself. The thing is ACPI might not be reckognizing your processor and it isn't throttling the cpu to save power. This also results in a very hot laptop and a fan that constantly runs (if the laptop is relatively fast).

You didn't specify what type of a laptop you have but if it is relatively new and has a mobile processor then the laptop is designed to scale the CPU frequency according to use. In Linux the scaling is done either by ACPI or Cpufreq. If you have a Mobile Athlon XP that is a 2400 or more post back because there is a trick to getting this thing to work.

Try the following command in a terminal

cat /proc/acpi/processor/CPU0/info

You should get something like:

processor id: 0
acpi id: 0
bus mastering control: yes
power management: yes
throttling control: no
performance management: no
limit interface: no

Notice on mine how throttling control is no. This means that acpi isn't reckognizing the processor and thus isn't scaling the processor speeds and saving power. If this is the case as it was for me you should consider moving on to using cpufreq.

Cpufreq has to be compiled into the kernel to work so if you haven't done a compile yet you might want to figure out that process first. When compiling the kernel you will select Cpufreq and what driver to be used for your processor.

When Cpufreq is in the kernel you then have to load the module for your processor. The module provides access to the cpu to change the frequency. Then it is a matte of getting a program like cpufreqd or cpuspeed that will access cpufreq and scale the processor speed automatically.

When I first moved to Mandrake I would get maybe 45 minutes on battery life. Through a lot of time spent banging my head I now have my laptop to around 3 hours of battery life. You can do it, just keep learning.
 
Old 12-16-2003, 04:23 AM   #4
navarre9
Member
 
Registered: Nov 2003
Posts: 40

Original Poster
Rep: Reputation: 15
Cool

Thanks for the above comment adamis!!

well... my laptop is an ASUS L3500D with an AMD Atlhon XP 2000+

You think it might work anyway? what you said above??

If so i would GREATLY apreciate it!!
 
Old 12-16-2003, 11:58 AM   #5
adamis
Member
 
Registered: Oct 2003
Posts: 81

Rep: Reputation: 15
Is your laptop a mobile processor? IE my laptop is an Athlon XP-M. You need a mobile chip in order to take advantage of clock scaling. You can see if cpufreq is already built into the kernel and reckognizes your processor by typing the following into a konsole:

cat /proc/cpufreq

If it gives you something like:

minimum CPU frequency - maximum CPU frequency - policy
CPU 0 532000 kHz ( 29 %) - 1795500 kHz (100 %) - userspace

Then you are set. You just need to find a program that will scale the processor for you. Try cpuspeed or cpufreqd. One or the other will do what you want. I'd start with cpuspeed as it is a little easier to install. It's made by carlthompson or something.

Also, if you get something that looks like the above info you can type the following into a konsole to throttle the cpu manually. Just one note, you can't jump down to the minimum speed right way. You have to step down.

as root in a konsole type:

echo "0:1200000:1200000:powersave" >/proc/cpufreq
echo "0:500000:500000:powersave" >/proc/cpufreq

note the 500000 is the minimum supported speed by my processor, your's might be different. There might be a possibility of the cpu freezing if you take to big of a jump or throttle the cpu to something it doesn't support.
 
Old 04-10-2006, 06:17 PM   #6
outrosdiasvirao
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Rep: Reputation: 0
Hi,

could you help me?
I've a mobile Athlon 4 and I'd like to use a Slackware 10.2 with it. But the fan it's very noisy - working so much.
I use windows too, and the fan works very well, without noise.
I tried to recompile the kernel 2.6.16.2 in the Slackware 10.2 to support ACPI and CPU freq buit-in, without results. With only APM the results it's the same.
I tried to patch the kernel with modules to other mobile architeture (modules in AMD's site), but the problems continue.
I tried to install cpuspeed, cpufreqd, cpufrequtils-xxx, with no results.
There's suport in the Slackware 10.2 to my PC? What I'm doing wrong?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Crash when booting on battery power nogdog Linux - Laptop and Netbook 1 11-06-2005 05:52 AM
Hang on Battery Power karunesh Linux - Laptop and Netbook 1 10-18-2005 09:45 PM
Laptop Battery power Ryan450 Linux - Laptop and Netbook 5 06-06-2004 07:31 PM
how to get battery power management wendallsan Linux - Laptop and Netbook 7 10-16-2003 11:53 PM
Battery Power Meter for laptop? wvillers Linux - Hardware 3 02-07-2003 12:52 AM


All times are GMT -5. The time now is 07:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration