LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Xserver won't open (http://www.linuxquestions.org/questions/linux-software-2/xserver-wont-open-648803/)

brgsousa 06-12-2008 09:08 AM

Xserver won't open
 
Hi,
I am trying to start the Xserver:
Code:

# startx
But I get an error:
Code:

X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: UNKNOWN
Current Operating System: Linux vaidoso 2.6.18-6-686 #1 SMP Fri Jun 6 22:22:11 UTC 2008 i686
Build Date: 24 January 2008
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
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: Thu Jun 12 11:04:13 2008
(==) Using config file: "/etc/X11/xorg.conf"
Data incomplete in file /etc/X11/xorg.conf
        Undefined Device "(null)" referenced by Screen "Default Screen".
(EE) Problem parsing the config file
(EE) Error parsing the config file

Fatal server error:
no screens found
XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"
      after 0 requests (0 known processed) with 0 events remaining.

/etc/X11/xorg.conf:
Code:

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#  sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "abnt2"
        Option          "XkbLayout"    "br"
        Option          "XkbVariant"    "abnt2"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "Emulate3Buttons"      "true"
EndSection

Section "Device"
        Identifier      "Configured Video Device"
        Driver          "i740"
        BusID          "PCI:0:2:0"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor        "Configured Monitor"
EndSection

What could it be?

Thanks

garydale 06-12-2008 11:51 AM

save your xorg.conf then build a new one. What you've got is incomplete and therefore not working.

Specifically it's looking for "Default Screen" to be defined. Since it's not, the program can't start properly.

Use the xorg configuration program to build the xorg.conf - it's usually easier than doing it by hand. I forget what it's called, but under Debian or one of its derivatives, dpkg-reconfigure xserver-xorg will do it.

brgsousa 06-13-2008 08:27 AM

I've already tried to reconfigure it entering
Code:

dpkg-reconfigure xserver-xorg
I got it working editing the file manually:
Code:

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "abnt2"
        Option          "XkbLayout"    "br"
        Option          "XkbVariant"    "abnt2"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "Emulate3Buttons"      "true"
EndSection

Section "Device"
        Identifier      "Configured Video Device"
        Driver          "i810"
        BusID          "PCI:0:2:0"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor        "Configured Monitor"
        Device          "Configured Video Device"
        DefaultDepth  8
        SubSection  "Display"
                Depth 8
                Modes  "1024x768" "800x600" "640x480"
        EndSubSection
EndSection



All times are GMT -5. The time now is 01:19 PM.