Section "InputDevice" # generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" # generated from default Identifier "Keyboard0" Driver "kbd" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Lenovo" ModelName "Lenovo Group Limited LEN D32q-20B" HorizSync 114.0 - 114.0 VertRefresh 48.0 - 75.0 Option "DPMS" EndSection Section "Module" #STEF test with glamoregl on # Disable "glamoregl" Load "glamoregl" EndSection Section "ServerFlags" Option "IgnoreABI" "1" EndSection #PRIME (NVIDIA passthrough: NVIDIA renders to AMD screens) Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" Inactive "amd" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" Option "AllowNVIDIAGPUScreens" EndSection Section "Files" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GeForce GTX 1650 Ti" BusID "PCI:1:0:0" #adaptive strategy for any power source #Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2233; PowerMizerDefault=0x3" #batt=max power saving, AC=max power saving #Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3333" #batt=adaptive strategy, AC=max performance #Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1" #batt=max power saving, AC=max performance #Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x1" #batt=max power saving, AC=adaptive strategy (my favorite) Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3" #For overclocking - only when PowerMizerDefaultAC=0x1 #Option "Coolbits" "31" #Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}" # Option "metamodes" "DP-0: nvidia-auto-select +0+0 {AllowGSYNCCompatible=On}" EndSection Section "Device" Identifier "amd" Driver "modesetting" VendorName "Unknown" EndSection Section "Screen" Identifier "Screen0" Device "nvidia" Monitor "Monitor0" DefaultDepth 24 # not needed anymore since Xorg 1.20.6-1 #Option "AllowEmptyInitialConfiguration" "True" Option "AllowIndirectGLXProtocol" "off" Option "TripleBuffer" "on" Option "Backlight" "nvidia_0" Option "Stereo" "0" Option "nvidiaXineramaInfoOrder" "DFP-0" Option "metamodes" "DP-0: 2560x1440_75 +0+0 {AllowGSYNCCompatible=On}, DP-2: nvidia-auto-select +2560+0 {AllowGSYNCCompatible=Off}" Option "SLI" "Off" Option "MultiGPU" "Off" Option "BaseMosaic" "off" SubSection "Display" Depth 24 EndSubSection EndSection # Reverse PRIME (amd passthrough: amd renders to NVIDIA screens) # note: this should consume less energy but as of sep 7 2021, when lid is closed, we get 1fps on external display # with single display works properly and nvidia just sit there consuming 1W without processes # Section "ServerLayout" # Identifier "layout" # Screen 0 "amd_screen" # Inactive "nvidia" # InputDevice "Keyboard0" "CoreKeyboard" # InputDevice "Mouse0" "CorePointer" # Option "AllowNVIDIAGPUScreens" # EndSection # # Section "Device" # Identifier "nvidia" # Driver "nvidia" # VendorName "NVIDIA Corporation" # BoardName "GeForce GTX 1650 Ti" # EndSection # # Section "Screen" # Identifier "nvidia" # Device "nvidia" # EndSection # # Section "Device" # Identifier "amd" # Driver "modesetting" # #Driver "amdgpu" # BusID "PCI:6:0:0" # EndSection # # Section "Screen" # Identifier "amd_screen" # Device "amd" # EndSection