mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	zephyrus ga401: Enable nvidia powerManagement & modesetting (nvidia-drm)
This commit is contained in:
		@@ -10,9 +10,17 @@
 | 
			
		||||
    ../../../common/pc/laptop/ssd
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  hardware.nvidia.prime = {
 | 
			
		||||
    amdgpuBusId = "PCI:4:0:0";
 | 
			
		||||
    nvidiaBusId = "PCI:1:0:0";
 | 
			
		||||
  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";
 | 
			
		||||
      nvidiaBusId = "PCI:1:0:0";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  services = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user