LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-06-2016, 04:17 AM   #1
RedCollarPanda
LQ Newbie
 
Registered: Feb 2016
Posts: 14

Rep: Reputation: Disabled
BLFS startx error


Good day! I compiled sources in


24. X Window System Environment

and as I know - that all compiled fine.
As I know, on modern systems I dont have to add any config files and so on. I just do "startx".

So I get error

Code:
root [ /etc/X11/xorg.conf.d ]# startx
xauth:  file /root/.serverauth.3500 does not exist


X.Org X Server 1.18.1
Release Date: 2016-02-08
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.6.0-rc1 x86_64 
Current Operating System: Linux nlebedevpc 4.6.0-rc1+ #1 SMP Wed Apr 6 02:28:18 MSK 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.6-eudyptula root=/dev/sdb3
Build Date: 05 April 2016  11:07:35PM
 
Current version of pixman: 0.34.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr  6 15:10:30 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) no screens found(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Any Ideas?


some information


Code:
root [ /etc/X11/xorg.conf.d ]# Xorg -configure

X.Org X Server 1.18.1
Release Date: 2016-02-08
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.6.0-rc1 x86_64 
Current Operating System: Linux nlebedevpc 4.6.0-rc1+ #1 SMP Wed Apr 6 02:28:18 MSK 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.6-eudyptula root=/dev/sdb3
Build Date: 05 April 2016  11:07:35PM
 
Current version of pixman: 0.34.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr  6 13:49:12 2016
List of video drivers:
	vmware
	nouveau
	radeon
	ati
	intel
	fbdev
	modesetting
No devices to configure.  Configuration failed.
(EE) Server terminated with error (2). Closing log file.

Code:
cat /proc/bus/pci/devices
contains nouveau

Kernel

Code:
root [ /etc/X11/xorg.conf.d ]# uname -a
Linux linuxfromscratch 4.6.0-rc1+ #1 SMP Wed Apr 6 02:28:18 MSK 2016 x86_64 GNU/Linux
Code:
 grep NOUV .config

CONFIG_DRM_NOUVEAU=y
CONFIG_NOUVEAU_DEBUG=5
CONFIG_NOUVEAU_DEBUG_DEFAULT=3
CONFIG_DRM_NOUVEAU_BACKLIGHT=y

For xclock

Code:
root [ /etc/X11/xorg.conf.d ]# xclock
Error: Can't open display:
root [ /etc/X11/xorg.conf.d/bad ]# export DISPLAY="127.0.0.1:10.0"
doesn't help...
 
Old 04-06-2016, 04:44 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,157

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
did you look at the sticky at the top of this forum?
 
Old 04-06-2016, 05:18 AM   #3
RedCollarPanda
LQ Newbie
 
Registered: Feb 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Oh... Sorry. Guess it is my bad. So.. Should I close this thread and create it in other from? Or someone can take it there?
 
Old 04-06-2016, 05:30 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,157

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
Don't close the thread just yet, if using the above sticky fixes your problem, just post what you did here, then close the thread, if you can't fix the problem with the above sticky leave this thread open and post what you tried from the above.
 
Old 04-06-2016, 06:10 AM   #5
RedCollarPanda
LQ Newbie
 
Registered: Feb 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Update :

added /etc/X11/xorg.conf.d/xorg.conf.new file with this :

Code:
Section "Device"
        Identifier "nvidia"
        Driver "nouveau"
        Option "AccelMethod" "glamor"
EndSection
when I do "Xorg -config xorg.conf.new"

Code:
Xorg -config xorg.conf.new       

X.Org X Server 1.18.1
Release Date: 2016-02-08
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.6.0-rc1 x86_64 
Current Operating System: Linux  4.6.0-rc1+ #1 SMP Wed Apr 6 02:28:18 MSK 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.6-eudyptula root=/dev/sdb3
Build Date: 05 April 2016  11:07:35PM
 
Current version of pixman: 0.34.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr  6 17:09:01 2016
(++) Using config file: "xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) no screens found(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
 
Old 04-06-2016, 06:12 AM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Modern or not, Xorg isn't perfect with working AutoDetect with various hardware, and never will be thanks to the vendors of graphics cards which never all seem to follow manufacturer specs. It does often require /etc/X11/xorg.conf to be properly configured to work.

A lot of people will all tout that you don't need this and that and autoconfig works wonders... Well blah blah blah... whatever.

Use configuration files always. It's just common sense.

You're not getting any screens because AutoDetect is trying to configure multiple DVI, VGA, HDMI, and DisplayPort adapters all at once as the main display, and that won't work .

Last edited by ReaperX7; 04-06-2016 at 06:15 AM.
 
Old 04-06-2016, 06:17 AM   #7
RedCollarPanda
LQ Newbie
 
Registered: Feb 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
So what do I do?

Maybe this will help?

Code:
root [ /sources/pciutils-3.4.1 ]# lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c4)
00:1c.6 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 7 (rev c4)
00:1c.7 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 8 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Z77 Express Chipset LPC Controller (rev 04)
00:1f.2 IDE interface: Intel Corporation 7 Series/C210 Series Chipset Family 4-port SATA Controller [IDE mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
00:1f.5 IDE interface: Intel Corporation 7 Series/C210 Series Chipset Family 2-port SATA Controller [IDE mode] (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 770] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
03:00.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 41)
05:00.0 Ethernet controller: Qualcomm Atheros AR8161 Gigabit Ethernet (rev 10)
06:00.0 USB controller: Etron Technology, Inc. EJ168 USB 3.0 Host Controller (rev 01)
 
Old 04-06-2016, 09:40 AM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
First login as root to setup X properly.

Next, run the command in the Xorg setup and configuration stickied topic, check the xorg.conf.new file in ~/ and edit it to fit your driver needs. It should setup for driver "nouveau" and no additional options.

Do not enable "glamor" acceleration, as it still doesn't work completely. Use "exa" instead.

Check the Screens section at the bottom next and only setup one screen if multiples exist.

Make sure you also have installed the drivers for "fbdev" as well. Driver "modesetting" should have been installed with xorg-xserver.

Now copy the xorg.conf.new as xorg.conf to /etc/X11 and try startx again.

If it still doesn't work then let me know.
 
Old 04-06-2016, 09:44 AM   #9
RedCollarPanda
LQ Newbie
 
Registered: Feb 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
As I mentioned :

Code:
Xorg -configure
Code:
X.Org X Server 1.18.1
Release Date: 2016-02-08
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.6.0-rc1 x86_64 
Current Operating System: Linux nlebedevpc 4.6.0-rc1+ #1 SMP Wed Apr 6 02:28:18 MSK 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.6-eudyptula root=/dev/sdb3
Build Date: 05 April 2016  11:07:35PM
 
Current version of pixman: 0.34.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr  6 20:42:19 2016
List of video drivers:
	vmware
	nouveau
	radeon
	ati
	intel
	fbdev
	modesetting
No devices to configure.  Configuration failed.
(EE) Server terminated with error (2). Closing log file.
No xorg.conf.new file was created.

Is there any chance I did something wrong when I was building all from source? Should I rebuild whole chapter?
 
Old 04-06-2016, 06:44 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
How did you build your kernel entirely?
 
Old 04-07-2016, 01:43 AM   #11
RedCollarPanda
LQ Newbie
 
Registered: Feb 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
You need .config file?
 
Old 04-07-2016, 04:26 PM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
No. Did you use a preexisting kernel or your own?
 
Old 04-07-2016, 04:31 PM   #13
RedCollarPanda
LQ Newbie
 
Registered: Feb 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
My own. I took latest kernel from Linus,'s tree.
 
Old 04-08-2016, 03:41 AM   #14
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You might be missing some key support drivers and support vectors in your kernel.

Try this:

Grab the linux-4.6rc1 sources at www.kernel.org and then grab the config for Slackware's huge kernel here:

http://mirrors.slackware.com/slackwa...6-rc1-configs/

and rebuild your kernel with this, if a newer kernel is available make sure you run

Code:
make oldconfig
to update any settings left vacant.

Then rebuild and try to newer kernel.
 
Old 04-08-2016, 03:58 AM   #15
RedCollarPanda
LQ Newbie
 
Registered: Feb 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you, I will try that.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GNOME is not running with startx command in BLFS jaassi Linux From Scratch 5 10-17-2014 03:01 PM
startx doen't get into GUI in BLFS Aniz Linux - Newbie 5 03-03-2014 07:38 AM
[SOLVED] BLFS problem running startx phoenixfusion Linux From Scratch 5 07-15-2012 05:15 AM
blfs xfree startx error alexastro Linux From Scratch 3 08-15-2004 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:19 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