Created
October 30, 2014 09:19
-
-
Save hrosenbauer/3c538c386d7f65e86040 to your computer and use it in GitHub Desktop.
rc.local for samsung 900x4d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| # default brightness | |
| echo 936 > /sys/class/backlight/intel_backlight/brightness | |
| # sound powersaving | |
| echo 1 > /sys/module/snd_hda_intel/parameters/power_save | |
| # device powersaving | |
| for device in /sys/bus/pci/devices/*/ ; do | |
| echo "auto" > $device"power/control" | |
| done | |
| # host power management | |
| for host in /sys/class/scsi_host/*/ ; do | |
| echo "min_power" > $host"link_power_management_policy" | |
| done | |
| # wifi powersaving | |
| iw dev wlan0 set power_save on | |
| # disable bluetooth | |
| #rfkill block bluetooth | |
| rmmod btusb | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment