]> code.delx.au - monosys/commitdiff
Power saving
authorJames Bunton <jamesbunton@delx.net.au>
Tue, 11 Nov 2014 22:12:45 +0000 (09:12 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Tue, 11 Nov 2014 22:12:45 +0000 (09:12 +1100)
modprobe.d/audio_powersave.conf [new file with mode: 0644]
sysctl.d/powersave.conf [new file with mode: 0644]
udev-rules.d/10-powersave.rules [new file with mode: 0644]

diff --git a/modprobe.d/audio_powersave.conf b/modprobe.d/audio_powersave.conf
new file mode 100644 (file)
index 0000000..e49bd75
--- /dev/null
@@ -0,0 +1,2 @@
+options snd_hda_intel power_save=1
+options snd_ac97_codec power_save=1
diff --git a/sysctl.d/powersave.conf b/sysctl.d/powersave.conf
new file mode 100644 (file)
index 0000000..1949f87
--- /dev/null
@@ -0,0 +1,3 @@
+kernel.nmi_watchdog = 0
+vm.dirty_writeback_centisecs = 6000
+vm.laptop_mode = 5
diff --git a/udev-rules.d/10-powersave.rules b/udev-rules.d/10-powersave.rules
new file mode 100644 (file)
index 0000000..17b7fc2
--- /dev/null
@@ -0,0 +1,5 @@
+# PCI Runtime Power Management
+ACTION=="add", SUBSYSTEM=="pci", ATTR{power/control}="auto"
+
+# SATA Active Link Power Management
+ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="min_power"