Add more power savings settings for thonkpad
This commit is contained in:
parent
6603fc2bb9
commit
83eee6a35a
3 changed files with 39 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
targets = [
|
||||
"[fd0d:a262:1fa6:e621:b4e1:8ff:e658:6f49]:${toString config.services.prometheus.exporters.node.port}"
|
||||
"[fd0d:a262:1fa6:e621:47e6:24d4:2acb:9437]:${toString config.services.prometheus.exporters.node.port}"
|
||||
"[fd0d:a262:1fa6:e621:f45a:db9f:eb7c:1a3f]:${toString config.services.prometheus.exporters.node.port}"
|
||||
];
|
||||
}];
|
||||
}
|
||||
|
|
|
@ -114,6 +114,7 @@
|
|||
services.xserver.videoDrivers = [ "intel" ];
|
||||
nix.binaryCaches = lib.mkForce [
|
||||
"http://192.168.2.1:9000/cache.int.chir.rs/"
|
||||
"https://minio.int.chir.rs/cache.int.chir.rs/"
|
||||
];
|
||||
nix.buildCores = 4;
|
||||
|
||||
|
@ -126,4 +127,35 @@
|
|||
boot.kernelParams = [ "mitigations=off" ];
|
||||
# use the lowest frequency possible, to save power
|
||||
powerManagement.cpuFreqGovernor = "powersave";
|
||||
# lm_sensors who cares
|
||||
environment.etc."sysconfig/lm_sensors".text = ''
|
||||
# Generated by sensors-detect on Tue Aug 7 10:54:09 2018
|
||||
# This file is sourced by /etc/init.d/lm_sensors and defines the modules to
|
||||
# be loaded/unloaded.
|
||||
#
|
||||
# The format of this file is a shell script that simply defines variables:
|
||||
# HWMON_MODULES for hardware monitoring driver modules, and optionally
|
||||
# BUS_MODULES for any required bus driver module (for example for I2C or SPI).
|
||||
|
||||
HWMON_MODULES="coretemp"
|
||||
'';
|
||||
services.thermald.enable = true;
|
||||
boot.initrd.extraModprobeConfig = ''
|
||||
# enable power savings mode of snd_hda_intel
|
||||
options snd-hda-intel power_save=1 power_save_controller=y
|
||||
# enable power savings mode of igpu, enable framebuffer compression, downclock the LVDS connection
|
||||
options i915 i915_enable_rc6=7 i915_enable_fbc=1 lvds_downclock=1
|
||||
# automatically suspend USB devices
|
||||
options usbcore autosuspend=2
|
||||
# Fan control for thinkpads
|
||||
options thinkpad_acpi fan_control=1
|
||||
'';
|
||||
boot.kernel.sysctl = {
|
||||
# Probably unnecessary
|
||||
"kernel.nmi_watchdog" = "0";
|
||||
"vm.laptop_mode" = "5";
|
||||
# The kernel flusher threads will periodically wake up and write `old' data out to disk. This
|
||||
# tunable expresses the interval between those wakeups, in 100'ths of a second (Default is 500).
|
||||
"vm.dirty_writeback_centisecs" = "1500";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -20,6 +20,12 @@
|
|||
"fd0d:a262:1fa6:e621:47e6:24d4:2acb:9437/128"
|
||||
];
|
||||
}
|
||||
{
|
||||
publicKey = "iKW9nomLyLY2f90UY66POzY8CfDhQrqOLqchERlR3TY=";
|
||||
allowedIPs = [
|
||||
"fd0d:a262:1fa6:e621:f45a:db9f:eb7c:1a3f/128"
|
||||
];
|
||||
}
|
||||
# Old infra: ubuntu-4gb-fsn1-1
|
||||
{
|
||||
publicKey = "ZtU2iWwVYeGyXC1ak+wFdTuisQNq7gMthYQZaw6InDU=";
|
||||
|
|
Loading…
Reference in a new issue