LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gentoo Random Hang On X Server (https://www.linuxquestions.org/questions/linux-software-2/gentoo-random-hang-on-x-server-722001/)

xXCanisLupusXx 04-27-2009 10:03 AM

Gentoo Random Hang On X Server
 
I spent a while today getting Gentoo to work, and everything was going fine, had fluxbox and everything running, but when I rebooted the X server hangs and crashes the system :S.
I used a genkernel twice to make sure it wasn't that.
I'm a noob to Gentoo :P

Thanks in advance

xorg.conf
Code:

Section "Module"
    Load        "dbe"      # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"  # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
#    Load        "type1"
#    Load        "freetype"
#    Load        "xtt"

# This loads the GLX module
#    Load      "glx"
# This loads the DRI module
#    Load      "dri"

EndSection
Section "Files"
    FontPath  "/usr/share/fonts/misc/"
#    FontPath  "/usr/share/fonts/TTF/"
#    FontPath  "/usr/share/fonts/OTF"
    FontPath  "/usr/share/fonts/Type1/"
    FontPath  "/usr/share/fonts/100dpi/"
    FontPath  "/usr/share/fonts/75dpi/"
#    FontPath  "/usr/lib/X11/fonts/local/"
#    FontPath  "/usr/lib/X11/fonts/misc/"
#    FontPath  "/usr/lib/X11/fonts/75dpi/:unscaled"
#    FontPath  "/usr/lib/X11/fonts/100dpi/:unscaled"
#    FontPath  "/usr/lib/X11/fonts/Type1/"
#    FontPath  "/usr/lib/X11/fonts/TrueType/"
#    FontPath  "/usr/lib/X11/fonts/freefont/"
#    FontPath  "/usr/lib/X11/fonts/75dpi/"
#    FontPath  "/usr/lib/X11/fonts/100dpi/"
#    ModulePath "/usr/lib/modules"
EndSection

Section "ServerFlags"
#    Option "NoTrapSignals"
#    Option "DontVTSwitch"
#    Option "DontZap"
#    Option "Dont Zoom"
#    Option "DisableVidModeExtension"
#    Option "AllowNonLocalXvidtune"
#    Option "DisableModInDev"
#    Option "AllowNonLocalModInDev"

EndSection

Section "InputDevice"
    Identifier    "Keyboard1"
    Driver    "kbd"
    Option "AutoRepeat" "500 30"

#    Option "XkbOptions"  "ctrl:swapcaps"
#    Option "XkbRules"    "xorg"
#    Option "XkbModel"    "pc105"
#    Option "XkbLayout"  "us"
#    Option "XkbVariant"  ""
#    Option "XkbOptions"  ""
#    Option "XkbDisable"

    Option "XkbRules"    "xorg"
    Option "XkbModel"    "pc104"
    Option "XkbLayout"    "gb"
EndSection

Section "InputDevice"
    Identifier    "Mouse1"
    Driver    "mouse"
    Option "Protocol"    "Auto"    # Auto detect
    Option "Device"      "/dev/input/mice"

#    Option "BaudRate"    "9600"
#    Option "SampleRate"    "150"

    Option "ZAxisMapping"  "4 5 6 7"
    Option "Emulate3Buttons"

#    Option "Emulate3Timeout"    "50"
#    Option "ChordMiddle"
EndSection

Section "Monitor"
    Identifier  "My Monitor"
    HorizSync  31.5 - 82.0
    VertRefresh 50-70
EndSection

Section "Device"
    Identifier    "Standard VGA"
    VendorName    "Unknown"
    BoardName    "Unknown"
    Driver    "fglrx"
EndSection

Section "Device"
    Identifier  "My Video Card"
    Driver      "fglrx"
    #VideoRam    256
    # Insert Clocks lines here if appropriate
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "My Video Card"
    Monitor    "My Monitor"
    DefaultDepth 24

    Subsection "Display"
        Depth      24
        Modes      "1280x960"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
  Identifier  "Simple Layout"
  Screen "Screen 1"
  InputDevice "Mouse1" "CorePointer"
  InputDevice "Keyboard1" "CoreKeyboard"
EndSection


malekmustaq 04-27-2009 10:33 AM

xXCanisLupusXx:

When X server fails to start usually it is a "permission" issue. Check your /home/username/.Xauthority file if you are permitted to execute it. Use ls -al, then chmod 777 ./Xauth or use chmod ugo+x ./Xauth. U must be a root to do it.

It is a hidden file. However, I am not sure where/how gentoo implements the X, I am not a gentoo user. Just try to make the .Xauth file executable to your user name.

Also, if you happen to have accidentally changed some lines in the xorg.conf you can easily restore a backup by copying it or renaming the backup /etc/X11/xorg.conf_some_numbers into xorg.conf, it is found in the same folder. X automatically backs up the conf file if some changes are made to it. Backup first before doing anything there.

Another thing, under Fluxbox you should enable the Save window configuration in the settings so that when you restart X will run according to your last settings.

hope it helps goodluck.

malekmustaq 04-27-2009 10:34 AM

double clicked

xXCanisLupusXx 04-27-2009 10:40 AM

Doesn't seem to be =[
I'v tryed removing the auth files and running as different users, still the same thing :S
The only thing I changed was that it installed dbus as a dependency :S


All times are GMT -5. The time now is 11:59 PM.