A black screen on a secondary monitor connected to a Dell XPS 15 (970) running Ubuntu is typically caused by the NVIDIA GeForce GTX 1050 Ti driver failing to initialize the display output or incorrect kernel parameters preventing proper hardware detection. This issue often arises after system updates, BIOS changes, or when switching between integrated Intel and discrete NVIDIA graphics. The following guide provides concrete steps to diagnose and resolve these display failures without requiring complex reinstallation procedures.
Initial Diagnostic Steps
Before modifying system configurations, verify that the physical connection and basic input signals are functioning correctly. Ensure the HDMI or USB-C cable is securely seated in both the laptop and the external monitor. Test the external monitor with another device to confirm it is not the source of the failure. If the monitor works elsewhere, the issue lies within the Ubuntu configuration or the NVIDIA driver stack.
Check if the operating system recognizes the second display by opening the terminal and running
xrandr. This command lists all detected displays and their current status. Look for entries indicating the external monitor (e.g., HDMI-1, DP-1) as "connected" but potentially disabled or set to an unsupported resolution. If the display appears as "disconnected," the system may be failing to detect the hardware due to driver issues or kernel conflicts.
Updating and Reconfiguring NVIDIA Drivers
The most common culprit for black screens on discrete GPUs is a mismatched or corrupted driver installation. Ubuntu’s default open-source
nouveau driver often struggles with the GTX 1050 Ti, especially under heavy load or specific kernel versions. It is advisable to switch to the proprietary NVIDIA drivers provided by Canonical’s package manager.
First, update your system packages to ensure you have the latest repository information. Run
sudo apt update followed by
sudo apt upgrade. Next, identify the recommended proprietary driver for your GPU. You can do this by searching for available NVIDIA drivers using
ubuntu-drivers devices. This command will list compatible drivers, typically highlighting one as "recommended." Install the recommended version using
sudo apt install nvidia-driver-XXX, replacing XXX with the specific version number suggested.
After installation, reboot the system. During the boot process, the GRUB bootloader may appear. If the black screen persists immediately after login, try booting into recovery mode from the GRUB menu. Select "Advanced options for Ubuntu" and choose a previous kernel version if the current one causes instability. Older kernels sometimes offer better compatibility with specific NVIDIA hardware configurations. For more insights on driver-related black screens, refer to our guide on resolving issues after an NVIDIA driver update
Black Screen After NVIDIA GeForce Driver Update.
Configuring Kernel Parameters
If updating drivers does not resolve the issue, the problem may stem from how the Linux kernel initializes the PCIe bus for the NVIDIA card. The Dell XPS 15 uses Optimus technology, which switches between Intel integrated graphics and the NVIDIA discrete GPU. Sometimes, the kernel fails to properly allocate resources for the secondary display during early boot stages.
To address this, you may need to add specific kernel parameters to the GRUB configuration. Open the GRUB configuration file using
sudo nano /etc/default/grub. Locate the line starting with
GRUB_CMDLINE_LINUX_DEFAULT. Append
acpi_backlight=vendor or
nvidia-drm.modeset=1 to the existing string inside the quotes. These parameters help the system handle display brightness and Direct Rendering Manager modesets more effectively.
Save the file and exit the editor. Then, update the GRUB configuration by running
sudo update-grub. Reboot the computer and check if the second monitor activates. If the screen remains black, try removing the added parameters one at a time and rebooting to isolate the conflicting setting. Be cautious when editing kernel parameters, as incorrect values can prevent the system from booting entirely. Always keep a live USB handy to restore access if necessary.
Checking Display Server Settings
Ubuntu defaults to the Wayland display server in recent versions, which can sometimes cause compatibility issues with NVIDIA drivers and multi-monitor setups. Switching to the Xorg (X11) display server often resolves black screen anomalies because it has broader support for legacy and proprietary graphics stacks.
Log out of your current session. On the login screen, click your username. Before entering your password, look for a gear icon in the bottom-right corner of the screen. Click this icon and select "GNOME on Xorg" or simply "Xorg" from the dropdown menu. Enter your password and log in. Once logged in, navigate to Settings > Displays to configure the arrangement and resolution of your monitors.
This change forces the system to use the more stable X11 protocol for rendering graphics. While Wayland offers better security and touch support, Xorg remains the preferred choice for gaming and professional applications involving NVIDIA hardware. If the second monitor works after switching to Xorg, you can consider making this the permanent default by editing the
/etc/gdm3/custom.conf file and uncommenting the line
WaylandEnable=false.
BIOS and Hardware Reset Procedures
In rare cases, the issue may originate from the firmware level rather than the operating system. A corrupted BIOS state or residual power in the capacitors can prevent the NVIDIA GPU from initializing correctly. Perform a hard reset by shutting down the laptop, unplugging the AC adapter, and removing any peripheral devices. Hold the power button for 30 seconds to discharge residual electricity.
Reconnect the power adapter and start the laptop. Enter the BIOS setup by pressing F2 repeatedly during boot. Check if the NVIDIA GPU is listed under the System Configuration or Video section. Ensure that the graphics mode is set to "Discrete" or "Hybrid" rather than "Integrated Only." Save changes and exit. This step ensures that the hardware is configured to utilize the discrete GPU for display outputs.
For users experiencing broader hardware connectivity issues on Ubuntu, such as network adapters not being detected, you might find similar diagnostic approaches useful in our article on
Wifi Adaptor Not Found on Acer Laptop with Ubuntu 22.04. Although the hardware differs, the principle of verifying physical connections and driver states remains consistent across troubleshooting scenarios.
Frequently Asked Questions
Why does my second monitor work on Windows but not Ubuntu?
Windows includes proprietary NVIDIA drivers by default, whereas Ubuntu may attempt to use the open-source Nouveau driver initially. This driver conflict often leads to display initialization failures on Linux systems. Installing the correct proprietary driver usually bridges this gap.
Can I use multiple monitors with the NVIDIA GTX 1050 Ti on Ubuntu?
Yes, the GTX 1050 Ti supports multiple displays, but it requires proper configuration of the NVIDIA X Server Settings. Ensure that the "PRIME Render Offload" or "NVIDIA X Server" profile is selected in your graphics settings rather than the integrated Intel option.
What should I do if the system won’t boot after changing kernel parameters?
Use a live USB stick to mount your root partition and edit the GRUB configuration file located at
/etc/default/grub. Remove the problematic kernel parameters you added, save the file, and run
update-grub before rebooting.
Is it safe to disable Wayland permanently?
Disabling Wayland is generally safe for users relying on NVIDIA proprietary drivers and multi-monitor setups. However, you may lose some modern desktop features like fractional scaling and improved touch gestures. Monitor stability gains usually outweigh these minor inconveniences.
How do I know if my NVIDIA driver is installed correctly?
Run the command
nvidia-smi in the terminal. If the driver is active, this command will display a table showing the GPU name, driver version, memory usage, and process information. An error message indicates that the driver is not loaded or installed incorrectly.