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..
/etc/rc.local
or@reboot
) should work. There should be something from cron in/var/log/syslog
, and cron will send you a mail if the command produces any output such as an error message. Addset -x
at the top of the script (just after the#!
line) and try again. Check that the script works when you invoke it directly, of course.