Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On CentOS8, and every time I boot, I get to the kernel selection, pick the kernel as usual, then it gets to those 3 loading dots, and then a black screen. Occasionally, it will flash the readout of what's happening then stay black.
The odd thing is that since I've moved from CentOS7 to CentOS8, 8 has always had this boot bug, and the fix was to just restart a couple times, and it would eventually boot into the GUI.
But since today, I've tried rebooting numerous times (10+), and it won't boot into the GUI as normal. I'm actually on the desktop now but that was after 20+ reboots.
So, I went in and checked with systemctl and then journalctl, there were no issues I could find.
But I'm assuming it's the nvidia driver because I'm using Xorg with 450.80.02
(because apparently nvidia cards work badly with wayland, and I need an nvidia card because I use davinci resolve, which works poorly with AMD apparently.)
and I've had issues with nvidia drivers before, so I'm assuming it's that.
I recently updated Inkscape and exfat-utils but I uninstalled them thinking they may be the issue. They were not the issue.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by linuxbecauseideology
Okay, so I'm at my wits end here.
On CentOS8, and every time I boot, I get to the kernel selection, pick the kernel as usual, then it gets to those 3 loading dots, and then a black screen. Occasionally, it will flash the readout of what's happening then stay black.
The odd thing is that since I've moved from CentOS7 to CentOS8, 8 has always had this boot bug, and the fix was to just restart a couple times, and it would eventually boot into the GUI.
But since today, I've tried rebooting numerous times (10+), and it won't boot into the GUI as normal. I'm actually on the desktop now but that was after 20+ reboots.
So, I went in and checked with systemctl and then journalctl, there were no issues I could find.
But I'm assuming it's the nvidia driver because I'm using Xorg with 450.80.02
(because apparently nvidia cards work badly with wayland, and I need an nvidia card because I use davinci resolve, which works poorly with AMD apparently.)
and I've had issues with nvidia drivers before, so I'm assuming it's that.
I recently updated Inkscape and exfat-utils but I uninstalled them thinking they may be the issue. They were not the issue.
As you can imagine, it's frustrating. Please help.
A few questions:
Is this a clean install of CentOS 8?
If it is a clean install of CentOS 8; did the NVIDIA drivers install without any problems?
How did you install the NVIDIA driver (eg. from packages from ELRepo or the .run installer downloaded from NVIDIA's website)?
Can you get to the console without loading the graphical environment?
Can you post the X log recorded when the graphical environment fails to load?
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
You can add "3" at the end of your kernel parameters to boot into the console without loading the graphical environment.
Anyhow, and based on the link you posted; it looks like you need to run the follow command as root:
Code:
setsebool -P domain_can_mmap_files 1
And also rename or delete the /etc/X11/xorg.conf file. I suggest to just rename xorg.conf to xorg.conf.old As your X log does look a little funny, although I couldn't see any actual errors it in though.
Try the above and see if you still have the same problem. If you do still have the same problem, use the "3" kernel parameter to get to the console by adding it at the GRUB screen, then make sure you grab the X log and re-post it here in that case. It's important that you get the log when it actually fails to load the graphical environment rather than after it has loaded the graphical environment, so we can hopefully see any error messages written to it.
apparently nvidia cards work badly with wayland, and I need an nvidia card because I use davinci resolve, which works poorly with AMD apparently.)
and I've had issues with nvidia drivers before, so I'm assuming it's that.
NVidia's drivers don't have a stellar reputation with Plymouth, so if Plymouth is enabled, try disabling it, or uninstalling it. I prefer seeing all those text messages zooming by, so I never have it enabled, and in most installations, I have it explicitly blocked from installation.
NVidia's drivers don't have a stellar reputation with Plymouth, so if Plymouth is enabled, try disabling it, or uninstalling it. I prefer seeing all those text messages zooming by, so I never have it enabled, and in most installations, I have it explicitly blocked from installation.
You can add "3" at the end of your kernel parameters to boot into the console without loading the graphical environment.
Anyhow, and based on the link you posted; it looks like you need to run the follow command as root:
Code:
setsebool -P domain_can_mmap_files 1
And also rename or delete the /etc/X11/xorg.conf file. I suggest to just rename xorg.conf to xorg.conf.old As your X log does look a little funny, although I couldn't see any actual errors it in though.
Try the above and see if you still have the same problem. If you do still have the same problem, use the "3" kernel parameter to get to the console by adding it at the GRUB screen, then make sure you grab the X log and re-post it here in that case. It's important that you get the log when it actually fails to load the graphical environment rather than after it has loaded the graphical environment, so we can hopefully see any error messages written to it.
Had to get permissions to delete files in the log folder, so I right clicked in the /var/ directory, and selected "open in terminal". Then used
Code:
chmod 777 log
Then I renamed the "Xorg.0.log" to "Xorg.0.log.old2" because there was already one that had ".old".
Then I rebooted to let it fail.
Turned off my pc with the power off button.
Booted up again and added "3" to the end of the Linux line in grub at the kernel stage.
Logged in via the command line.
Then used
Code:
cat /var/log/Xorg.log.old >> xorgpoop.txt
which created a text file for the xorg log, and placed it in my Home directory.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by linuxbecauseideology
Had to get permissions to delete files in the log folder, so I right clicked in the /var/ directory, and selected "open in terminal". Then used
Code:
chmod 777 log
Then I renamed the "Xorg.0.log" to "Xorg.0.log.old2" because there was already one that had ".old".
...
I was talking about renaming the /etc/X11/xorg.conf file to /etc/X11/xorg.conf.old not renaming the X log file. This way you could not have it loaded by X, but still have a copy of it in case it didn't help. You should not be giving all permissions to all users by running chmod 777 - so you should undo that.
But yes, I did mean copying the X log to somewhere safe and posting it here as you've done.
In any case, we can confirm it is the NVIDIA driver that is preventing your graphical environment from loading:
Code:
[ 47.173] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:16:0:0. Please
[ 47.173] (EE) NVIDIA(GPU-0): check your system's kernel log for additional error
[ 47.173] (EE) NVIDIA(GPU-0): messages and refer to Chapter 8: Common Problems in the
[ 47.173] (EE) NVIDIA(GPU-0): README for additional information.
[ 47.173] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
[ 47.173] (EE) NVIDIA(0): Failing initialization of X screen
...so now that we can confirm that, we need to see what's in the kernel log about it. So repeat the same process as you did when you got the last X log, boot into the console, and run the following command (as a normal user), and post the contents of the resulting file;
I was talking about renaming the /etc/X11/xorg.conf file to /etc/X11/xorg.conf.old not renaming the X log file. This way you could not have it loaded by X, but still have a copy of it in case it didn't help. You should not be giving all permissions to all users by running chmod 777 - so you should undo that.
But yes, I did mean copying the X log to somewhere safe and posting it here as you've done.
In any case, we can confirm it is the NVIDIA driver that is preventing your graphical environment from loading:
Code:
[ 47.173] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:16:0:0. Please
[ 47.173] (EE) NVIDIA(GPU-0): check your system's kernel log for additional error
[ 47.173] (EE) NVIDIA(GPU-0): messages and refer to Chapter 8: Common Problems in the
[ 47.173] (EE) NVIDIA(GPU-0): README for additional information.
[ 47.173] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
[ 47.173] (EE) NVIDIA(0): Failing initialization of X screen
...so now that we can confirm that, we need to see what's in the kernel log about it. So repeat the same process as you did when you got the last X log, boot into the console, and run the following command (as a normal user), and post the contents of the resulting file;
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Was that the kernel log when it failed to load the graphical environment?
Because for the same reason as I said about getting the X log when the graphical environment failed to load, it's also important to get the NVIDIA related parts of the kernel log when the graphical environment fails to load.
If the graphical environment did load successfully when that kernel log posted above was written, try to grab the NVIDIA related parts of the kernel log when the graphical environment fails to start, and then post it here.
Actually, I think I remember Blackmagicdesign themselves specifying what drivers to install that suit the program best. And it's the one I have installed.
I also tried disabling plymouth like you suggested. Wasn't the solution, unfortunately.
Those instructions make no mention that NVidia's own drivers are a requirement. It could be that their use is an obsolete legacy from the period when the only FOSS option was the reverse-engineered Nouveau X driver.
A newer technology alternative was introduced around 8 years ago, after KMS was well entrenched in the kernel. Its name is Modesetting. It became the upstream default, and included with it, in server 1.17.x around six years ago. It's automatically employed when the optional Nouveau DDX driver is not installed, and can be specifically configured via /etc/X11/xorg.con* in any event, as long as none of NVidia's proprietary software or supporting configuration modifications are present.
Knowledge of the Modesetting DDX is rather uncommon, as most distros' default installations include either every DDX package, or install at least one that is specific to the GPU present at installation time.
If Davinci Resolve doesn't require some particular feature(s) that the Modesetting DDX doesn't support, it may be worth trying.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.