LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2009, 10:03 AM   #1
xXCanisLupusXx
LQ Newbie
 
Registered: Jan 2009
Location: The Hell That Is England
Distribution: Ubuntu Server, OpenSolaris
Posts: 23

Rep: Reputation: 16
Unhappy 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
 
Old 04-27-2009, 10:33 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
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.
 
Old 04-27-2009, 10:34 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
double clicked

Last edited by malekmustaq; 04-27-2009 at 10:36 AM. Reason: double posted reply. must delete the second. sorry.
 
Old 04-27-2009, 10:40 AM   #4
xXCanisLupusXx
LQ Newbie
 
Registered: Jan 2009
Location: The Hell That Is England
Distribution: Ubuntu Server, OpenSolaris
Posts: 23

Original Poster
Rep: Reputation: 16
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Gentoo 2.6.19-r2 hang at boot Spherical Linux - Distributions 7 12-24-2006 04:04 PM
gentoo shutdown hang Melz_Dark_Angel Linux - Software 1 08-19-2006 06:56 PM
Suse 10 random hang on sony vaio Habu SUSE / openSUSE 3 12-31-2005 08:48 PM
Gentoo/Random lockups eno_on Linux - General 2 12-24-2004 09:11 AM
Random System Reboot/Hang banerji Linux - Hardware 1 03-22-2004 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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