Skip to content

Instantly share code, notes, and snippets.

@lucaspar
Last active October 4, 2019 20:33
Show Gist options
  • Save lucaspar/dd242341048f417a6db258053dcfca57 to your computer and use it in GitHub Desktop.
Save lucaspar/dd242341048f417a6db258053dcfca57 to your computer and use it in GitHub Desktop.
[ FIX ] Blank screen fix after Nvidia update.
# ::: NVIDIA INSTALL :::
#
# Nvidia driver installation: https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux.
# Method of "Manual Install using the Official Nvidia.com driver".
#
# ::: DISPLAY FIX :::
#
# 0. append the following to /usr/share/sddm/scripts/Xsetup:
# ---------
# xrandr --setprovideroutputsource modesetting NVIDIA-0
# xrandr --auto
# ---------
#
# 1. update this file in /etc/X11/xorg.conf
# 2. sudo dpkg-reconfigure sddm # probably unnecessary
# 3. sudo service sddm restart # necessary
#
# :::
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0@0:2:0"
Option "AccelMethod" "None"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
# Option "UseDisplayDevice" "DFP"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:4@0:0:0"
Option "ConstrainCursor" "off"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration" "on"
Option "IgnoreDisplayDevices" "CRT"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment