Improve X270 hardware experience
This commit is contained in:
		
							parent
							
								
									96729143fa
								
							
						
					
					
						commit
						e2e91e6924
					
				
					 1 changed files with 22 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
{ lib, pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
    hardware.trackpoint = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
| 
						 | 
				
			
			@ -7,14 +7,31 @@
 | 
			
		|||
    };
 | 
			
		||||
 | 
			
		||||
    services.xserver.videoDrivers = [ "modesetting" ];
 | 
			
		||||
 | 
			
		||||
    boot.initrd.kernelModules = [ "i915" ];
 | 
			
		||||
    hardware.opengl = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        driSupport = true;
 | 
			
		||||
        driSupport32Bit = true;
 | 
			
		||||
        # driSupport = true;
 | 
			
		||||
        # driSupport32Bit = true;
 | 
			
		||||
    };
 | 
			
		||||
    environment.variables = {
 | 
			
		||||
        VDPAU_DRIVER = "va_gl";
 | 
			
		||||
    };
 | 
			
		||||
    hardware.opengl.extraPackages = with pkgs; [
 | 
			
		||||
        (if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then vaapiIntel else intel-vaapi-driver)
 | 
			
		||||
        libvdpau-va-gl
 | 
			
		||||
        intel-media-driver
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    console = {
 | 
			
		||||
      font = "Lat2-Terminus16";
 | 
			
		||||
      keyMap = "de";
 | 
			
		||||
        font = "Lat2-Terminus16";
 | 
			
		||||
        keyMap = "de";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    boot.kernelParams = [
 | 
			
		||||
        # Disable ’Panel Self Refresh’. Fixes random freezes.
 | 
			
		||||
        "i915.enable_psr=0"
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    hardware.cpu.intel.updateMicrocode = true;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue