See Beyond Tech

  • 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 Facebook
Posted in laptop, Linux | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Subscribe!
    Beyond-Teck is constantly being updated all the time! So it might be a little hard for you to keep up with all the tutorials and tricks 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)...
  • 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...
  • 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...
  • Mail Merge on a Mac
    I've been wanting to do Mail merge on a Mac for a while now, but until now Google seemed to have failed me. I realize that mail merges a...
  • Crayon Physics - I love this game!
    I absolutely love the idea behind creating a game that actually has real-life physics involved. Love the music too. Check it out (you'...
  • Beneficial Exercies for Extensive Computer Use
    Do you use a computer in your office? In your home? Chances are that you'll be using it together for hours together, which can be extrem...
  • Play MP3s or Podcasts through Embedded Player on your website
    Ever wanted to make your own podcast? Or may be post some mp3s into your blog post on blogger or may be wordpress... Well as long as you hav...
  • Cleaning up the code!
    Today, I started work on this blog's template again, to add some more interesting features to it... (like one important feature is the ...
  • How to dim your monitor brightness more than what your monitor allows
    So I recently got a new monitor (will post a review about it later) but I found that the LED monitor was a bit too bright for my eyes, espec...

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