Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to createX.org config [solved]
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
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Fri May 07, 2010 6:27 pm    Post subject: unable to createX.org config [solved] Reply with quote

I have installed a gentoo base system on my laptop.

Now I am trying to make X work. When I start the xserver without having any config file in /etx/X11 the servers starts but I have no mouse neither a keyboard. So I tried to create the configuration automatically by doing a
Code:
X -configure
. But this fails:

Code:
X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-21-generic x86_64
Current Operating System: Linux pluto 2.6.33.3 #5 SMP Mon May 3 10:27:48 CEST 2010 x86_64
Kernel command line: root=/dev/sdc3 rootdelay=15
Build Date: 06 May 2010  08:36:27AM
 
Current version of pixman: 0.17.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
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: Fri May  7 19:30:43 2010
(II) Loader magic: 0x7c2700
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
        X.Org Video Driver: 6.0
        X.Org XInput driver : 7.0
        X.Org Server Extension : 2.0
(--) using VT number 7

(--) PCI:*(0:0:2:0) 8086:27a2:1462:0341 Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller rev 3, Mem @ 0xfe080000/524288, 0xd0000000/268435456, 0xfe040000/262144, I/O @ 0x0000cc00/8
(--) PCI: (0:0:2:1) 8086:27a6:1462:0341 Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller rev 3, Mem @ 0x80000000/524288
List of video drivers:
        trident
        ati
        sis
        r128
        vmware
        nv
        mga
        mach64
        glint
        intel
        radeon
        tdfx
        neomagic
        openchrome
        savage
        vmwlegacy
        fbdev
        vesa
(II) LoadModule: "trident"
(II) Loading /usr/lib64/xorg/modules/drivers/trident_drv.so
(II) Module trident: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 1.3.3
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "ati"
(II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
(II) Module ati: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 6.12.6
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "sis"
(II) Loading /usr/lib64/xorg/modules/drivers/sis_drv.so
(II) Module sis: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 0.10.2
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "r128"
(II) Loading /usr/lib64/xorg/modules/drivers/r128_drv.so
(II) Module r128: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 6.8.1
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "vmware"
(II) Loading /usr/lib64/xorg/modules/drivers/vmware_drv.so
(II) Module vmware: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 11.0.1
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(--) vmware: X configured to use vmwgfx X driver assume who ever did that knows what they are doing
(--) vmware: Please ignore above "[drm] failed to load kernel  module "vmwgfx""
(II) vmware: Using vmwlegacy driver everything is fine.

Backtrace:
0: X (xorg_backtrace+0x28) [0x467f28]
1: X (0x400000+0x62aa5) [0x462aa5]
2: /lib/libpthread.so.0 (0x7fe08a948000+0xedf0) [0x7fe08a956df0]
3: /usr/lib64/xorg/modules/drivers/vmware_drv.so (0x7fe088873000+0xa98) [0x7fe088873a98]
4: X (0x400000+0xf9699) [0x4f9699]
5: X (0x400000+0xf9be4) [0x4f9be4]
6: X (xf86LoadModules+0xc3) [0x471cf3]
7: X (DoConfigure+0x64) [0x5034d4]
8: X (InitOutput+0xa1d) [0x47406d]
9: X (0x400000+0x250ba) [0x4250ba]
10: /lib/libc.so.6 (__libc_start_main+0xe6) [0x7fe089582a26]
11: X (0x400000+0x24e09) [0x424e09]
Segmentation fault at address (nil)

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting


Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.


The xserver tried to load all entries of the list shown but fails with loading vmwgfx. But I have to use the intel driver:

Code:
# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
...


I don't understand why the xserver tries to load all this drivers.

I configured the system as described in the handbook:
Code:
# emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-22-generic x86_64)
=================================================================
System uname: Linux-2.6.32-22-generic-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 07 May 2010 16:30:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @FREE @GPL-COMPATIBLE @OSI-APPROVED @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j3"
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="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr embedded emboss encode exif fam firefox flac fortran gcj gdbm gif gpm hal iconv ipv6 java jpeg kde lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3 qt3support qt4 readline reflection sdl session spell spl sql sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis webkit x264 xcb xml xorg xulrunner xv xvid 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" LINGUAS="de en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


What to do? Can someone give me a working xorg.conf that I can adapt to my system?
_________________
Please notice the back of this message.


Last edited by menschmeier on Sun May 09, 2010 1:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri May 07, 2010 7:31 pm    Post subject: Reply with quote

Why do you have all of those other video drivers installed ?
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Fri May 07, 2010 7:46 pm    Post subject: Reply with quote

This are the driver I have installed right now:

Code:
[I] x11-drivers/xf86-video-ati
     Available versions:  6.12.1-r1 6.12.5 6.12.6 ~6.12.7 ~6.13.0 {debug}
     Installed versions:  6.12.6(20:07:43 05/07/10)(-debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         ATI video driver

[I] x11-drivers/xf86-video-fbdev
     Available versions:  0.4.1 ~0.4.2 {debug}
     Installed versions:  0.4.1(20:08:02 05/07/10)(-debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         video driver for framebuffer device

[I] x11-drivers/xf86-video-glint
     Available versions:  1.2.4 {debug dri}
     Installed versions:  1.2.4(20:08:35 05/07/10)(dri -debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         GLINT/Permedia video driver

[I] x11-drivers/xf86-video-intel
     Available versions:  2.8.1 2.9.1 ~2.10.0-r1 ~2.11.0 {debug dri}
     Installed versions:  2.9.1(20:09:19 05/07/10)(dri -debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         X.Org driver for Intel cards

[I] x11-drivers/xf86-video-mach64
     Available versions:  6.8.2 {debug dri}
     Installed versions:  6.8.2(20:09:53 05/07/10)(dri -debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         ATI Mach64 video driver

[I] x11-drivers/xf86-video-mga
     Available versions:  1.4.11 {debug dri}
     Installed versions:  1.4.11(20:10:20 05/07/10)(dri -debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         Matrox video driver

[I] x11-drivers/xf86-video-neomagic
     Available versions:  1.2.4 {debug}
     Installed versions:  1.2.4(20:10:42 05/07/10)(-debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         Neomagic video driver

[I] x11-drivers/xf86-video-nv
     Available versions:  2.1.15 2.1.16 2.1.17 {debug}
     Installed versions:  2.1.17(20:11:03 05/07/10)(-debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         Nvidia video driver

[I] x11-drivers/xf86-video-openchrome
     Available versions:  0.2.904 ~0.2.904_p841 {debug dri}
     Installed versions:  0.2.904(20:11:37 05/07/10)(dri -debug)
     Homepage:            http://www.openchrome.org
     Description:         X.Org driver for VIA/S3G cards

[I] x11-drivers/xf86-video-r128
     Available versions:  6.8.1 {debug dri}
     Installed versions:  6.8.1(20:12:01 05/07/10)(dri -debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         ATI Rage128 video driver

[I] x11-drivers/xf86-video-savage
     Available versions:  2.3.1 {debug dri}
     Installed versions:  2.3.1(20:12:26 05/07/10)(dri -debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         S3 Savage video driver

[I] x11-drivers/xf86-video-sis
     Available versions:  0.10.2 {debug dri}
     Installed versions:  0.10.2(20:13:01 05/07/10)(dri -debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         SiS and XGI video driver

[I] x11-drivers/xf86-video-tdfx
     Available versions:  1.4.3 {debug dri}
     Installed versions:  1.4.3(20:13:23 05/07/10)(dri -debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         3Dfx video driver

[I] x11-drivers/xf86-video-trident
     Available versions:  1.3.3 {debug}
     Installed versions:  1.3.3(20:13:47 05/07/10)(-debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         Trident video driver

[I] x11-drivers/xf86-video-vesa
     Available versions:  2.2.1 2.3.0 {debug}
     Installed versions:  2.3.0(20:14:06 05/07/10)(-debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         Generic VESA video driver

[I] x11-drivers/xf86-video-vmware
     Available versions:  10.16.9 11.0.1 {debug}
     Installed versions:  11.0.1(20:14:24 05/07/10)(-debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         VMware SVGA video driver

_________________
Please notice the back of this message.
Back to top
View user's profile Send private message
efernandez2
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2006
Posts: 110

PostPosted: Fri May 07, 2010 9:09 pm    Post subject: Reply with quote

What does your /etc/make.conf file look like?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri May 07, 2010 9:47 pm    Post subject: Reply with quote

remove the unused drivers (and specially the vmware ones!) and rebuild them
Code:
emerge -C $(qlist -C -I x11-drivers/)

note: all x11 drivers will be gone, including keyboard...

once done rebuild them, for your case would be: emerge -1 xf86-input-evdev xf86-video-intel (because previous command also remove the keyboard/mouse and evdev ones)

might happen if you have built xorg-server while VIDEO_CARDS wasn't set or if you have decide to emerge all x11-drivers
it seems VIDEO_CARDS and INPUT_DEVICES are set in your make.conf properly now so i suppose they weren't set when you have emerge xorg-server before
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri May 07, 2010 9:49 pm    Post subject: Reply with quote

The question was why ?

As you may have notice, 'Xorg -configure' doesn't work that well, if somebody tries to
use incompatible drivers.

Remove redundant ones, try again.
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Sat May 08, 2010 4:58 pm    Post subject: Reply with quote

Yes indeed, when I built the first time the xorg server, VIDEO_CARDS wasn't defined in my /etc/make.conf.

So, I will remove all the xorg stuff and rebuild the xorg server and intel driver again.
_________________
Please notice the back of this message.
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Sun May 09, 2010 7:59 am    Post subject: Reply with quote

OK, no I was able to create the xorg.conf. But it is still incomplete. The screen is still black. I think it is because of the screen section, the monitor resolutions are missing.

Code:
# cat /root/xorg.conf.new
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  "dbe"
        Load  "glx"
        Load  "record"
        Load  "dri"
        Load  "extmod"
        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"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "CacheLines"                # <i>
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "NoDDC"                     # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "XvMCSurfaces"              # <i>
        #Option     "PageFlip"                  # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
        BusID       "PCI:0:2:0"
EndSection

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

_________________
Please notice the back of this message.
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Sun May 09, 2010 1:53 pm    Post subject: Reply with quote

Setting the monitor solutions solved my problem.

Thanks to all for your support.
_________________
Please notice the back of this message.
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