How to fix Ubuntu 22.04 screen turn off when clicking on settings or some applications need to use graphics. Or when you leave the computer in the Suspend
(Sleep) state, it can’t be turned on, sleeps and doesn’t wake up. This error usually occurs on machines using NVIDIA video cards.
How to Fix Ubuntu 22.04 Black Screen in Settings and Sleep Mode
The issue of the screen turning off when accessing “settings” on Ubuntu is not limited to NVIDIA graphics cards. It can also occur on other graphics cards, such as Intel or AMD. The main cause of this problem is often due to incorrect graphics driver configuration. If you want to fix the issue of “fix Ubuntu 22.04 screen turn off when click settings” on your system, you can follow the steps below. In the case, the issue was fixed by updating the graphics driver according to the system’s recommendations.
Step 1: Uninstall all NVIDIA Drivers on the system
To remove all NVIDIA installations from your system, you can use the purge
command to search for and remove all NVIDIA-related packages from the system.
sudo apt autoremove nvidia* --purge
sudo apt-get autoremove
After removing NVIDIA, you need to run the command to update the system, restart your computer, and begin the process of fixing the issue of the Ubuntu 22.04 screen turning off when accessing settings or when in Suspend
mode.
sudo apt update; sudo apt upgrade -y
sudo reboot
Step 2: Identify your graphics card and recommended NVIDIA
Continue running the command “ubuntu-drivers devices” in the terminal. This command will display a list of available hardware drivers on your system. The system will scan all the hardware components on your computer and list the drivers that match each component, including the currently installed drivers and other drivers available for installation.
ubuntu-drivers devices
As shown in the screenshot provided, the recommended graphics driver is nvidia-driver-530-distro non-free recommended
. Keep in mind that the recommended driver for your NVIDIA graphics card may be different, so look for the “Recommended Graphics” option displayed in your terminal.
Step 3: Install recommended or specified Ubuntu 22.04 NIVIDIA card
If you agree with the recommended
graphics driver version suggested by the system, you can use this command to allow the system to automatically find and install it. After the system has processed the command, you can proceed to fix the Ubuntu 22.04 error of the screen turning off when entering Sleep
(Suspend) mode or when accessing settings:
sudo ubuntu-drivers autoinstall
If you want to install a specific version of the Graphics Driver, you can use the command below. Please note that you need to replace the version number with the one previously recommended by the system.
Example to install Nvidia 530 Driver on Ubuntu 22.04:
sudo apt install nvidia-driver-530
Alright, after waiting for the Nvidia Driver to be successfully installed on your Ubuntu 22.04, restart your computer. The errors of the screen not opening when in Sleep
mode, or when opening some applications with the Suspend
screen settings off (black screen) cannot be turns on. Good luck!