LinuxQuestions.org
Visit Jeremy's Blog.
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 05-05-2016, 10:05 AM   #1
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Rep: Reputation: Disabled
(EE) Problem parsing the config file


when I run startx I get an error like this. can you help me to fix it?

Code:
[   198.868]
X.Org X Server 1.18.1
Release Date: 2016-02-08
[   198.869] X Protocol Version 11, Revision 0
[   198.869] Build Operating System: Linux 4.4.0-21-generic x86_64
[   198.869] Current Operating System: Linux lfs 4.4.2 #1 SMP Thu Apr 28 18:18:51 UTC 2016 x86_64
[   198.869] Kernel command line: BOOT_IMAGE=/vmlinuz-4.4.2-lfs-7.9 root=/dev/sda1
[   198.869] Build Date: 05 May 2016  04:00:13PM
[   198.870]
[   198.870] Current version of pixman: 0.34.0
[   198.870]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   198.870] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   198.871] (==) Log file: "/var/log/Xorg.0.log", Time: Thu May  5 21:18:07 2016
[   198.872] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   198.872] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   198.872] Data incomplete in file /etc/X11/xorg.conf.d/xkb-defaults.conf
        Undefined Screen "Screen0" referenced by ServerLayout "DefaultLayout".
[   198.873] (EE) Problem parsing the config file
[   198.873] (EE) Error parsing the config file
[   198.873] (EE)
Fatal server error:
[   198.873] (EE) no screens found(EE)
[   198.873] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   198.874] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
my config

Code:
cat /etc/X11/xorg.conf.d/videocard-0.conf 
Section "Device"
    Identifier  "Videocard0"
    Driver      "radeon"
    VendorName  "Videocard vendor"
    BoardName   "ATI Radeon HD 6480G"
    Option      "NoAccel" "true"
EndSection
Code:
lspci | grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Sumo [Radeon HD 6480G]
 
Old 05-05-2016, 10:16 AM   #2
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
Try this guide:

http://www.linuxquestions.org/questi...ds-4175577962/

The DDX driver can be very finicky to get working. Make certain you have installed the Linux Firmware for your card.
 
Old 05-05-2016, 02:19 PM   #3
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Code:
[   198.872] Data incomplete in file /etc/X11/xorg.conf.d/xkb-defaults.conf
        Undefined Screen "Screen0" referenced by ServerLayout "DefaultLayout".
Remove or fix the following file
 
Old 05-06-2016, 12:04 AM   #4
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Krejzi View Post
Code:
[   198.872] Data incomplete in file /etc/X11/xorg.conf.d/xkb-defaults.conf
        Undefined Screen "Screen0" referenced by ServerLayout "DefaultLayout".
Remove or fix the following file
not work sir..
 
Old 05-06-2016, 12:09 AM   #5
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Try this guide:

http://www.linuxquestions.org/questi...ds-4175577962/

The DDX driver can be very finicky to get working. Make certain you have installed the Linux Firmware for your card.
What really like this sir?

Code:
cat /etc/X11/xorg.conf.d/11-modesetting.conf 
Section "Device"
        Identifier "radeon"
        Driver "modesetting"
        Option "SWCursor" "boolean"
        Option "kmsdev" "/dev/dri/card0"
        Option "ShadowFB" "boolean"
        Option "AccelMethod" "glamor"
        Option "PageFlip" "boolean"
        Option "ZaphodHeads" "DVI-I-1,DVI-I-2,HDMI-1"
EndSection
Code:
cat /etc/X11/xorg.conf.d/20-input.conf       
Section "InputDevice"
  Identifier "videocard0"
  Driver "evdev or libinput"
  Option "Device" "device path in /dev"
EndSection
 
1 members found this post helpful.
Old 05-06-2016, 01:52 AM   #6
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Rep: Reputation: 23
Quote:
Originally Posted by Jigsaw View Post
Code:
[   198.872] Data incomplete in file /etc/X11/xorg.conf.d/xkb-defaults.conf
        Undefined Screen "Screen0" referenced by ServerLayout "DefaultLayout".
Try to add something this in file /etc/X11/xorg.conf.d/xkb-defaults.conf
Code:
Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        SubSection "Display"
                Viewport   0 0
                Depth    32
                Modes "1366x768"
        EndSubSection
EndSection
For match your system ask Google about Screen Section
 
Old 05-06-2016, 01:59 AM   #7
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
Quote:
Originally Posted by Jigsaw View Post
What really like this sir?

Code:
cat /etc/X11/xorg.conf.d/11-modesetting.conf 
Section "Device"
        Identifier "radeon"
        Driver "modesetting"
        Option "SWCursor" "boolean"
        Option "kmsdev" "/dev/dri/card0"
        Option "ShadowFB" "boolean"
        Option "AccelMethod" "glamor"
        Option "PageFlip" "boolean"
        Option "ZaphodHeads" "DVI-I-1,DVI-I-2,HDMI-1"
EndSection
Code:
cat /etc/X11/xorg.conf.d/20-input.conf       
Section "InputDevice"
  Identifier "videocard0"
  Driver "evdev or libinput"
  Option "Device" "device path in /dev"
EndSection
Yes, but set SWCursor and ShadowFB both as "false", and PageFlip as "true" in your modesetting config, and set the Driver in your input config as "evdev", and all should work.

To be honest, you shouldn't need the input configuration at all. Eudev should setup the rules for your devices for input.

Last edited by ReaperX7; 05-06-2016 at 02:32 AM.
 
Old 05-06-2016, 04:56 AM   #8
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by anak_bawang View Post
Try to add something this in file /etc/X11/xorg.conf.d/xkb-defaults.conf
Code:
Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        SubSection "Display"
                Viewport   0 0
                Depth    32
                Modes "1366x768"
        EndSubSection
EndSection
For match your system ask Google about Screen Section
like this sir?

Code:
Section "InputClass"
    Identifier "XKB Defaults"
    MatchIsKeyboard "yes"
    Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
 
Old 05-06-2016, 05:01 AM   #9
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Yes, but set SWCursor and ShadowFB both as "false", and PageFlip as "true" in your modesetting config, and set the Driver in your input config as "evdev", and all should work.

To be honest, you shouldn't need the input configuration at all. Eudev should setup the rules for your devices for input.
correct me if i wrong sir..

Code:
cat /etc/X11/xorg.conf.d/11-modesetting.conf
Section "Device"
        Identifier "radeon"
        Driver "modesetting"
        Option "SWCursor" "false"
        Option "kmsdev" "/dev/dri/card0"
        Option "ShadowFB" "false"
        Option "AccelMethod" "glamor"
        Option "PageFlip" "true"
        Option "ZaphodHeads" "DVI-I-1,DVI-I-2,HDMI-1"
EndSection
Code:
cat /etc/X11/xorg.conf.d/20-input.conf
Section "InputDevice"
  Identifier "videocard0"
  Driver "evdev"
  Option "Device" "/dev"
EndSection
 
Old 05-06-2016, 05:28 AM   #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
Looks okay here. Try launching X with startx or any of the Window Managers and see if you have DRI acceleration when you run glxinfo.

The only thing I would do different is check and see what exact video ports your video card has before committing to this.

Last edited by ReaperX7; 05-06-2016 at 05:31 AM.
 
Old 05-06-2016, 05:53 AM   #11
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Looks okay here. Try launching X with startx or any of the Window Managers and see if you have DRI acceleration when you run glxinfo.

The only thing I would do different is check and see what exact video ports your video card has before committing to this.
i'm try glxinfo

Code:
root:/# glxinfo 
Error: unable to open display
startx still error

This is her logs

http://pastebin.com/KBh0PhnN

Last edited by Jigsaw; 05-06-2016 at 05:54 AM.
 
Old 05-06-2016, 06:41 AM   #12
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Number of created screens does not match number of detected devices.

Your drivers are not detecting any display. I don't think this is your X config. I think the problem is in your video driver. See if there are any messages in the system logs and check for updated drivers.
 
Old 05-07-2016, 01:06 AM   #13
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
Did you install the Linux firmware from the git repo, and did you compile the driver for the kernel as a module?

If he's using "modesetting" then EGL will handle the driver. It's meant to be a universal driver needing minimal configuration.
 
Old 05-07-2016, 07:29 AM   #14
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
Number of created screens does not match number of detected devices.

Your drivers are not detecting any display. I don't think this is your X config. I think the problem is in your video driver. See if there are any messages in the system logs and check for updated drivers.
What should I do sir, re-install xorg drivers?
 
Old 05-07-2016, 11:55 PM   #15
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. Try this. Delete EVERYTHING in /etc/X11/xorg.conf.d and keep only the 11-modesetting.conf file only and try to run startx.
 
1 members found this post helpful.
  


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
parsing config file with strtok in C strtok Programming 1 03-02-2015 12:03 PM
config file parsing in C/C++ kadissie Programming 12 08-26-2009 05:19 PM
(Debian) xorg.conf file, (EE) Problem parsing the config file unclerick94 Linux - Newbie 1 07-28-2009 02:27 PM
Error Parsing Config file for X chiefreborn SUSE / openSUSE 5 08-31-2005 06:30 PM

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

All times are GMT -5. The time now is 11:02 AM.

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