I have a simple script to help me do some power saving:
#!/bin/bash
echo 1 > /sys/module/snd_hda_intel/parameters/power_save
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
I want this to run on every boot as root, tried running it by adding:
/bin/bash /root/power-save.sh
in
/etc/rc.local
and also tried by adding following to root's crontab:
@reboot /bin/bash /root/power-save.sh
no use..
You can run the commands directly in
rc.local
instead of running a script. Just putin
rc.local
.