mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
switched back to prime sync
This commit is contained in:
parent
6ffe0a3bfc
commit
0f2c571aa5
2 changed files with 22 additions and 30 deletions
|
|
@ -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"
|
Driver "nvidia"
|
||||||
|
BusID "PCI:1:0:0"
|
||||||
BusID "PCI:15:0:0"
|
|
||||||
|
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
Section "Screen"
|
Section "Screen"
|
||||||
Identifier "Screen-amdgpu[0]"
|
Identifier "nvidia"
|
||||||
Device "Device-amdgpu[0]"
|
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
|
||||||
|
|
||||||
|
|
||||||
Section "Device"
|
|
||||||
Identifier "Device-nvidia[0]"
|
|
||||||
Driver "nvidia"
|
|
||||||
|
|
||||||
BusID "PCI:1:0:0"
|
|
||||||
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,9 +82,9 @@ 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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue