LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 12-17-2019, 02:26 PM   #1
gtribe
LQ Newbie
 
Registered: May 2014
Posts: 18

Rep: Reputation: Disabled
Black screen after login


After I've entered my password from the login screen I just get a black screen with no cursor. This happens to all the accounts on this computer. I don't have the root password so don't know if it happens with that account. I've tried ctrl+alt+f2 to f7 but nothing happens.

I'm able to SSH to the desktop and start the GUI by running "systemctl isolate graphical.target". I set graphical.target to be the default by running "systemctl set-default graphical.target" but after rebooting it goes back to black screen after logging in.

Running Centos 8.0-0.1905.0.9.
 
Old 12-17-2019, 02:47 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Please pastebin the complete diagnostic file Xorg.n.log (usually n=0) found in /var/log/ or in ~/.local/share/xorg/.

Is this a new installation on which this has always been a problem? If not, what happened last before the problem started?

Which DE is installed, Gnome? Plasma? XFCE? Mate? Cinnamon? Other?

What GPU(s) is/are you using?
Code:
lspci -nnk | egrep -iA4 'VGA|graphics'
If you have Optimus or other dual GPUs, special driver instructions need to be employed.
 
Old 12-17-2019, 03:05 PM   #3
gtribe
LQ Newbie
 
Registered: May 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
DE is gnome. Computer has a TITAN V GPU.

Code:
$ lspci -nnk | egrep -iA4 'VGA|graphics'
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GV100 [TITAN V] [10de:1d81] (rev a1)
	Subsystem: NVIDIA Corporation Device [10de:1218]
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10f2] (rev a1)
User tried adding a GPU to the computer couldn't get it to work so it was removed. Now after they login it takes them to the black screen.
 
Old 12-17-2019, 03:34 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Pending examination of Xorg.0.log, probably best to try with a fresh start, which might involve reinstalling the OS. If the removed GPU was another NVidia, then what probably didn't work was a failed install of a proprietary NVidia driver. If that's what happened, which is what it looks like (Kernel driver in use: nvidia), then the process attempted must be reversed, unless a new attempt will work with the current GPU. It's possible that simply removing /etc/X11/xorg.conf and/or content from /etc/X11/xorg.conf.d/ that addresses video configuration, so that's what I would try first, if any such files exist. The Titan V should work acceptably entirely on FOSS, which means X using either the modesetting DDX or the nouveau DDX, but only if any failed proprietary driver installation has been completely purged. Last step before reboot should be to rebuild the initrd.
 
Old 01-06-2020, 04:53 PM   #5
gtribe
LQ Newbie
 
Registered: May 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
mrmazada, thanks for the reply. Finally able to get back to this since we were on vacation.

Yes the other GPU they tried installing was a GeForce GTX 1650 didn't work so they put back the Titan V.

Quote:
It's possible that simply removing /etc/X11/xorg.conf and/or content from /etc/X11/xorg.conf.d/ that addresses video configuration
How would you recommend I remove xorg.conf file and xorg.conf.d? Also in xorg.conf.d I have 2 files 00-keyboard.conf and 10-nvidia.conf. Sorry for these questions but I'm a linux newbie.

This is the information in my xorg.conf file
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 440.33.01


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1650"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
 
Old 01-06-2020, 05:29 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by gtribe View Post
How would you recommend I remove xorg.conf file and xorg.conf.d? Also in xorg.conf.d I have 2 files 00-keyboard.conf and 10-nvidia.conf. Sorry for these questions but I'm a linux newbie.
00-keyboard.conf needs no touching.

One way is using a file manager in superuser mode to simply change the name of each slightly. Stuck without a GUI file manager, mc can be used. Mc is more than just a file manager, but well suited to the task of navigating a filesystem and editing the name of a file, and eases many operations in a GUI-free environment. Typically in mc shift-F4 initiates the task once the target file has been located and selected. Another way:
Code:
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
sudo mv /etc/X11/xorg.conf.d/10-nvidia.conf /etc/X11/xorg.conf.d/10-nvidia.conf.old
This preserves them in case getting them back is desired. To totally remove them use rm instead of mv, and leave off the last parameter of each line above.
 
1 members found this post helpful.
Old 01-06-2020, 06:08 PM   #7
gtribe
LQ Newbie
 
Registered: May 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
After renaming those 2 files do they automatically get recreated after a reboot or is there another command I need to run to get them created?
 
Old 01-06-2020, 06:25 PM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
They stay as they are until a configuration tool is used to generate new ones. Most users need neither of those files. Both are optional files created by the process of installing proprietary NVidia drivers, or using an NVidia configuration tool. Their existence blocks the automagic X configuration users of the FOSS modesetting DDX and nouveau DDX need to function.
 
1 members found this post helpful.
Old 01-07-2020, 10:10 AM   #9
gtribe
LQ Newbie
 
Registered: May 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
mrmazda, thanks for your help. Its working now! I'll mark this as solved.
 
Old 01-07-2020, 01:39 PM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Good to hear it!

I don't believe you wrote enough in your responses to make it clear exactly what solved the original problem. Was it simply the removal of those two config files? Web searchers will want to know.

Also, please checkoff whichever posts helped you to solve, either each "Yes" link, or each appropriate link under a "Rep:" link.
 
Old 01-07-2020, 03:07 PM   #11
gtribe
LQ Newbie
 
Registered: May 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
yes chaning the name of xorg.conf and 10-nvidia.conf fixed the problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] After 10 installation, login screen password fails. (rootuser works though) (login screen is not username password) studpenguin Debian 8 08-18-2019 12:32 PM
GUI login screen bounces me back to login screen after i enter passwd Waris Linux - Newbie 2 07-16-2017 12:12 PM
After installing linux mint, all I get is a black screen after login Jefffan24 Linux Mint 3 08-16-2009 09:25 PM
After installing linux mint, all I get is a black screen after login Jefffan24 Linux - Newbie 1 08-14-2009 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration