View previous topic :: View next topic |
Author |
Message |
roboto Apprentice
Joined: 15 Feb 2017 Posts: 156 Location: My IP address.
|
Posted: Sat Apr 01, 2017 4:18 pm Post subject: [SOLVED] X fails to start up. |
|
|
Hello, I have installed Gentoo on a laptop with no problems. I have KDE and Xorg installed on the laptop. I was doing the ~/.xinitrc method to start KDE.
In my ~/.xinitrc file:
exec startkde
(I'm doing this through Links now, so I'm not going to waste my time to do the fancy code format.)
When I typed startx, this appeared:
Using config directory: "/etc/X11/xorg.conf.d"
Using system config directory: "/usr/share/X11/xorg.conf.d
Fatal server error:
No screens found(EE)
Please consult the X.Org foundation support at:
http://wiki.x.org for help.
Server terminated with error (1). Closing log file.
Another suspicious activity I'm seeing is when I selected the KDE profile during the installation, I typed emerge -avDuN @world. It installed Wayland because it was a required dependency for KWin. I have never used Wayland, and I think it is conflicting with Xorg. I have consulted https://wiki.x.org as the output said, and I was told to type X -configure. So I did that and here is the output:
List of video drivers:
radeon
modesetting
ati (I don't use ati, just radeon.)
Using config file: "/root/xorg.conf.new"
Using config directory: "/etc/X11/xorg.conf.d"
Using system config directory:
"/usr/share/X11/xorg.conf.d"
Backtrace:
0: X (xorg_backtrace+0x4f)
1: X (0x400000+01866d9)
2: /lib64/libpthread.so.0 (0x7fb2f64e5000+0x10f00)
Segmentation fault at address 0x0
Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting. (EE)
Server terminated with signal 1. Closing log file. Aborting.
I will show you /var/log/Xorg.0.log later.
In my make.conf file:
VIDEO_CARDS="radeon"
INPUT_DEVICES="synaptics evdev"
Yes, I have synaptics and evdev installed.
Any answer will help.
P.S. Don't ask for any long post except for the log file because I'm doing this through the tty and have no copy and paste. _________________ Answers please.
The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote: | Dude. Minus 30 credibility points. |
Yep
Last edited by roboto on Sun Apr 02, 2017 12:13 am; edited 3 times in total |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54097 Location: 56N 3W
|
Posted: Sat Apr 01, 2017 6:13 pm Post subject: |
|
|
roboto,
, so you can help us to help you.
Use wgetpaste to pastebin your dmesg and /var/log/Xorg.0.log
We may want your lspci output and kernel .config file later.
wgetpaste can do all of that.
If you install and start gpm, you can have copy and paste in the console too. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
roboto Apprentice
Joined: 15 Feb 2017 Posts: 156 Location: My IP address.
|
Posted: Sat Apr 01, 2017 7:18 pm Post subject: |
|
|
I selected a generic desktop profile and updated @world. I removed ~/.xinitrc. startx still failed with the same output. I put ~/.xinitrc with exec startkde back; nevertheless, startx still fails.
Xorg log: https://paste.pound-python.org/show/325c3jTALPUCxj7UV8s0/
dmesg: https://paste.pound-python.org/show/9HblQuvFDa3id59BOJQV/
Fixed the URLs -- Neddyseagoon _________________ Answers please.
The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote: | Dude. Minus 30 credibility points. |
Yep |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54097 Location: 56N 3W
|
Posted: Sat Apr 01, 2017 7:54 pm Post subject: |
|
|
roboto,
/var/log/Xorg.0.log: | [ 14616.506] (EE) Screen 0 deleted because of no matching config section.
[ 14616.506] (II) UnloadModule: "modesetting"
[ 14616.506] (EE) Device(s) detected, but none match those in the config file. |
I suspect your kernel has an ATI framebuffer driver enabled, so the KMS driver can't get control of the chipset.
Your dmesg post is a binary.
or
The latter form needs to be quoted if the command has parameters but has the advantage it posts stdout and stderr.
Please repost dmesg and your kernel .config file. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
roboto Apprentice
Joined: 15 Feb 2017 Posts: 156 Location: My IP address.
|
|
Back to top |
|
|
roboto Apprentice
Joined: 15 Feb 2017 Posts: 156 Location: My IP address.
|
Posted: Sat Apr 01, 2017 8:34 pm Post subject: |
|
|
I searched through my .config and I don't see any ATI framebuffer. I do see some ATI Radeon options enabled because Radeon is *the* driver for my GPU.
I also see VGA/VBE/EFI as a generic framebuffer, should I disable it? I don't use VGA or UEFI.
Also please clarify on the ATI framebuffer blocking the KMS. _________________ Answers please.
The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote: | Dude. Minus 30 credibility points. |
Yep
Last edited by roboto on Sat Apr 01, 2017 8:56 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54097 Location: 56N 3W
|
Posted: Sat Apr 01, 2017 8:55 pm Post subject: |
|
|
roboto,
You have some newish hardware that needs theAMDGPU driver.
As it needs microcode, the easiest way to set it up is as a module. That saves building the microcode into the kernel binary.
Your kernel framebuffer settings are correct.
As an added bonus
dmesg: | [ 7.580361] r8169 0000:01:00.0: Direct firmware load for rtl_nic/rtl8106e-1.fw failed with error -2
[ 7.580369] r8169 0000:01:00.0 enp1s0: unable to load firmware patch rtl_nic/rtl8106e-1.fw (-2) |
will go away when you install linux-firmware.
There are four ways you can set up kernel drivers that need firmware but only two of them work.
The driver and its firmware must both be in the same place.
That's both on the root filesystem or both built into the kernel binary. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
roboto Apprentice
Joined: 15 Feb 2017 Posts: 156 Location: My IP address.
|
Posted: Sat Apr 01, 2017 9:49 pm Post subject: |
|
|
I rebuilt the kernel with amdgpu as a module, and my chipset was mentioned in the wiki page you suggested I did modprobe on it, but it couldn't find it in the modules directory. It booted properly, but when I got into the tty, there was no video! I don't feel like getting a reinstallation of Gentoo on this laptop, so I will get another distrobution on it.
But thanks anyways.
P.S. I still have Gentoo on my other computer--the one I am using to type this post. _________________ Answers please.
The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote: | Dude. Minus 30 credibility points. |
Yep |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8933
|
Posted: Sat Apr 01, 2017 9:57 pm Post subject: |
|
|
Reinstallation is never, ever, necessary.
If you only did the kernel stuff, you probably missed out on enabling VIDEO_DRIVERS=amdgpu for xorg-drivers. |
|
Back to top |
|
|
roboto Apprentice
Joined: 15 Feb 2017 Posts: 156 Location: My IP address.
|
Posted: Sat Apr 01, 2017 10:06 pm Post subject: |
|
|
Hmmm... I see...
I will be more careful with the kernel because of this.
But then... I can't see what I'm doing on the kernel configuration without any video! :( _________________ Answers please.
The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote: | Dude. Minus 30 credibility points. |
Yep |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8933
|
Posted: Sat Apr 01, 2017 10:47 pm Post subject: |
|
|
You got a tty, so you can do any configuration you like. Or not? If not, you can always get back to the install media you used, boot with that, and chroot into your system to fix it. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
roboto Apprentice
Joined: 15 Feb 2017 Posts: 156 Location: My IP address.
|
Posted: Sun Apr 02, 2017 12:11 am Post subject: |
|
|
I chrooted into my laptop and changed VIDEO_DRIVERS="amdgpu". The tty showed up. Now when I typed startx, it worked!
Now, thanks to you all, for the help, I have KDE with X.
Jaglover... you said you use SSH to fix this... how do you do that? _________________ Answers please.
The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote: | Dude. Minus 30 credibility points. |
Yep |
|
Back to top |
|
|
fcl Tux's lil' helper
Joined: 31 Dec 2016 Posts: 77
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54097 Location: 56N 3W
|
Posted: Sun Apr 02, 2017 10:02 am Post subject: |
|
|
roboto,
For an install, you set the root passwd, since you need to know it, before you chroot.
Edit the /etc/ssd/sshd_config to allow root logins
Start sshd outside the chroot.
Make a note of the IP address the system has.
Go to another system and run ssh root@<IP_Addr>
Log in using the passwd you set above. You are now connected via ssh and outside the chroot.
When you chroot into the stage3 rinse and repeat.
Set up networking (that may mean doing nothing)
Add sshd to the default runlevel.
When you reboot, if everything works but your console has black text on a black background, (it happens). the boot will proceed normally, you just can't see it.
sshd is listening for you to log in to fix it.
As soon as you make a normal user, add them to the wheel group and revert the permitrootlogins in sshd_config.
Crackers need two pieces of information to break in. Everyone has a user called root, so don't give them this information.
Restart sshd so it rereads its config. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|