- #!/bin/sh
- #rc.local
- /home/blake/Power_Saving
- cd /home/blake
- su blake /home/blake/Power_Saving
- exit 0
- /////////////////////////////////
- This is the Power_Saving file!
- #!/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
Undefined
By: Guest | Date: Dec 26 2009 20:34 | Format: None | Expires: never | Size: 810 B | Hits: 930
Latest pastes
59 minutes ago
11 hours ago
1 days ago
2 days ago
2 days ago