Troubleshooting/Black Screen: Difference between revisions

From KDE UserBase Wiki
(Created page with "== '''My computer boots to a Black screen''' == Please keep in mind that this page is just an experiment to collect the working solutions to common problems from hundreds of...")
 
No edit summary
Line 7: Line 7:
Have you recently updated?
Have you recently updated?


Blumen wrote on Reddit:   
<small>Blumen wrote on Reddit:</small>  
If you can see your cursor, but there is no wallpaper and panel, this means the process   
If you can see your cursor, but there is no wallpaper and panel, this means the process   
plasmashell crashed. Try running:   
plasmashell crashed. Try running:   
     plasmashell --replace ; kwin_x11 --replace   
     plasmashell --replace ; kwin_x11 --replace   


tinny123 wrote:   
<small>tinny123 wrote:</small>  
===== Do you have offline updates turned off? =====  
===== Do you have offline updates turned off? =====  
Then it's possible you didn't let discover finish installing updates so you have now broken packages.   
Then it's possible you didn't let discover finish installing updates so you have now broken packages.   
Line 39: Line 39:
It's possible that your home directory is so full it stops the GUI from loading. You can try botting from a live-USB and cleaning up some space.   
It's possible that your home directory is so full it stops the GUI from loading. You can try botting from a live-USB and cleaning up some space.   
If you can't boot from a live-USB it's likely you have a hardware problem with your PC.
If you can't boot from a live-USB it's likely you have a hardware problem with your PC.
====If you have a '''GPU''' and can't see the login screen====
<big>If the '''loading screen''' freezes during boot, try adding the nomodeset parameter to GRUB</big>
[https://itsfoss.com/fix-ubuntu-freezing/ Here you can find a detauled tutorial about fixing a frozen loading screen.]
The newest kernels have moved the video mode setting into the kernel. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some video cards this doesn't work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.
To edit Grub2 during the boot process try the following:
    1. Immediately after the BIOS splash screen during boot, press and hold the <keycap>SHIFT</keycap> button. This will display you grub containing a list of kernels and recovery options
    2. Press e to edit the first kernel displayed
    3.  Find the line ending with quiet splash. Add your boot option before these key words - i.e. so the line looks like [...]nomodeset quiet splash
    4. Press </keycap>CTRL</keycap> + <keycap>X </keycap>to boot
If you have an '''Nvidia RTX 30 series''' GPU you need to add nomodeset AND nouveau.nomodeset=1 to the boot parameters. While in the grub menu, hit E and then in the line with the boot options, add both of those, and also make sure any i915, amdgpu, or radeon modeset options are also disabled (if it says radeon.nomodeset=0, change it to 1, for example).
The 30 series has no support in Nouveau yet, so obviously it's not going to work. - <small>u/gatrdotd426</small>
===== Update/reinstall GPU drivers =====
<small>from linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux</small>
Press

Revision as of 08:45, 30 April 2021

My computer boots to a Black screen

Please keep in mind that this page is just an experiment to collect the working solutions to common problems from hundreds of forum posts to a wiki-like troubleshooting page. It assumes you are running KDE Neon or another Debian based distribution. It needs to be checked by experienced users.

Has something crashed when you turned off your PC?

Have you recently updated?

Blumen wrote on Reddit: If you can see your cursor, but there is no wallpaper and panel, this means the process plasmashell crashed. Try running:

   plasmashell --replace ; kwin_x11 --replace  

tinny123 wrote:

Do you have offline updates turned off?

Then it's possible you didn't let discover finish installing updates so you have now broken packages. When you get to the black screen hit ctrl+alt+f1 and log in into terminal with your username and password. It would be good if you can connect your pc to the internet.

In terminal run these commands:

   sudo apt update  
   sudo apt dist-upgrade  
   sudo apt install -f   
Do you have python modules installed?

You can try fixing update errors with already existing python modules: remove the old version from the system installation with

   sudo pip uninstall python-<the module to uninstall>
Have you installed kernel updates lately?

You can try booting with a different kernel from the GRUB menu (Advanced options for GNU/Linux).

If you can't see your mouse:

You can try hitting ctrl+alt+f2 to a terminal then running:

   startx

It's possible that your home directory is so full it stops the GUI from loading. You can try botting from a live-USB and cleaning up some space. If you can't boot from a live-USB it's likely you have a hardware problem with your PC.

If you have a GPU and can't see the login screen

If the loading screen freezes during boot, try adding the nomodeset parameter to GRUB

Here you can find a detauled tutorial about fixing a frozen loading screen.

The newest kernels have moved the video mode setting into the kernel. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some video cards this doesn't work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.

To edit Grub2 during the boot process try the following:

   1. Immediately after the BIOS splash screen during boot, press and hold the SHIFT button. This will display you grub containing a list of kernels and recovery options
   2. Press e to edit the first kernel displayed
   3.  Find the line ending with quiet splash. Add your boot option before these key words - i.e. so the line looks like [...]nomodeset quiet splash
   4. Press </keycap>CTRL</keycap> + X to boot

If you have an Nvidia RTX 30 series GPU you need to add nomodeset AND nouveau.nomodeset=1 to the boot parameters. While in the grub menu, hit E and then in the line with the boot options, add both of those, and also make sure any i915, amdgpu, or radeon modeset options are also disabled (if it says radeon.nomodeset=0, change it to 1, for example). The 30 series has no support in Nouveau yet, so obviously it's not going to work. - u/gatrdotd426

Update/reinstall GPU drivers

from linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux Press