Fedora Linux Support Community & Resources Center
  #1  
Old 8th October 2012, 09:14 PM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 51
linuxfirefox
Powertop and powersaving tips?

I've been scouring the web for powersaving tips and I just can't seem to apply any of the methods I'm learning. I've been using linux since Red Hat 5.0 and have mainly been using it on laptops and it has never been good with battery life. On this Windows 7 machine I can stretch out my battery life to about 9 hours. On linux I can't seem to break an hour and 15. Right now my battery monitor flip flops from 2 hours 22 minutes to an hour and 10 minutes.

I've used powertop before on OpenSuSE, but that was an odd interactive mode. I'd run powerop as root and it was systematically analyze my system and ask me to disable features. That seemed to work quite well. Now, with the newer powertops, it just looks like the top interface with power consumption info. I can't seem to figure out how to disable stuff that's waking up other processes and eating up my CPU cycles.

ANy advice would be greatly appreciated. I have one more question. I have a dual graphics card setup (intel and ATI) and I feel the ATI card may be in use by default. Anyone know how I can see which card is being used and how I can turn it off completely and use the intel card?
Reply With Quote
  #2  
Old 8th October 2012, 09:41 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
windows_xp_2003chrome
Re: Powertop and powersaving tips?

Powertop is something that I've just started looking at over the last weekend so I'm by no means an authority on the subject, but I can give you the links I've been exploring.

http://docs.fedoraproject.org/en-US/.../PowerTOP.html
https://lesswatts.org/projects/powertop/
https://01.org/powertop/

I haven't made too much progress with the subject computer. I've only disabled the unused audio device to date.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 8th October 2012, 10:24 PM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 51
linuxfirefox
Re: Powertop and powersaving tips?

Quote:
Originally Posted by glennzo View Post
Powertop is something that I've just started looking at over the last weekend so I'm by no means an authority on the subject, but I can give you the links I've been exploring.

http://docs.fedoraproject.org/en-US/.../PowerTOP.html
https://lesswatts.org/projects/powertop/
https://01.org/powertop/

I haven't made too much progress with the subject computer. I've only disabled the unused audio device to date.
That first link is great, but as with all of the documentation and videos I'm finding, the instructions are incomplete. I just finished a second round of "powertop --calibrate" and I'm sitting at the turntables menu where the guide says, "The enter key toggles the suggestion on and off. " In application, not really. It toggles the setting as "good" or "bad". What's good and what's bad? How does one finalize and apply these settings?

The documentation also says, "The Tunables tab contains suggestions for optimizing the system for lower power consumption." Again, it does not. It lists a bunch of hardware and has a good/bad status on it. There's no mentioning of a suggested command to run to fix the power drain.
Reply With Quote
  #4  
Old 8th October 2012, 10:26 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,976
linuxchrome
Re: Powertop and powersaving tips?

Dimming screen brightness, if you don't need it, is one of the quickest ways to add an hour or two to battery life. There's some power saving tips on the Arch Wiki.
https://wiki.archlinux.org/index.php...wer_Management

EDIT--Arch Linux's powertop will also give suggestions about tunables, such as the ones that you mention are missing. I've only used it in package form from both Fedora and Arch. In Fedora's case, good should mean that it's saving power.
Reply With Quote
  #5  
Old 8th October 2012, 10:31 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
windows_xp_2003chrome
Re: Powertop and powersaving tips?

This is the same thing I found, not surprisingly. I guess if either you or I want to move forward we need to do a bit of research. What I learned though, because it never occurred to me, was that I could disable things like audio adapters and other unused devices on my server. There will be no music playing on that computer. The rest of the suggestions, like on demand CPU stuff and changing the USB behavior I'm not too sure about. It also recommended something about making some edits to the way the Ethernet adapter works. Still, a bit scary for the uninitiated.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #6  
Old 8th October 2012, 11:15 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,448
linuxfirefox
Re: Powertop and powersaving tips?

What I did was run
Quote:
powertop --calibrate --html=powertop.html
and then let it run. it produces a html file called "powertop.html", I took the echo commands suggested in the html file and put them in /etc/rc.local

make sure to put as the first line:
Quote:
#!/bin/sh
and make the file executable with
Quote:
chmod 755 /etc/rc.local


and made a link from /etc/rc.d/rc.local to /etc/rc.local and made sure the rc-local.service was enabled. That worked for me but I made sure to not include the power management on my usb mouse which tended to break the mouse.
Reply With Quote
  #7  
Old 8th October 2012, 11:54 PM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 51
linuxfirefox
Re: Powertop and powersaving tips?

Quote:
Originally Posted by marko View Post
What I did was run
and then let it run. it produces a html file called "powertop.html", I took the echo commands suggested in the html file and put them in /etc/rc.local

make sure to put as the first line:


and make the file executable with




and made a link from /etc/rc.d/rc.local to /etc/rc.local and made sure the rc-local.service was enabled. That worked for me but I made sure to not include the power management on my usb mouse which tended to break the mouse.
Pretty neat idea, thanks a bunch for that.

Any ideas on how I can determine the video card in use and how to switch cards?

Alrighty guys, so here's an update. I have not applied anything from powertop (I was just too lazy). But I did disable the ATI card and now my estimated battery life is 6+ hours. Well, it's fluctuating from 2 hours, 5+ hours, 6+ hours. So we'll see. But it looks like the hybrid graphics was the key. I'll play with the top suggestions and report back my findings.

-edit-
Just an update for you guys. I added the powertop suggestions to a startup script and it didn't seem to make a noticeable difference. Turning off the ATI card is what did it for me. Now I need to mess around with disabling the intel card and enabling ATI and see how much power I have to let go. I'd like to use the ATI card since I picked up my old 3d modelling habits again, but it's not necessary.

Last edited by DupermanDave; 9th October 2012 at 09:38 PM.
Reply With Quote
  #8  
Old 10th October 2012, 08:23 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,719
linuxfirefox
Re: Powertop and powersaving tips?

Which graphics chip do you have?

Try to enable power saving for the radeon driver http://www.x.org/wiki/RadeonFeature#...gement_Options

or install the proprietary Catalyst driver from rpmfusion

Code:
yum install kmod-catalyst
Reply With Quote
  #9  
Old 10th October 2012, 10:46 PM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 51
windows_7firefox
Re: Powertop and powersaving tips?

Quote:
Originally Posted by george_toolan View Post
Which graphics chip do you have?

Try to enable power saving for the radeon driver http://www.x.org/wiki/RadeonFeature#...gement_Options

or install the proprietary Catalyst driver from rpmfusion

Code:
yum install kmod-catalyst
I'll give that a shot. First I need to figure out how to disable the intel card and have linux use the ATI card only.

I believe it's:
echo DIS > /sys/kernel/debug/vgaswitcheroo/switch
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch


Is this correct?

Last edited by DupermanDave; 10th October 2012 at 10:48 PM.
Reply With Quote
  #10  
Old 10th October 2012, 11:25 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,448
linuxfirefox
Re: Powertop and powersaving tips?

Quote:
Originally Posted by DupermanDave View Post
I added the powertop suggestions to a startup script and it didn't seem to make a noticeable difference
Make sure to confirm the powertop mods were actually applied, just re-run powertop again, and look at the "tunables" tab and you should see a whole bunch of "good" entries and almost no "bad" ones. I have one "bad" tunable left because the power saving on the usb mouse made the mouse worthless so I didn't use that one.
Reply With Quote
  #11  
Old 10th October 2012, 11:31 PM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 51
windows_7firefox
Re: Powertop and powersaving tips?

Quote:
Originally Posted by marko View Post
Make sure to confirm the powertop mods were actually applied, just re-run powertop again, and look at the "tunables" tab and you should see a whole bunch of "good" entries and almost no "bad" ones. I have one "bad" tunable left because the power saving on the usb mouse made the mouse worthless so I didn't use that one.
I confirmed that already. Everything is good.
Reply With Quote
  #12  
Old 11th October 2012, 12:40 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,448
linuxfirefox
Re: Powertop and powersaving tips?

another useful thing to try in powertop if you're on a laptop, try going to the "overview" tab and unplug the power brick so the laptop is running on battery only.

In that situation it will show the actual usage in total watts and the estimated number of hours and minutes left until 0% battery, for some reason the wattage used can't be shown when the AC is plugged in
Reply With Quote
  #13  
Old 11th October 2012, 01:13 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfirefox
Re: Powertop and powersaving tips?

It's no surprise when powertop only saves a watt or two. Screen brightness (as smr54 suggests) can have a bigger impact.

But something is is wrong here. My Lenovo T510 can squeeze out around 7 hours of browsing & light-load, maybe 8 with care. No way that's much worse the Win. So the question is - WHAT is burning power system ?


Try disabling various HW from the bios, and rebooting. *IF* you have a smart battery you might be able to read the dynamic charge/drain state with
sudo cat /sys/devices/platform/smapi/BAT0/power_now
or similar, but few vendors beyond Lenovo/IBM do so.

My suspicion is proprietary VID (but it's alway suspicious).
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
Reply

Tags
powersaving, powertop, tips

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
ATI Powersaving screamin_jesus Using Fedora 0 8th May 2011 09:51 PM
F14 powersaving roelj Hardware & Laptops 3 10th December 2010 08:45 PM
Linux Laptop Powersaving Tips duke11235 Hardware & Laptops 2 8th August 2009 12:16 AM
PPC and powersaving nightfrost Mac Chat 1 31st January 2008 03:49 PM


Current GMT-time: 17:19 (Monday, 20-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