summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-01-22 04:44:13 (EST)
committer P. J. McDermott <pj@pehjota.net>2018-01-22 04:44:13 (EST)
commitae91c2366e740afb87b6735e2471b852cd278c6f (patch)
tree96c2cfec8dd2ffb3b95da174bdf8c30fa1802468 /hosts
parentdbffd481e9da5d87b6f93784699b1357f267d854 (diff)
downloadpc-inst-ae91c2366e740afb87b6735e2471b852cd278c6f.zip
pc-inst-ae91c2366e740afb87b6735e2471b852cd278c6f.tar.gz
pc-inst-ae91c2366e740afb87b6735e2471b852cd278c6f.tar.bz2
logi1: Write /etc/fancontrol
Diffstat (limited to 'hosts')
-rw-r--r--hosts/logi1/postinst22
1 files changed, 20 insertions, 2 deletions
diff --git a/hosts/logi1/postinst b/hosts/logi1/postinst
index f9a27e9..aa5054e 100644
--- a/hosts/logi1/postinst
+++ b/hosts/logi1/postinst
@@ -29,12 +29,30 @@ cat >"${target}/etc/modprobe.d/ast.conf" <<-EOF
blacklist ast
EOF
-# Set up fancontrol.
+# Set up sensors and fancontrol. Ensure that k10temp and fam15h_power are
+# loaded in a predictable order.
+cat >"${target}/etc/modprobe.d/sensors.conf" <<-EOF
+ blacklist k10temp
+ blacklist fam15h_power
+ EOF
cat >"${target}/etc/modules" <<-EOF
+ k10temp
+ fam15h_power
w83627ehf
w83795
EOF
-# TODO: /etc/fancontrol
+cat >"${target}/etc/fancontrol" <<-EOF
+ # Configuration file generated by pwmconfig, changes will be lost
+ INTERVAL=5
+ DEVPATH=hwmon1=devices/pci0000:00/0000:00:18.3 hwmon4=devices/pci0000:00/0000:00:14.0/i2c-1/1-002f
+ DEVNAME=hwmon1=k10temp hwmon4=w83795g
+ FCTEMPS=hwmon4/device/pwm1=hwmon1/temp1_input
+ FCFANS= hwmon4/device/pwm1=hwmon4/device/fan1_input
+ MINTEMP=hwmon4/device/pwm1=30
+ MAXTEMP=hwmon4/device/pwm1=60
+ MINSTART=hwmon4/device/pwm1=150
+ MINSTOP=hwmon4/device/pwm1=0
+ EOF
# Disable mpd service.
in_target update-rc.d mpd disable