LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble getting X to run (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-getting-x-to-run-764282/)

RandomZero 10-24-2009 10:19 PM

Trouble getting X to run
 
xorg.conf =
Code:

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"    "us"
EndSection

Seems a little limited..

Anyway, my problem is whenever I boot the PC, the monitor gets "Out of Scope" error.

When I try to startx in console I get:
X: warning; process set to priority -1 instead of requested priority 0

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.

Xorg.0.log has this at the end:
Code:

AUDIT: Sat Oct 24 23:11:10 2009: 2913 X: client 4 rejected from local host (uid 0)
  Auth name: MIT-MAGIC-COOKIE-1 ID: -1

So, what did I do wrong here? :(

Drakeo 10-24-2009 11:22 PM

Quote:

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
as root login then type cd /tmp then type rm XO-lock
now reboot. for some reason you have a stale lock file and the sever will only run one instance of Xorg.

Wim Sturkenboom 10-25-2009 12:46 AM

Your X server is already running. Therefore startx does not work as it attempts to start a second session on display 0. It's not a stale lock!

However, your HW is not detected correctly and the system sets a horizontal refresh rate (an resolution/verticalrefresh combination) that's too high for your monitor.

You can try to change the resolution using <ctrl><alt>+ and <ctrl><alt>-; press the combination, wait a second or so, press it again etc till you get a screen. This will 'force' X to cycle through the known resolutions.

You can build your own xorg.conf, but I don't know how. It looks like you have some knowledge so I will post mine and you might be able to modify it to your needs.


PS The fact that xorg.conf is no longer (fully) populated sucks big time; sorry for the choice of words

Wim Sturkenboom 10-25-2009 01:15 AM

Note in advance:
if you don't know what your doing, don't use it

This comes from my Ubuntu 6.06 box (upgraded to 8.04). The sections relevant for video are monitor, device and screen. I had a CRT that was not recognized properly and some settings are still in here; I commented them out when I got a LCD screen.
Code:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Mon Oct 16 22:13:07 PDT 2006

# /etc/X11/xorg.conf (xorg 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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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 "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
    InputDevice    "stylus" "SendCoreEvents"
    InputDevice    "cursor" "SendCoreEvents"
    InputDevice    "eraser" "SendCoreEvents"
EndSection

Section "Files"

        # path to defoma fonts
    FontPath        "/usr/share/X11/fonts/misc"
    FontPath        "/usr/share/X11/fonts/cyrillic"
    FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/share/X11/fonts/Type1"
    FontPath        "/usr/share/X11/fonts/100dpi"
    FontPath        "/usr/share/X11/fonts/75dpi"
    FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load          "i2c"
    Load          "bitmap"
    Load          "ddc"
    Load          "extmod"
    Load          "freetype"
    Load          "glx"
    Load          "int10"
    Load          "vbe"
EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules" "xorg"
    Option        "XkbModel" "pc104"
    Option        "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device" "/dev/input/mice"
    Option        "Protocol" "ExplorerPS/2"
    Option        "ZAxisMapping" "4 5"
    Option        "Emulate3Buttons" "true"
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
    Identifier    "stylus"
    Driver        "wacom"
    Option        "Device" "/dev/wacom"          # Change to
    Option        "Type" "stylus"
    Option        "ForceDevice" "ISDV4"              # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
    Identifier    "eraser"
    Driver        "wacom"
    Option        "Device" "/dev/wacom"          # Change to
    Option        "Type" "eraser"
    Option        "ForceDevice" "ISDV4"              # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
    Identifier    "cursor"
    Driver        "wacom"
    Option        "Device" "/dev/wacom"          # Change to
    Option        "Type" "cursor"
    Option        "ForceDevice" "ISDV4"              # Tablet PC ONLY
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
#    WimS: removed for LCD screen
#    HorizSync      27.0 - 96.0
#    VertRefresh    50.0 - 160.0
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "NVIDIA Corporation NV44 [GeForce 6200 TurboCache]"
    Driver        "nvidia"
#    WimS: removed for LCD screen
#    Option        "UseEdidFreqs" "False"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "NVIDIA Corporation NV44 [GeForce 6200 TurboCache]"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection    "Display"
        Depth      1
        Modes      "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection    "Display"
        Depth      4
        Modes      "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection    "Display"
        Depth      8
        Modes      "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection    "Display"
        Depth      15
        Modes      "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection    "Display"
        Depth      16
        Modes      "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection    "Display"
        Depth      24
        Modes      "1920x1200" "1680x1050" "1440x900" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
EndSection


RandomZero 10-25-2009 01:44 AM

lol I totally don't know what I'm doing, but I managed to get it to work!

I think the problem was I was indeed missing a bunch of sections in xorg.conf. I added in a Section "Screen" and that seems to fix it. Probably gonna update it with some more like you have and see how that goes!

Wim Sturkenboom 10-25-2009 02:56 AM

Great. Enjoy playing with it.

As the issue seems to be solved, you can you mark your thread as solved (using the thread tools just above the first post).

And if you don't mind, can you post the contents of your screen section (as reference for others) that have the same problem ?

RandomZero 10-25-2009 10:46 AM

Sure thing!

xorg.conf currently sits at:
Code:

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"    "us"
EndSection

Section "InputDevice"

        Identifier      "Configured Mouse"
        Driver          "mouse"
EndSection

Section "Device"
        Identifier      "Configured Video Device"
        Driver          "vesa"
        Option          "UseFBDev"              "true"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor        "Configured Monitor"
        DefaultDepth    16
        SubSection "Display"
                Depth          16
                Modes          "1024x768"
        EndSubSection
EndSection

Although I'm just about to add the screen section you posted to see how well that works. EDIT: After adding the additional info, nothing changed :( Resolution is stuck at 1024x768.
What really matters though, is the SubSection "Display" area. I ran the dpkg-reconfigure -phigh xserver-xorg command, and it erased all that and I got the "Out of Range" error when I reloaded X

FYI, I'm using an onboard VGA output. Motherboard is DG43NB, as that apparently seems to matter!


All times are GMT -5. The time now is 07:45 PM.