Ubuntu 22.04: Second Monitor Stays Black after NVIDIA Graphics Card Plug-in

Abstract: Fix black second monitor on Ubuntu 22.04 by adding nvidia-drm.modeset=1 to GRUB kernel parameters.

Created: 2026-08-31 by

The second monitor remains black on Ubuntu 22.04 after installing NVIDIA drivers because the system fails to correctly initialize the display output during boot, often due to missing kernel parameters or incorrect Xorg configuration. The most reliable fix involves adding specific GRUB kernel arguments to force the NVIDIA DRM modeset and ensuring the correct driver is loaded before the display manager starts.

Analyzing the Root Cause

When a second monitor connected to an NVIDIA graphics card stays black, the issue typically stems from how the Linux kernel interacts with the proprietary NVIDIA driver. Unlike open-source drivers, NVIDIA’s proprietary stack requires explicit permission to manage the display hardware at the kernel level. If this permission is not granted early in the boot process, the X server may start without detecting the secondary display, leaving it in a powered-off or unresponsive state. This problem is particularly common on systems with hybrid graphics (Optimus) or when upgrading from older versions of Ubuntu where default configurations were less strict about DRM (Direct Rendering Manager) integration. The Xorg log file usually reveals errors related to "No screens found" or failures to attach outputs to the screen section. While troubleshooting tools like xrandr are essential for manual adjustments, as discussed in our guide on How to Use xrandr Command to Turn On Your Monitor in Linux, they cannot fix a hardware initialization failure that occurs before the desktop environment loads.

Enabling NVIDIA DRM Modeset via GRUB

The primary solution involves enabling the DRM modeset feature in the NVIDIA driver through the GRUB bootloader configuration. This allows the kernel to take control of the display earlier, preventing conflicts between the kernel mode setting and the X server. To apply this fix, you must edit the GRUB configuration file. Open a terminal and run the following command to open the configuration file in a text editor:
sudo nano /etc/default/grub
Locate the line starting with GRUB_CMDLINE_LINUX_DEFAULT. It typically looks something like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
You need to add nvidia-drm.modeset=1 inside the quotes. The line should then read:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia-drm.modeset=1"
If your system uses secure boot, you might also need to ensure that the module signing is handled correctly, but for most standard installations, the modeset parameter is sufficient. After saving the file (using Ctrl+O, Enter, and Ctrl+X), you must update GRUB to apply the changes:
sudo update-grub
Once updated, restart your computer. Upon reboot, check if the second monitor is detected. If it is still black, proceed to verify the driver installation.

Verifying Driver Installation and Reinstallation

Even with the correct kernel parameters, a corrupted or incomplete driver installation can cause display issues. Ubuntu 22.04 ships with a newer version of the NVIDIA driver stack, but sometimes the initial package selection during setup fails to include all necessary components. First, verify which driver is currently active by running:
nvidia-smi
If this command returns an error or fails to list your GPU, the driver is not properly installed. In such cases, reinstalling the recommended driver through the Software & Updates tool is the safest approach. Navigate to System Settings > Software & Updates > Additional Drivers. Select the recommended proprietary NVIDIA driver (usually labeled as "Using NVIDIA driver metapackage") and apply changes. For more advanced users who prefer using the command line, you can install the latest stable driver using the ubuntu-drivers utility:
sudo ubuntu-drivers autoinstall
After installation, reboot the system. It is crucial to allow the system enough time to load the desktop environment, as the initial login might be slow as the driver initializes the displays.

Checking Xorg Configuration Files

In rare cases, a custom xorg.conf file created by previous attempts to fix display issues may be overriding the automatic detection. If you previously edited files in /etc/X11/xorg.conf.d/, these configurations might be forcing the wrong resolution or disabling the second output. Check for any existing configuration files:
ls /etc/X11/xorg.conf.d/
If you find files specifically named for NVIDIA or display configuration, try renaming them temporarily (e.g., appending .bak) to see if the system falls back to automatic detection. Note that modern Ubuntu versions often do not require a manual xorg.conf file, relying instead on the driver's built-in capabilities. Additionally, ensure that the display cables are securely connected and that the monitor is set to the correct input source. While software fixes are primary, physical connection issues can mimic software failures. If you suspect hardware incompatibility, refer to resources on Nvidia RTX 2060 Super 8GB (Inno3D) Crashing Randomly on Arch Linux for insights into hardware-specific quirks, although the OS differs, the underlying GPU behavior principles can be similar.

Alternative Solutions: Wayland vs. X11

Ubuntu 22.04 defaults to the Wayland display server, which has improved NVIDIA support but still encounters edge cases with multi-monitor setups. If the above steps fail, switching to the X11 session might resolve the issue. At the login screen, click your username. Before entering your password, look for a gear icon in the bottom right corner. Select Ubuntu (on Xorg) from the menu. Log in and check if the second monitor activates. X11 has a longer history of stability with proprietary NVIDIA drivers, making it a viable fallback for critical workstations.

Frequently Asked Questions

Why does my monitor stay black even after installing drivers?

This usually happens because the NVIDIA DRM modeset is not enabled in the kernel parameters, causing a conflict between the kernel and the X server. You must add nvidia-drm.modeset=1 to your GRUB configuration and update the bootloader to resolve this initialization conflict.

Can I use xrandr to turn on a black monitor if the driver is broken?

No, xrandr operates at the user-space level within the X server. If the driver fails to initialize the hardware at the kernel level, the X server will not detect the monitor, rendering xrandr commands ineffective until the underlying driver issue is fixed.

Does switching to Wayland help with dual monitors on NVIDIA?

Wayland support for NVIDIA has improved significantly in Ubuntu 22.04, but it can still exhibit bugs with certain multi-monitor configurations. If you experience flickering or black screens, switching to the X11 session via the login gear icon is often a more stable solution for professional workflows.

What should I do if nvidia-smi shows no devices?

If nvidia-smi reports no devices, the kernel module is not loading. Ensure that Secure Boot is disabled or that the NVIDIA modules are properly signed. Reinstalling the driver via ubuntu-drivers autoinstall and rebooting usually resolves missing module issues.

Is it safe to delete xorg.conf files manually?

It is generally safe to remove or rename custom xorg.conf files in /etc/X11/xorg.conf.d/ on modern Ubuntu versions, as the system relies on automatic detection. However, always create a backup of the original file before deleting it to ensure you can restore the previous state if needed.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More