zephyrus ga401: Enable nvidia powerManagement & modesetting (nvidia-drm)

This commit is contained in:
ChaosAttractor 2023-02-10 14:54:19 +08:00
parent 5c55f2428f
commit 0d8c852503

View file

@ -10,10 +10,18 @@
../../../common/pc/laptop/ssd ../../../common/pc/laptop/ssd
]; ];
hardware.nvidia.prime = { hardware.nvidia = {
# PCI-Express Runtime D3 Power Management is enabled by default on this laptop
# But it can fix screen tearing & suspend/resume screen corruption in sync mode
modesetting.enable = lib.mkDefault true;
# Enable DRM kernel mode setting
powerManagement.enable = lib.mkDefault true;
prime = {
amdgpuBusId = "PCI:4:0:0"; amdgpuBusId = "PCI:4:0:0";
nvidiaBusId = "PCI:1:0:0"; nvidiaBusId = "PCI:1:0:0";
}; };
};
services = { services = {
asusd.enable = lib.mkDefault true; asusd.enable = lib.mkDefault true;