1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-06-26 14:38:31 +02:00
nixos-hardware/lenovo/thinkpad/x260/default.nix
Alvar Penning fd644de340 lenovo/thinkpad/x260: i915.enable_psr=0 parameter
The video driver causes short freezes from time to time, especially if
an external monitor is attached. Adding the i915.enable_psr=0 kernel
parameter mitigates those freezes.

This is a known problem for the X260, as mentioned in the Arch Wiki. It
occurred mainly after switching to kernel version five.
2020-10-31 16:11:04 +01:00

18 lines
372 B
Nix

{
imports = [
../.
../../../common/cpu/intel
../../../common/pc/laptop/acpi_call.nix
];
boot.kernelParams = [
# https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X260#Thinkpad_X260
"i915.enable_psr=0"
];
# https://wiki.archlinux.org/index.php/TLP#Btrfs
services.tlp.extraConfig = ''
SATA_LINKPWR_ON_BAT=med_power_with_dipm
'';
}