From 2e28b5160b3fb8a1950a45f65e66fcca06920ac0 Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 12 May 2024 11:47:49 -0400 Subject: [PATCH 1/3] Add Surface Pro 9 with Intel PSR disabled --- flake.nix | 1 + microsoft/surface-pro/9/default.nix | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 microsoft/surface-pro/9/default.nix diff --git a/flake.nix b/flake.nix index 69e0a31..f350035 100644 --- a/flake.nix +++ b/flake.nix @@ -194,6 +194,7 @@ microsoft-surface-laptop-amd = import ./microsoft/surface/surface-laptop-amd; microsoft-surface-common = import ./microsoft/surface/common; microsoft-surface-pro-3 = import ./microsoft/surface-pro/3; + microsoft-surface-pro-9 = import ./microsoft/surface-pro/9; milkv-pioneer = import ./milkv/pioneer; morefine-m600 = import ./morefine/m600; msi-b350-tomahawk = import ./msi/b350-tomahawk; diff --git a/microsoft/surface-pro/9/default.nix b/microsoft/surface-pro/9/default.nix new file mode 100644 index 0000000..60b82ad --- /dev/null +++ b/microsoft/surface-pro/9/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ ../../surface/surface-pro-intel ]; + + boot.kernelParams = [ "i915.enable_psr=0" ]; # Disable Intel Panel Self Refresh +} \ No newline at end of file From a1dc5cd106dd23416447f5776415c00b2581102e Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 12 May 2024 12:00:44 -0400 Subject: [PATCH 2/3] Add Readme for Surface Pro 9 --- microsoft/surface-pro/9/README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 microsoft/surface-pro/9/README.md diff --git a/microsoft/surface-pro/9/README.md b/microsoft/surface-pro/9/README.md new file mode 100644 index 0000000..5ec8e80 --- /dev/null +++ b/microsoft/surface-pro/9/README.md @@ -0,0 +1,7 @@ +# Microsoft Surface Pro 9 + +## Note on Intel Panel Self Refresh (PSR) + +Intel GPUs support a feature called [Panel Self Refresh (PSR)](https://www.intel.com/content/www/us/en/support/articles/000057194/graphics.html), where the display refreshes independently of the OS. Out of the box, this can cause lots of display lag, stuttering, and enormous refresh rate drops. + +This configuration disables PSR by adding `i915.enable_psr=0` to the kernel boot parameters, at the cost of some battery life. If you want to turn PSR back on, add `i915.enable_psr=1` to your `boot.kernelParams`. From 704f05a3c8f8beb1d08837f43670c44946faad66 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 20 May 2024 10:10:00 -0400 Subject: [PATCH 3/3] Add Surface Pro 9 to Readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fe92f58..8975c10 100644 --- a/README.md +++ b/README.md @@ -261,6 +261,7 @@ See code for all available configurations. | [Microsoft Surface Laptop (AMD)](microsoft/surface/surface-laptop-amd) | `` | | [Microsoft Surface Range (Common Modules)](microsoft/surface/common) | `` | | [Microsoft Surface Pro 3](microsoft/surface-pro/3) | `` | +| [Microsoft Surface Pro 9](microsoft/surface-pro/9) | `` | | [Morefine M600](morefine/m600) | `` | | [NXP iMX8 MPlus Evaluation Kit](nxp/imx8mp-evk) | `` | | [NXP iMX8 MQuad Evaluation Kit](nxp/imx8mq-evk) | `` |