From 2d125b6c56bf301393a46474f52b8f958711908e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkka=20Heinil=C3=A4?= Date: Thu, 10 Oct 2024 14:58:44 +0300 Subject: [PATCH] Add basic dell precision 5490 --- dell/precision/5490/README.md | 15 +++++++++++++++ dell/precision/5490/default.nix | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 dell/precision/5490/README.md create mode 100644 dell/precision/5490/default.nix diff --git a/dell/precision/5490/README.md b/dell/precision/5490/README.md new file mode 100644 index 000000000..380a84365 --- /dev/null +++ b/dell/precision/5490/README.md @@ -0,0 +1,15 @@ +# Dell Precision 5490 + +The internal monitor needs Linux Kernel >= 6.7 so enabling hybrid graphics does not work out of the box in 24.05. Setting + +``` +boot.kernelParams = [ "i915.force_probe=7d55" ]; +``` + +helped but introduced some screen tearing. + +Setting +``` +boot.kernelPackages = pkgs.linuxPackages_latest; +``` +in nixos-stable worked with no problems. diff --git a/dell/precision/5490/default.nix b/dell/precision/5490/default.nix new file mode 100644 index 000000000..0e0c5b49a --- /dev/null +++ b/dell/precision/5490/default.nix @@ -0,0 +1,14 @@ +{ lib, ... }: +{ + imports = [ + ../../../common/gpu/nvidia + ]; + + # or even better: boot.kernelParams = pkgs.linuxPackages_latest; + boot.kernelParams = [ "i915.force_probe=7d55" ]; + + hardware.nvidia.prime = { + intelBusId = "PCI:0:2:0"; + nvidiaBusId = "PCI:1:0:0"; + }; +}