diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-14 17:39:42 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-14 17:39:42 +0200 |
| commit | 108ecc5cfc1d40899c8eb559f0f6600770a73f0c (patch) | |
| tree | de08c4d0e16684b658ad0243b1589abf65ce9654 /roles/nvidia_gt750m/templates | |
| parent | 4f29b6dd05b4826f7a1df57d70537f2dc8d1d8f8 (diff) | |
Re-implement gt750 role to just increase performance of nouveau driver
Co-Authored-By: Claude.ai
Diffstat (limited to 'roles/nvidia_gt750m/templates')
| -rw-r--r-- | roles/nvidia_gt750m/templates/99-nouveau-pstate-gt750m.rules.j2 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/nvidia_gt750m/templates/99-nouveau-pstate-gt750m.rules.j2 b/roles/nvidia_gt750m/templates/99-nouveau-pstate-gt750m.rules.j2 new file mode 100644 index 00000000..14241a70 --- /dev/null +++ b/roles/nvidia_gt750m/templates/99-nouveau-pstate-gt750m.rules.j2 @@ -0,0 +1,14 @@ +# Force nouveau GPU performance state to maximum on GT 750M Mac Edition. +# +# Nouveau does not reclock Kepler GPUs automatically — the card boots at minimum +# frequency (~405 MHz core / 680 MHz memory) and stays there, causing severe lag +# under Wayland compositors. This rule forces pstate 0f (925 MHz core / 5016 MHz +# memory) the moment nouveau initializes the DRM device. +# +# Match is on PCI vendor/device ID (10de:0fe9 = GT 750M Mac Edition) rather than +# card number, which is not stable across reboots. +# +# %k expands to the kernel DRM name (e.g. card0) at rule execution time. +# The write is deferred via sleep because the sysfs debug interface is not +# immediately available at the ADD udev event. +ACTION=="add", SUBSYSTEM=="drm", KERNEL=="card*", ATTR{device/vendor}=="0x10de", ATTR{device/device}=="0x0fe9", RUN+="/bin/sh -c 'sleep 2 && echo 0f > /sys/kernel/debug/dri/%k/pstate'" |
