switched back to prime sync

This commit is contained in:
Gerg-L 2023-03-23 19:39:57 -04:00
parent 6ffe0a3bfc
commit 0f2c571aa5
2 changed files with 22 additions and 30 deletions

View file

@ -9,7 +9,7 @@ EndSection
Section "Monitor" Section "Monitor"
Identifier "Monitor[0]" Identifier "Monitor"
Option "DPMS" "false" Option "DPMS" "false"
EndSection EndSection
@ -34,38 +34,30 @@ EndSection
Section "ServerLayout" Section "ServerLayout"
Identifier "Layout[all]" Identifier "layout"
Option "AllowNVIDIAGPUScreens" Screen 0 "nvidia"
Inactive "amdgpu"
Screen "Screen-amdgpu[0]"
EndSection EndSection
Section "Device" Section "Device"
Identifier "Device-amdgpu[0]" Identifier "nvidia"
Driver "amdgpu"
BusID "PCI:15:0:0"
EndSection
Section "Screen"
Identifier "Screen-amdgpu[0]"
Device "Device-amdgpu[0]"
EndSection
Section "Device"
Identifier "Device-nvidia[0]"
Driver "nvidia" Driver "nvidia"
BusID "PCI:1:0:0" BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "amdgpu"
Driver "amdgpu"
BusID "PCI:15:0:0"
EndSection
Section "Screen"
Identifier "amdgpu"
Device "amdgpu"
EndSection EndSection

View file

@ -82,8 +82,8 @@ in {
services.xserver.displayManager.xserverArgs = lib.mkAfter ["-config /tmp/xorg.conf"]; services.xserver.displayManager.xserverArgs = lib.mkAfter ["-config /tmp/xorg.conf"];
services.xserver.displayManager.sessionCommands = lib.mkBefore '' services.xserver.displayManager.sessionCommands = lib.mkBefore ''
if ! (test -e "/tmp/ONE_MONITOR"); then if ! (test -e "/tmp/ONE_MONITOR"); then
xrandr --output DP-1-0 --auto --mode 3440x1440 --rate 120 --primary --pos 0x0 xrandr --output DP-0 --auto --mode 3440x1440 --rate 120 --primary --pos 0x0
xrandr --output HDMI-A-0 --auto --mode 1920x1080 --rate 144 --set TearFree on --pos 3440x360 xrandr --output HDMI-A-1-0 --auto --mode 1920x1080 --rate 144 --set TearFree on --pos 3440x360
xset -dpms xset -dpms
fi fi
''; '';