Phoronix Forums  

Go Back   Phoronix Forums > Software > Mobile Linux

Mobile Linux Discussion of Linux on mobile and embedded devices.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-29-2008, 03:00 PM
phoronix phoronix is offline
Phoronix News Bot
 
Join Date: Jan 2007
Posts: 3,103
Default Extending Ubuntu's Battery Life

Phoronix: Extending Ubuntu's Battery Life

Last week when traveling to Europe for FOSDEM and other business meetings, I had picked up a new 9-cell battery for a Lenovo ThinkPad T60. While an additional three battery cells will noticeably extend your battery life, you can also extend your battery life by taking a few simple steps to optimize your Linux desktop that will also reduce your power consumption and heat output. In this article are a few simple steps to take in order to extend your notebook's battery life on Ubuntu.

http://www.phoronix.com/vr.php?view=11929
Reply With Quote
  #2  
Old 03-01-2008, 01:28 PM
socketbind socketbind is offline
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default

Also, something worth mentioning for nVidia users:

Quote:
Option "OnDemandVBlankInterrupts" "boolean"

Normally, VBlank interrupts are generated on every vertical refresh of every display device connected to the GPU(s) installed in a given system.
This experimental option enables on-demand VBlank control, allowing the driver to enable VBlank interrupt generation only when it is required.
This can help conserve power.

Default: off (on-demand VBlank control is disabled).
I've been using it for quite long time without any adverse effects.
Reply With Quote
  #3  
Old 03-01-2008, 04:40 PM
Vadi Vadi is offline
Phoronix Test Suite Contributor
 
Join Date: Dec 2007
Posts: 461
Default

What does vblank exactly do? I read on wikipedia, and thought that it's only useful for people with CRT monitors.

Btw, I got Ubuntu Tweak, and an option in there allowed me to get my battery preferences to let me choose how the processor is handled when on ac/battery power (max battery life, based on processor demand, and max performance).

The powertop 'game' of pressing buttons is fun too, but unfortunately, the settings don't stay after a reboot. But I do play it everytime I go on battery though.
Reply With Quote
  #4  
Old 03-01-2008, 07:21 PM
socketbind socketbind is offline
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default

You can place your scripts in specific directories to be run at specific events:

/etc/acpi/ac.d - when on AC power
/etc/acpi/battery.d - when on battery

In the form of the filename:
weight-name

For instance:
99-asus-s96s-battery

The more the weight, the later it will be executed. Scripts with lower weights are executed before the greater.

There is one little bug though. It seems that if the system is on battery during startup, /etc/acpi/battery.d is never executed.

As for VBlank, I don't know what it does in greater technical detail, but after enabling this option my wakeups are drastically reduced.

A simple tray application for controlling the built-in hardware (wireless, bluetooth, anything causing wakeups) would be nice. I have written a very crude one that works only on my notebook, but I look forward to the release of Ubuntu 8.04 with a newer HAL (better killswitch support), so a better solution could be coded based on that.

Last edited by socketbind; 03-01-2008 at 07:35 PM.
Reply With Quote
Reply

Thread Tools
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


All times are GMT -5. The time now is 07:18 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.