LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-20-2007, 09:29 AM   #1
falcon56215
Member
 
Registered: Jan 2002
Location: Tennessee
Distribution: Xubuntu Natty on Lenovo R61i Thinkpad
Posts: 108

Rep: Reputation: 16
Laptop slows down on battery


I have a Compaq 2195US. I notice a considerable performance hit when running on batteries vs. plugged into the wall. It has an AMD ATHALON XP-M processor, which I can set to performance and fix the speed at 1855 MHz. On wall power, with nothing on my desktop open, and at that speed, CPU usage averages around 15-20%. If I just unplug the adapter, CPU usage jumps to 50-60%??? The speed still shows as 1855 MHz, the only thing I can figure is maybe the voltage is being scaled down, but I cannot figure out how to check/affect that. It does the same thing whether I am running Windows on it or Linux, so I don't think it is an OS issue. Anyone have any ideas?
 
Old 02-20-2007, 10:41 AM   #2
nightshade_1977
Member
 
Registered: Nov 2006
Location: Clarksville, VA
Distribution: Linux Mint, Ubuntu Server
Posts: 114

Rep: Reputation: 15
if there is a way to configure it you will find it in the BIOS also check for BIOS updates from Compaq

if that doesn't work I'm out of ideas sorry
 
Old 02-20-2007, 01:44 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
This is almost certainly a design feature of the machine itself. Many laptops will step down the CPU when the machine in on battery power in order to extend the battery's charge. This is actually a desirable thing, as you'll be able to use the PC for a longer period of time than if it were running at full speed. (Along those lines, most laptops will also dim the display, etc, again to save power)

You are correct though that this is not Linux issue
 
Old 02-20-2007, 01:53 PM   #4
wgbjr
LQ Newbie
 
Registered: Jul 2002
Posts: 29

Rep: Reputation: 15
There may be a BIOS setting that turns that feature off, but as already mentioned, your battery life will be substantially less.
 
Old 02-20-2007, 04:02 PM   #5
falcon56215
Member
 
Registered: Jan 2002
Location: Tennessee
Distribution: Xubuntu Natty on Lenovo R61i Thinkpad
Posts: 108

Original Poster
Rep: Reputation: 16
There is no setting in the BIOS. It would be nice to be able to throttle up if needed, instead of the laptop deciding that it is going to extend the battery life. Most of the time, I would rather have 1 hour of full scale speed than 3 hours of reduced performance. You are correct, the display does dim automatically when I unplug from the wall, but I have control over that if I want to bring it back up. I can find no way to bring the processor performance back up, although the clock speed never changes.
 
Old 02-20-2007, 07:30 PM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
well, if the option exists, it would be somewhere in your BIOS settings. As you know, there are any number of different BIOS and versions out there, but if you've got a section related to CPU voltage/scaling options or power management options, that's the logical place for it to be. Happy hunting
 
Old 02-20-2007, 07:38 PM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
If I just unplug the adapter, CPU usage jumps to 50-60%
This implies frequency drop, how do you know it's still at 1855 MHz?
 
Old 02-20-2007, 07:55 PM   #8
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Sounds like CPU Frequency Scaling is occurring.
Possibly the powersave governor is kicking in.

You might check out the /sys/devices/system/cpu/cpu0/cpufreq directory for clues.
 
Old 02-20-2007, 10:36 PM   #9
falcon56215
Member
 
Registered: Jan 2002
Location: Tennessee
Distribution: Xubuntu Natty on Lenovo R61i Thinkpad
Posts: 108

Original Poster
Rep: Reputation: 16
I'm running superkaramba which is giving me a real time readout of the CPU frequency updated every second. Kpowersave is set to performance to "lock-in" 1855 MHz. The only thing I can figure is the processor voltage is being dropped. I read somewhere about hacking the DSDT table to underpower a processor to squeeze more power out of the batteries. I guess it could be done in reverse, although that is a little more than I would want to take on. Everything on the laptop works with the exception of suspend to ram and the one-touch buttons. Suspend to disk works, although it is a bit spotty at times.
 
Old 02-21-2007, 06:37 AM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Are these KDE things trustworthy? Performance governor is in kernel. Run cpufreq-info from command line. This will tell you which governor is active and lots more.
 
  


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
Discharging a laptop battery corster Linux - Laptop and Netbook 3 05-01-2004 01:01 AM
laptop battery manager help PLEASE!!!! idiotgeneration Linux - Laptop and Netbook 6 01-15-2004 12:35 AM
Monitoring Battery on laptop podollb Linux - Software 12 10-17-2003 12:00 AM
Laptop Battery tinesthai Linux - Hardware 0 01-12-2003 09:42 PM
Overcharging laptop battery... HELP ME! Eits0 General 1 08-11-2002 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:48 AM.

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