beyond teck

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 5 January 2009

Improve battery life on a Linux laptop

Posted on 07:34 by Unknown
Often I find that one of the key things that matters in a laptop that you plan to lug around, especially at school, is it's battery life. Without electricity the laptop is as good as a brick, although it might be more shinier. Most laptops sold in the market today usually have good battery life. However, the big question is: what can you do if you already have a laptop with a good battery life... but want to INCREASE the battery life? Also, let assume that you are running Linux on the laptop... since right now I am running Ubuntu on my laptop and I love every moment of it.

Improving battery life for Ubuntu/Kubuntu/Edubuntu etc.

The first things that you can do to improve your battery life are pretty obvious, but I'll mention them here anyway:
  • Lower the display brightness to the lowest possible level to make sure that the screen doesn't sip your battery power.
  • Close any applications that you are not using and unplug any usb/external deviceees that you might not be using as well. This saves some memory from being used (and also makes the hard drive work a little less) and ensures that no power is taken for ports that you aren't really using. See below for information on how to disable the USB ports as well to improve more battery life.
  • Disable all Linux eye candy (Do this by going to System > Preferences > Appearance > Visual Effects Tab > Choose 'None') . This means - No Beryl/Compiz Fusion, no wobbly windows and no fancy revolving cubes. It also means a couple of extra minutes of battery power - So choose wisely.
  • Turn off wireless and bluetooth if you don't need it.
Now, for the more technical stuff that's going to improve your battery life. As always, you might want to make sure that you back up your data before you try this, because most of the tips stated below can in fact cause your system to hang and in the worst case scenario - cause it to be inoperable. But on the other hand, if it works fine for your laptop then you might be able to improve the battery power by 20 - 30%.

Step 1: Enable Laptop Mode

This uses the 'laptop' policies that are in ubuntu to ensure that the computer uses only the resources it really needs. As a result, it'll be able to cut down on the resources it doesn't need and save you some battery power. To do so... I did the following:

First, I pressed Alt + F2, which brought up the run application command, and typed in the command:

sudo gedit /etc/default/acpi-support

And checked the box beside 'Run in terminal' and clicked Run.


Then, I typed in my password when Terminal asked me to type it and pressed enter... and Gedit opened with the file.

Then I changed ENABLE_LAPTOP_MODE=true. And saved the file. And finally I restarted the computer... just to let the changes take effect (but I guess there must be some command out there that I don't know of that will make the changes take effect automatically).

Step 2: Make your CPU run slower by enabling CPU frequency scaling


I opened a terminal window, (Applications > Accessories > Terminal) and typed in :

sudo chmod +s /usr/bin/cpufreq-selector

If it asks you for you password... then type it in and press enter. Then, right click on the menubar and click Add to Panel. Then click on the CPU Frequency Scaling Monitor and click Add. From the CPU Scaling Monitor, choose the lowest possible Speed (in my case 1GHz) or choose the "Powersave" option.

Doing so will make the laptop run at a much slower CPU speed and save you a LOT of power.


Step 3: Disabling unused ports on your computer and throttling the wireless card's power



By disabling the unused USB ports etc. on your laptop, and decreasing the power used by your wireless card, you can save even more battery power. Obviously, if you're using a USB mouse or a necessary external USB device, you don't want to disable the ports. But if you're not using then then you can safely disable them.

To disable USB ports, open a terminal window and type:

sudo rmmod uhci_hcd
and then type in your password if necessary and press enter. This should disable the USB ports.

To put your wireless card (sorry... this only works for intel wireless cards) into power saving mode do what i did:
I pressed Alt + F2 like stated above, which brought up the run application command, and typed in the command:

sudo gedit /etc/laptop-mode/conf.d/wireless-ipw-power.conf

And checked the box beside 'Run in terminal' and clicked Run.


Then, I typed in my password when Terminal asked me to type it and pressed enter... and Gedit opened with the file.

Then I changed the 0 to 1 for CONTROL_IPW_POWER. Saved the file and quit Gedit. Of course, you could have changed the other parameters as well... but I didn't bother doing that, since the default looked good enough for me.

Step 4: Enjoy the newly gained battery power


That's it... the "hacks" mentioned above are about the only things you can do (with the exception of restarting Ubuntu in shell mode and using only the text interface.) to boost your battery life.

If you know any other ways of improving battery life or battery performance, do state them in the comments below!
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in laptop, Linux | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • The Beyond-Teck Search Plugin
    I realize that it is hard to come to the site all the time to search for something. Especially when you are studying for tests, using the bl...
  • WeTransfer Job Ad
    I like using WeTransfer to transfer things that don't fit in emails, mainly because the site is fast, has a large upload limit (2GB!) an...
  • Contact Me!
    Okay so you want to contact me for something? No Problem! E-Mail You can send all your questions , comments , tips (I need a lot of those)...
  • How to immitate the immaculate desktop on a Mac
    Having a immaculately super clean desktop for me means that I can concentrate on the task at hand without being distracted by the little ico...
  • The 5 Dollar DIY Laptop Cooling Stand
    You won't find a cheaper laptop stand anywhere. Yup, you guessed it. It's actually a stapler. But guess what? It works! Although it ...
  • Readable - A web app that makes it easier for you to read webpages
    Let's face it... Although we've come a long way from the first webpage on the internet the most used method of communication on the...
  • Google Easter Egg: Change your language to Bork! Bork! Bork!
    Just recently I was watching a video of Marissa Meyer talking about how Google goes about optimizing their site to incease performance and u...
  • Internet Explorer Crashes All the Time
    Recently, I noticed that whenever I used IE for browsing websites (just browsing… average websites without any extraneous java application o...
  • What is Bootsec.Bak? Can I delete it?
    Today when I was browsing through my C: folder, which I don’t always do, I noticed that I had a lot of junk on there. Most of it seemed to b...
  • Fixing Windows or Linux With Knoppix
    Extreme Tech had published a few articles a few days ago on how to use Knoppix to rescue Windows , and now they've published an article...

Categories

  • addons
  • adobe
  • ads
  • adsense
  • apple
  • audio
  • blackberry
  • blog
  • blogger
  • blogging
  • cars
  • cellphones
  • clean
  • code
  • comments
  • cricket
  • downloads
  • ebooks
  • email
  • error
  • file sharing
  • firefox
  • fixes
  • free
  • games
  • gas
  • Gmail
  • google
  • hack
  • hotmail
  • installs
  • instant messaging
  • internet
  • internet explorer
  • ipod
  • laptop
  • Linux
  • Live Writer
  • lol
  • Mac
  • mac. mail
  • mail
  • messenger
  • microsoft
  • Microsoft Word
  • money
  • msn
  • music
  • Musings
  • network
  • news
  • online
  • Outlook
  • page
  • peripherals
  • phones
  • photo
  • photoshop
  • php
  • plagiarism
  • problems
  • productivity
  • programming
  • projects
  • rant
  • Registry
  • Review
  • school
  • Screenshots
  • search
  • security
  • software
  • spam
  • speech
  • speed up windows
  • spyware
  • sysfader
  • technology
  • tip
  • tricks
  • tutorials
  • ubuntu
  • updates
  • video
  • virus
  • voip
  • web
  • wi-fi
  • Windows
  • Windows 7
  • Windows Vista
  • Windows XP
  • wireless
  • work
  • wtf
  • youtube

Blog Archive

  • ►  2013 (5)
    • ►  October (2)
    • ►  August (2)
    • ►  March (1)
  • ►  2012 (6)
    • ►  December (1)
    • ►  October (1)
    • ►  June (1)
    • ►  May (1)
    • ►  January (2)
  • ►  2011 (19)
    • ►  October (1)
    • ►  August (1)
    • ►  July (8)
    • ►  June (1)
    • ►  February (4)
    • ►  January (4)
  • ►  2010 (41)
    • ►  November (1)
    • ►  October (3)
    • ►  September (3)
    • ►  August (2)
    • ►  July (12)
    • ►  June (2)
    • ►  May (5)
    • ►  April (3)
    • ►  March (4)
    • ►  February (4)
    • ►  January (2)
  • ▼  2009 (59)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  September (3)
    • ►  August (4)
    • ►  July (4)
    • ►  June (14)
    • ►  May (1)
    • ►  April (3)
    • ►  March (3)
    • ►  February (4)
    • ▼  January (20)
      • "This site may harm your computer" Google Bug
      • Disable Annoying System Beep on Linux (Ubuntu/Kubu...
      • Adding annotations to Pictures in Leopard
      • Text to speech conversion on a Mac
      • Download Free Windows 7 Wallpapers
      • Tremulous: Free Open Source Online Multiplayer Game
      • Wikipedia: The Free Encycopedia that can't always ...
      • Mac Tip: Look up words in the Dictionary
      • Bad Request Error and on Firefox
      • Get Google Picasa for Mac! Free!
      • CalorieKing: A great free website to keep track of...
      • Improve battery life on a Linux laptop
      • Mac Tip: Extended Menubar Replacement for Dual Mon...
      • Make fonts look better on Linux (Ubuntu)
      • My Blogger Wish List
      • Mac Tip: Configure Additional Mouse Buttons to do ...
      • Best Free screencasting/screenrecording software f...
      • Saving gas by putting your car on neutral while co...
      • Improving engine life and saving gas by putting yo...
      • Create free logos for your blog, website, business...
  • ►  2008 (108)
    • ►  December (22)
    • ►  November (10)
    • ►  October (14)
    • ►  August (13)
    • ►  July (13)
    • ►  June (6)
    • ►  May (13)
    • ►  April (10)
    • ►  March (5)
    • ►  January (2)
  • ►  2007 (33)
    • ►  December (8)
    • ►  November (1)
    • ►  October (4)
    • ►  September (10)
    • ►  August (1)
    • ►  July (2)
    • ►  June (1)
    • ►  May (2)
    • ►  April (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2006 (137)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  August (1)
    • ►  July (3)
    • ►  June (9)
    • ►  May (20)
    • ►  April (22)
    • ►  March (33)
    • ►  February (20)
    • ►  January (26)
  • ►  2005 (55)
    • ►  December (12)
    • ►  November (19)
    • ►  October (9)
    • ►  September (15)
  • ►  2001 (1)
    • ►  January (1)
Powered by Blogger.

About Me

Unknown
View my complete profile