The time now is Tue 21 May 2013, 17:14
All times are UTC - 4 |
| Author |
Message |
Iguleder

Joined: 11 Aug 2009 Posts: 1614 Location: Israel, somewhere in the beautiful desert
|
Posted: Sun 15 Aug 2010, 14:50 Post subject:
Power saving tweaks Subject description: Small tips that extend battery life on laptops and netbooks |
|
Here are some power-saving tweaks you can use to increase battery life, they're very useful on netbooks. You can add these lines of code to any script that runs when Puppy boots, init scripts or /root/.xinitrc.
It makes sense to add these to .xinitrc, Puppy boots faster when power saving is disabled and once it's up, power saving is enabled
They can cause some problems, so be careful and check all default values before you apply these, just in case
Note: there's another trick that enables automatic suspend for USB devices that report no activity, I don't recommend it because it makes USB mice freeze
Enable power saving on wlan0:
| Code: | iwpriv wlan0 set_power 5
|
Enable power saving on multicore machines (may harm performance!):
| Code: | echo 1 > /sys/devices/system/cpu/sched_mc_power_savings
|
Enable power saving on multi-threaded CPUs (Atom, Pentium 4 ...):
| Code: | echo 1 > /sys/devices/system/cpu/sched_smt_power_savings
|
Enable SCSI power saving:
| Code: | echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
|
Increase dirty_writebacks from 5 seconds to 15 seconds and turn on laptop mode:
| Code: | echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo 5 > /proc/sys/vm/laptop_mode
|
Turn off the Bluetooth interface hci0 on boot (if you have a proper Bluetooth management applet you can turn Bluetooth on when you need it):
| Code: | hciconfig hci0 down
|
Set the brightness to 0 on boot (you can increase it manually anyway):
| Code: | echo 0 > /sys/class/backlight/acpi_video0/brightness
|
Other nice ideas:
- Set the brightness to 0 on init scripts, then set it to the default with .xinitrc.
- The same with all other tweaks.
- Make the init scripts check the battery status through /proc and /sys and enable/disable these tweaks according to it, i.e if it's at 20% or less, the script applies power saving.
_________________ Shahor, my Puppy concept
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
[ Time: 0.0422s ][ Queries: 11 (0.0086s) ][ GZIP on ] |