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: Select all
iwpriv wlan0 set_power 5
Code: Select all
echo 1 > /sys/devices/system/cpu/sched_mc_power_savings
Code: Select all
echo 1 > /sys/devices/system/cpu/sched_smt_power_savings
Code: Select all
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
Code: Select all
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo 5 > /proc/sys/vm/laptop_mode
Code: Select all
hciconfig hci0 down
Code: Select all
echo 0 > /sys/class/backlight/acpi_video0/brightness
- 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.