-
-
Notifications
You must be signed in to change notification settings - Fork 782
add Dell Pro 14 PA14250 #1534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dmivankov
wants to merge
6
commits into
NixOS:master
Choose a base branch
from
dmivankov:add_dell_pa14250
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add Dell Pro 14 PA14250 #1534
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d9540b8
add Dell Pro 14 PA14250
dmivankov 02a2f1d
update broken version range, auto-bump kernel
dmivankov 8d0bc59
add to flake.nix
dmivankov 2eb81d6
add to readme
dmivankov 9f13f77
Update dell/dell-pro/PA14250/default.nix
dmivankov ad8e00d
Update dell/dell-pro/PA14250/default.nix
dmivankov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ lib, ... }: | ||
|
||
# Xe module fails to load on 6.12.x for 6.12.35..6.12.40 and fixed in 6.12.41 | ||
# | ||
# https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/5373 | ||
let | ||
brokenXeModule = version: lib.versionAtLeast version "6.12.35" && lib.versionOlder version "6.12.41"; | ||
in | ||
{ | ||
imports = [ | ||
../../../common/cpu/intel/lunar-lake | ||
../../../common/pc/laptop | ||
../../../common/pc/ssd | ||
]; | ||
|
||
hardware.intelgpu.driver = "xe"; | ||
|
||
boot = lib.mkMerge [ | ||
{ | ||
# use xe graphics module, i915 doesn't seem to work well | ||
# just selecting xe seems to be not enough | ||
blacklistedKernelModules = [ "i915" ]; | ||
|
||
kernelParams = [ | ||
# makes external display more stable | ||
"xe.psr_safest_params=1" | ||
# extra debug logs just in case something breaks | ||
"xe.verbose_state_checks=true" | ||
]; | ||
} | ||
|
||
# we can't inspect config.boot.kernelPackages.kernel.version to override kernelPackages as it's create a loop | ||
# instead let's auto-apply latest kernel if linux_default is broken | ||
# | ||
# TODO: this may unnecessarily bump kernel to latest if say 6.13 is manually selected in configuration | ||
# maybe we need extra parameter to this module? Though should still already be possible to overrule module kernel selection. | ||
# Looking at linux_default version is also less restrictive than always setting latest, | ||
# once 6.12 is fixed we can update brokenXeModule expression and only do override on old nixpkgs versions that haven't yet | ||
# upgraded to a fixed kernel | ||
(lib.mkIf (brokenXeModule pkgs.linuxKernel.packageAliases.linux_default.kernel.version) { | ||
kernelPackages = pkgs.linuxPackages_latest; | ||
}) | ||
]; | ||
|
||
assertions = lib.optionals (config.hardware.intelgpu.driver == "xe") [ | ||
{ | ||
assertion = !(brokenXeModule config.boot.kernelPackages.kernel.version); | ||
message = "xe driver would fail with 'probe with driver xe failed with error -110'"; | ||
} | ||
]; | ||
|
||
# Recommended in NixOS/nixos-hardware#127 | ||
services.thermald.enable = lib.mkDefault true; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.