Submitted by MagicFab on Sat, 01/12/2013 - 16:21
Revision of Optimizing battery time from Mon, 12/16/2013 - 01:06
The revisions let you track differences between multiple versions of a post.
This wiki page has tips on reducing your computer's electricity consumption. If you're using a laptop, it will help extend your battery life.
We tested these tips on a computer running Trisquel 6. Trisquel 6 is based on Ubuntu 12.04 LTS.
Tips & tricks
- Suspend the system when you're not using it.
- In the BIOS, disable every device that you don't plan to use, such as:
- Bluetooth
- WiMAX
- Wireless WAN (3G)
- The touchpad (on a laptop)
- Disabling the list of devices so far should save you around 2W (Varies on different systems).
- Disabling wake-on-lan --which keeps the LAN port active-- should save 1W.
- Check your power usage statistics with the gnome-power-statistics command
- Set your system to reduce the screen brightness after a set amount of inactivity. This can be done in Trisquel Menu -> System Settings -> Brightness and Lock. Change the "Turn off screen when inactive for:" setting to the desired time.
- Deactivate the Bluetooth/Wifi when not using it for a long time. Your computer may have hardware switches for these.
- Solid state drives use less electricity than hard disk drives.
- Disable the sound card.
- Right-click on the speaker in the task bar and choose "Sound preferences"
- In the "Hardware" tab, click on your sound card, then select the profile "Off".
- You'll save around 2W; up to 5% battery life.
Useful Packages
- Linux-libre (homepage): Upgrade your kernel to latest Linux-libre. There are two PPAs making this available (based on a forum discussion about both):
- laptop-mode-tools (homepage) : Tools for Power Savings based on battery/AC status
Laptop mode is automatically enabled after installing this package. Check the ArchLinux extensive documentation about this. - powertop (homepage) - tool to find out what is using power on a laptop
- rovclock - utility to control frequency rates of your Radeon card
Check the Thinkwiki rovclock documentation about this package - If you use a HDD, put your Abrowser profile on a ramdisk to avoid spinning the platter. Trisquel comes automatically with a ramdisk at /dev/shm. Note that the ramdisk is volatile, you might want to backup the profile before restarting/shutting down.
Blacklist kernel modules
Do you never or seldom use things like Bluetooth, the SD card reader, a joystick or your sound card? Disable the corresponding kernel modules by adding to /etc/modprobe.d/blacklist.confblacklist bluetooth blacklist firewire_core (FireWire, or IEEE 1394) blacklist firewire_ohci blacklist yenta_socket blacklist joydev blacklist sdhci (SD card) blacklist sdhci_pci blacklist dm_crypt blacklist tifm_7xx1 blacklist shpchp blacklist btrfsNow, run
sudo update-initramfs -u
and restart. You can find out what modules are loaded using the lsmod
command. If you want a very terse info about a module, you can sudo modinfo modulename
. These modules might get automatically loaded when actually needed or if not, you can sudo modprobe modulename
to insert.
Remove excess VTs
Do you use virtual terminals 3-6? I don't, so I got rid of them by removing /etc/init/tty3.conf ... /etc/init/tty6.conf then I rebooted.Runtime PM
When you run powertop you may notice that many devices have runtime power management disabled. You can enable them all by echoing auto to their control files as super user, e.g. in a startup script. You can find a list of such files withls /sys/bus/{pci,i2c}/devices/*/power/control
PCIe ASPM
Some newer hardware and BIOSes support PCIe active state power management. You can checkdmesg|grep -i aspm
to see how your system is doing. You can try forcing it by adding to grub configuration, on the kernel line pcie_aspm=force and then running update-grub
and rebooting. Watch out for hangs.
References and useful links
Revisions
01/12/2013 - 16:21
01/13/2013 - 16:43
01/15/2013 - 05:39
01/17/2013 - 10:50
08/13/2013 - 17:54
10/26/2013 - 23:00
11/11/2013 - 01:46
08/02/2014 - 01:53
06/06/2018 - 12:57