Skip to content

Instantly share code, notes, and snippets.

@tpruvot
Last active October 20, 2020 10:29
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save tpruvot/babb98c024a652181fba35a942d5dd94 to your computer and use it in GitHub Desktop.
Save tpruvot/babb98c024a652181fba35a942d5dd94 to your computer and use it in GitHub Desktop.
Fake plugged monitor to allow coolbits on maxwell and pascal cards
# To allow nvidia powermizer settings, we need to define dummy monitors for each card
# Edit the PCI BusId for each cards (lspci | grep VGA)
# Also, you need to dump an EDID file from your monitor
# Here is my dell.edid (2560x1440)
# it's stored in text, hexdump -C format, not binary:
# 00 ff ff ff ff ff ff 00 10 ac 7e 40 4c 54 41 41
# 15 17 01 03 80 3c 22 78 ea 4b b5 a7 56 4b a3 25
# 0a 50 54 a5 4b 00 81 00 b3 00 d1 00 71 4f a9 40
# 81 80 d1 c0 01 01 56 5e 00 a0 a0 a0 29 50 30 20
# 35 00 55 50 21 00 00 1a 00 00 00 ff 00 47 4b 30
# 4b 44 33 35 4f 41 41 54 4c 0a 00 00 00 fc 00 44
# 45 4c 4c 20 55 32 37 31 33 48 4d 0a 00 00 00 fd
# 00 31 56 1d 71 1c 00 0a 20 20 20 20 20 20 00 6f
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
Screen 1 "FakeScreen1"
Screen 2 "FakeScreen2"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
FontPath "/usr/lib64/X11/fonts/TTF/"
EndSection
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 "DELL"
ModelName "U2713HM"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
# Option "IgnoreEDIDChecksum" "DFP-0"
# Option "ModeValidation" "NoDFPNativeResolutionCheck"
EndSection
Section "Device"
Identifier "Card1070"
Driver "nvidia"
BusId "PCI:3:0:0"
Option "Coolbits" "29"
Option "CustomEDID" "DFP-0:/etc/X11/dell.edid" # text/hex file
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card1070"
Monitor "Monitor0"
Option "ConnectedMonitor" "DFP-0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
# Card 2
Section "Device"
Identifier "Card1060"
Driver "nvidia"
BusId "PCI:4:0:0"
Option "Coolbits" "29"
Option "ConnectedMonitor" "DFP-0"
# Option "ConnectToAcpid" "0"
Option "CustomEDID" "DFP-0:/etc/X11/dell.edid"
EndSection
Section "Monitor"
Identifier "FakeMonitor1"
VendorName "Dummy"
ModelName "Dummy"
EndSection
Section "Screen"
Identifier "FakeScreen1"
Device "Card1060"
Monitor "FakeMonitor1"
# Low res/depth to reduce gpu mem
Option "metamodes" "DFP-0: 640x480_60 +0+0"
DefaultDepth 16
EndSection
# Card 3
Section "Device"
Identifier "Card970"
Driver "nvidia"
BusId "PCI:8:0:0"
Option "Coolbits" "29"
Option "ConnectedMonitor" "CRT-0"
Option "CustomEDID" "CRT-0:/etc/X11/dell.edid"
EndSection
Section "Monitor"
Identifier "FakeMonitor2"
VendorName "Dummy"
ModelName "Dummy"
EndSection
Section "Screen"
Identifier "FakeScreen2"
Device "Card970"
Monitor "FakeMonitor2"
Option "metamodes" "CRT-0: 640x480_60 +0+0"
DefaultDepth 16
EndSection
# nvidia-settings -q all
# nvidia-settings -q '[gpu:0]/GPUGraphicsClockOffset[3]'
# nvidia-settings -q '[gpu:0]/GPUMemoryTransferRateOffset[3]'
#
# nvidia-settings -a '[gpu:0]/GPUGraphicsClockOffset[3]=100'
# nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment