Fedora Linux Support Community & Resources Center
  #1  
Old 21st May 2009, 05:57 PM
infernosoft Offline
Registered User
 
Join Date: Jan 2008
Age: 22
Posts: 367
Question Tips on how to extend battery life

I'm travelling oversees (economy class, so no electric plugs to use) and was wanting to know how I can get the most out of my battery (use my laptop as long as possible).

I think the following would help (plz let me know if i'm wrong).

1. Turn wireless off
2. Turn one CPU Off (since I have dual core duo)
3. Reduce brightness (which btw, can I reduce any lower than the brightness applet on the panel will let me??)

Thanks
Reply With Quote
  #2  
Old 21st May 2009, 06:02 PM
Simian Man's Avatar
Simian Man Offline
Registered User
 
Join Date: Sep 2008
Location: Tallahassee
Age: 28
Posts: 336
What do you want to use the laptop for? If you can, booting to init 3 does wonders for battery life .
Reply With Quote
  #3  
Old 21st May 2009, 06:04 PM
stefan1975's Avatar
stefan1975 Offline
"Stefan the converted" -- forum Macintosh® Glee Club leader
 
Join Date: May 2007
Location: 127.0.0.1
Age: 38
Posts: 1,247
turn off bluetooth
beforehand install and run (as root) 'powertop' (yum install powertop) and follow all advices
user hibernate and set your laptop to sleep when not in use
set powersafe settings (powerdevil in kde) to aggresive so it will make the laptop to use as less power as possible
if possible replace cd-drive with extra battery pack
upgrade battery to a more powerful one
__________________
"$ su - bofh"
OS: Mac OSX Snow Leopard (x64 by default), W7_Enterprise_X64, F12_x64_KDE
Hardware: late 2009 Macbook 13", MSI Wind 10"
Browser: Opera 10.10, Safari 4
Registered linux user #459910
Reply With Quote
  #4  
Old 21st May 2009, 06:04 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
Turning wireless off & reducing brightness will help, and disabling bluetooth will give you a large boost as well. I don't think turning off one CPU will help that much, but you should consider enabling throttling (cpuspeed) to reduce your CPUs core speed when they aren't in full use.

There's also a few other tricks you can do like disabling HAL polling and increasing the writeback time - install "powertop" and run it as root for more information on how to do this. Another thing that may be interesting is if you don't need to access the disk very often, load what you need into RAM using ramfs and then park the hard disk.
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #5  
Old 21st May 2009, 09:09 PM
infernosoft Offline
Registered User
 
Join Date: Jan 2008
Age: 22
Posts: 367
Basically, almost all I want to do is watch a movie or two on my way to Europe.

Quote:
Originally Posted by Simian Man View Post
What do you want to use the laptop for? If you can, booting to init 3 does wonders for battery life .
What's init3? It sounds like a just text based system lol...am i right?

Quote:
Originally Posted by stefan1975 View Post
turn off bluetooth
beforehand install and run (as root) 'powertop' (yum install powertop) and follow all advices
user hibernate and set your laptop to sleep when not in use
set powersafe settings (powerdevil in kde) to aggresive so it will make the laptop to use as less power as possible
if possible replace cd-drive with extra battery pack
upgrade battery to a more powerful one
What's powersafe? And how can I access it in GNOME?

Quote:
Originally Posted by Firewing1 View Post
Turning wireless off & reducing brightness will help, and disabling bluetooth will give you a large boost as well. I don't think turning off one CPU will help that much, but you should consider enabling throttling (cpuspeed) to reduce your CPUs core speed when they aren't in full use.

There's also a few other tricks you can do like disabling HAL polling and increasing the writeback time - install "powertop" and run it as root for more information on how to do this. Another thing that may be interesting is if you don't need to access the disk very often, load what you need into RAM using ramfs and then park the hard disk.
I ran powertop and it suggested that i disable HAL, but first I'd like to know exactly what it is that I'm disabling. So, basically, what will I lose once i disable HAL?

And, also since I'm primarily wanting to watch movies, I think that the idea of just loading it to the RAM and watching it is very appealing. Is there a tutorial for that?

Thanks everyone.
Reply With Quote
  #6  
Old 21st May 2009, 09:41 PM
zackf Offline
Registered User
 
Join Date: Nov 2006
Location: South Carolina
Posts: 798
If you're going to be watching movies or doing something HDD intensive, putting them on a Flash drive instead of running them off the HDD might save you some battery. DVD Drive is a killer.
Reply With Quote
  #7  
Old 21st May 2009, 09:46 PM
infernosoft Offline
Registered User
 
Join Date: Jan 2008
Age: 22
Posts: 367
Quote:
Originally Posted by zackf View Post
If you're going to be watching movies or doing something HDD intensive, putting them on a Flash drive instead of running them off the HDD might save you some battery. DVD Drive is a killer.
O, so copy the movie from my internal HD onto my external USB drive, and play it from there?
Reply With Quote
  #8  
Old 21st May 2009, 09:51 PM
zackf Offline
Registered User
 
Join Date: Nov 2006
Location: South Carolina
Posts: 798
depends on what kind of drive it is, but if it's just a USB flash drive (not an external Hard Drive) then yes I would recommend that. The flash drive will eek out a little power from the USB port, but you'll save battery life in not having to spin the internal drive for two straight hours.
Reply With Quote
  #9  
Old 21st May 2009, 09:53 PM
infernosoft Offline
Registered User
 
Join Date: Jan 2008
Age: 22
Posts: 367
well, could I just load the movie into the RAM (I have 2Gig RAM, and the movie is 700mb)?

is that even possible?

and then, maybe 'suspend' the HD somehow? or is this all just wishful thinking...?
Reply With Quote
  #10  
Old 21st May 2009, 10:09 PM
infernosoft Offline
Registered User
 
Join Date: Jan 2008
Age: 22
Posts: 367
bump

BUMP. please, i'm leaving in a couple days and need to figure this out
Reply With Quote
  #11  
Old 22nd May 2009, 05:26 AM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
I would follow zackf's suggestion of a USB key since it barely takes any power and will save you the RAM space, but if you'd like to use the RAM approach then you'll need to create a tmpfs mountpoint and copy the movie file to it like this:
Code:
su -
mkdir /ramstorage
mount mount -t tmpfs -o size=1G,mode=0777 tmpfs /ramstorage
This will create a 1GB RAM volume in /ramstorage that will only consume as much RAM as required, to a maximum of 1GB. It will be accessible to everyone (0777 permissions) until it is unmounted (the contents will be cleared) or you reboot, so if you copy the movie file there and play it you should not be using your hard disk. You can suspend HDD manually using the "hdparm" utility on the command line, but Fedora should do this for you automatically after a few minutes of inactivity.

Regarding HAL, you're not completely disabling it but simply disabling the optical disk polling, meaning instead of having the computer "realize" when you've inserted a disk, you'll have to double-click the CD/DVD drive volume before it loads the disc contents... Not a big deal since you're not going to be using the DVD drive on the plane anyways
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #12  
Old 22nd May 2009, 06:07 AM
infernosoft Offline
Registered User
 
Join Date: Jan 2008
Age: 22
Posts: 367
stupid mistake....nvm sorry
Reply With Quote
  #13  
Old 22nd May 2009, 06:33 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
You're getting some great advice here IMO.

The only thing I can add is perhaps relevant to your next trip. LiIon batteries have a load of issues. The best way to keep your battery is to discharge it to ~30% of total change and put it in a ziplock in your fridge. The worst-case storage condition for a LiIon battery is fully charged and warm, which is approximately what happens when you work with a fully charged battery in a busy laptop. I really wish laptops had the ability to tell the batter to hold at ~30% charge or else to fully charge in preparation for an untethered experience.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #14  
Old 22nd May 2009, 08:00 AM
awaisclub Offline
Registered User
 
Join Date: Apr 2009
Location: Pakistan
Posts: 14
What if the OS itself is on the usb. Would it be helpful?
Don't know that the whole OS is always on RAM or can be on harddisk too.
Just wana ask for general knowledge
Reply With Quote
  #15  
Old 22nd May 2009, 08:06 AM
stefan1975's Avatar
stefan1975 Offline
"Stefan the converted" -- forum Macintosh® Glee Club leader
 
Join Date: May 2007
Location: 127.0.0.1
Age: 38
Posts: 1,247
disabling as many services as you can (stuff that you do not need anyway) will help some as well (system-config-services), so you just have those things running and eating away cpu cycles that you absolutely have to.

stefan

PS! bumping your thread after a mere 16 minutes is so lame.
__________________
"$ su - bofh"
OS: Mac OSX Snow Leopard (x64 by default), W7_Enterprise_X64, F12_x64_KDE
Hardware: late 2009 Macbook 13", MSI Wind 10"
Browser: Opera 10.10, Safari 4
Registered linux user #459910
Reply With Quote
Reply

Tags
battery, extend, life, 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
Battery life cut by 1/3 after switching to F8 happydud Hardware & Laptops 7 23rd November 2007 08:44 PM
Battery life mitchell2345 Hardware & Laptops 23 27th January 2007 06:48 PM
Battery Life treak007 Hardware & Laptops 2 29th May 2006 12:14 AM
Battery Life Cruzader Hardware & Laptops 14 7th July 2005 05:28 PM
Battery life using Gnome vs KDE on FC3 and FC4 lafflamj Hardware & Laptops 0 16th June 2005 12:32 AM


Current GMT-time: 22:39 (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