- #!/bin/bash
- if on_ac_power; then
- # Reset back to normal settings
- echo 0 > /proc/sys/vm/laptop_mode
- echo 10 > /proc/sys/vm/dirty_ratio
- echo 5 > /proc/sys/vm/dirty_background_ratio
- echo 500 > /proc/sys/vm/dirty_writeback_centisecs
- echo max_performance > /sys/class/scsi_host/host0/link_power_management_policy
- else
- # Turn on aggressive power savings
- echo 5 > /proc/sys/vm/laptop_mode
- echo 40 > /proc/sys/vm/dirty_ratio
- echo 10 > /proc/sys/vm/dirty_background_ratio
- echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
- echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
- fi
- //// the rc.local was completely empty, so i added this:
- exec /home/power_save
power_save
By: microhaxo | Date: Dec 26 2009 19:53 | Format: None | Expires: never | Size: 711 B | Hits: 879
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago