1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

dell-precision-5490: make force_probe conditional

This commit is contained in:
Erkka Heinilä 2024-10-14 11:53:49 +03:00 committed by mergify[bot]
parent b2f6701f91
commit 99918dfbd7
2 changed files with 7 additions and 9 deletions

View file

@ -1,15 +1,15 @@
# Dell Precision 5490 # 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 Linux kernel versions prior to 6.7 may not function correctly with the internal monitor, as official support was introduced in version 6.7 (https://www.phoronix.com/news/Linux-6.7-Intel-Meteor-Lake-Gfx). You can enable experimental support by adding the following parameter:
``` ```
boot.kernelParams = [ "i915.force_probe=7d55" ]; boot.kernelParams = [ "i915.force_probe=7d55" ];
``` ```
helped but introduced some screen tearing. However, this may lead to some screen tearing.
Setting If possible, you might benefit from a newer kernel, for example:
``` ```
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
``` ```
in nixos-stable worked with no problems. as it seems to work without any issues.

View file

@ -1,13 +1,11 @@
{ lib, ... }: { config, lib, ... }:
{ {
imports = [ imports = [
../../../common/gpu/nvidia ../../../common/gpu/nvidia/ada-lovelace
]; ];
# or even better: boot.kernelParams = pkgs.linuxPackages_latest; boot.kernelParams = lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.7") [ "i915.force_probe=7d55" ];
boot.kernelParams = [ "i915.force_probe=7d55" ];
hardware.nvidia.open = true;
hardware.nvidia.prime = { hardware.nvidia.prime = {
intelBusId = "PCI:0:2:0"; intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0"; nvidiaBusId = "PCI:1:0:0";