diff --git a/README.md b/README.md index 03d35a0..a05e3a9 100644 --- a/README.md +++ b/README.md @@ -267,6 +267,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) | `` | diff --git a/flake.nix b/flake.nix index b4d6343..a2459f2 100644 --- a/flake.nix +++ b/flake.nix @@ -201,6 +201,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/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`. 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