Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zwhitchcox/0a2c2007388b9e4fbb22355e4de86507 to your computer and use it in GitHub Desktop.
Save zwhitchcox/0a2c2007388b9e4fbb22355e4de86507 to your computer and use it in GitHub Desktop.
configt for nvidia to fix issue with screen only
# Fixes issue where laptop's monitor ports are connected to the dGPU, while the laptop screen is connected
# to the iGPU. This can cause extreme lag when laptop lid is closed, for soem reason (possibly the iGPU
# is turned off and thus unable to render the graphics). This configuration lets the iGPU render/display
# for the laptop and the dGPU render/display for the external monitors.
# Correction: Actually, it looks like all monitors are using the NVIDA driver. However, if I remove the
# first section, my laptop lid doesn't work so, idk
# This section sets up the Intel integrated graphics as the primary driver
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
# This section sets up the Nvidia discrete graphics card
# as a secondary driver and enables some options to optimize its performance
Section "Device"
Identifier "Nvidia Card"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "true"
# Disables Reverse PRIME and uses Nvidia graphics card for rendering and display
Option "ReverseOptimus" "false"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment