Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] X won't start - modules failed to load
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Despot Despondency
Apprentice
Apprentice


Joined: 14 Mar 2009
Posts: 176

PostPosted: Mon Jan 11, 2010 7:18 pm    Post subject: [SOLVED] X won't start - modules failed to load Reply with quote

Hi,

I've just installed gentoo and now I'm trying to get Xorg-server running. I've managed to install xorg-server and, as pointed out in the docs, I've set up the policy using HAL instead of X -configure. Now when I run startx I get the following

Code:

(EE) Failed to load module "nv" (module does not exist, 0)
(EE) Failed to load module "vesa" (module does not exist, 0)
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) No drivers available

xinit: No such file or directory  (errno 2): unable to connect to X server
xinit: No such process (errno 3): server error


This is paraphrased slightly but I think these are the main points.

I compiled the kernel myself in this installation so I may have failed to install some of the modules.


Last edited by Despot Despondency on Mon Jan 11, 2010 9:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 753
Location: Glasgow, UK

PostPosted: Mon Jan 11, 2010 7:28 pm    Post subject: Reply with quote

Are you trying to use the nvidia-driver module? If so then you will still need a minimal xorg.conf to set it up.

For example this is mine:

Code:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"   
EndSection                                   

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "HSD HW191D"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7000M / nForce 610M"
EndSection

Section "Screen"

    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option          "NoLogo"    "true"

    SubSection     "Display"
        Depth       24
    EndSubSection

EndSection



Once you have xserver running you can get things set properly using nvidia-settings.

Hope this helps - if you're an ati user I just made a fool of myself :P

-Freestyling-
_________________
The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Jan 11, 2010 7:45 pm    Post subject: Reply with quote

Please post emerge --info
and output of lspci | grep VGA
and output of rc-status
Back to top
View user's profile Send private message
Despot Despondency
Apprentice
Apprentice


Joined: 14 Mar 2009
Posts: 176

PostPosted: Mon Jan 11, 2010 7:47 pm    Post subject: Reply with quote

Here's the result of emerge --info

Code:

Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-1.12.13
Timestamp of tree: Sun, 10 Jan 2010 13:00:21 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm hal iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl ssse3 sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


lspci | grep VGA

Code:

04:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce GTS 250] (rev a2)


and rc-status

Code:

Runlevel:  [36;01mdefault [0m
 hald                                                                [34;01m[  [32;01mstarted   [34;01m] [0m
 local                                                               [34;01m[  [32;01mstarted   [34;01m] [0m
 net.eth0                                                            [34;01m[  [32;01mstarted   [34;01m] [0m
 netmount                                                            [34;01m[  [32;01mstarted   [34;01m] [0m



I've installed nvidia-drivers now and ran Xorg -configure. Now when I run startx it says it has failed to load modules dri and dri2.

Here's my Xorg.conf file

Code:

Section "ServerLayout"
       Identifier     "X.org Configured"
       Screen      0  "Screen0" 0 0
       InputDevice    "Mouse0" "CorePointer"
       InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
       ModulePath   "/usr/lib64/xorg/modules"
       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/"
EndSection

Section "Module"
#       Load  "dri"
       Load  "dbe"
       Load  "record"
       Load  "extmod"
       Load  "glx"
#       Load  "dri2"
EndSection

Section "InputDevice"
       Identifier  "Keyboard0"
       Driver      "kbd"
EndSection

Section "InputDevice"
       Identifier  "Mouse0"
       Driver      "mouse"
       Option      "Protocol" "auto"
       Option      "Device" "/dev/input/mice"
       Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
       Identifier   "Monitor0"
       VendorName   "Monitor Vendor"
       ModelName    "Monitor Model"
EndSection

Section "Device"
       Identifier  "Card0"
       Driver      "nvidia"
       VendorName  "nVidia Corporation"
       BoardName   "G92 [GeForce GTS 250]"
       BusID       "PCI:4:0:0"
EndSection

Section "Screen"
       Identifier "Screen0"
       Device     "Card0"
       Monitor    "Monitor0"
       SubSection "Display"
               Viewport   0 0
               Depth     16
       EndSubSection
       SubSection "Display"
               Viewport   0 0
               Depth     24
       EndSubSection
EndSection

Back to top
View user's profile Send private message
ryan221
n00b
n00b


Joined: 07 Jan 2010
Posts: 28

PostPosted: Mon Jan 11, 2010 9:09 pm    Post subject: Reply with quote

if your using hald then you shouldn't need any of the input device section or the module section in xorg.conf.
That stuff will be autoloaded for you based on what it thinks you need

all you need is the device section pertaining to your videocard and your monitor/screen section
like what freestyling posted earlier

I would try startx without all of the extra stuff so hald can do it's job , then maybe it'll load the modules it needs properly.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Jan 11, 2010 9:18 pm    Post subject: Reply with quote

You need the dbus USE flag as well in your make.conf
then recompile emerge -uDN world
start dbus eselect rc start dbus

restart X without an xorg.conf
Back to top
View user's profile Send private message
Despot Despondency
Apprentice
Apprentice


Joined: 14 Mar 2009
Posts: 176

PostPosted: Mon Jan 11, 2010 9:20 pm    Post subject: Reply with quote

Thanks for the replies. Changed xorg.conf as you recommended and it all works fine now. Thanks for the help
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Jan 11, 2010 9:37 pm    Post subject: Reply with quote

Cool, :)

If you want to run KDE4 or Gnome, then consolekit is another good USE flag to put in /etc/make.conf

In fact, in the case you want a mostly desktop system, it might worth considering setting a desktop profile
Code:
eselect profile list
eselect profile set <number>
emerge -uDN world
eselect rc start consolekit


Whenever xorg-server is re-emerged, you need to re-emerge all the x11-drivers
Code:
emerge app-portage/portage-utils && emerge -1av $(qlist -IC x11-drivers)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum