LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1467|回复: 12

xorg-server 安装后,X无法启动

[复制链接]
发表于 2010-5-5 14:37:08 | 显示全部楼层 |阅读模式
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)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
05:07.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
05:09.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
05:09.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
05:09.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)

emerge --info内容如下:

Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.33-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.33-gentoo-r1-i686-Intel-R-_Celeron-R-_M_CPU_420_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 02 May 2010 01:45:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r3, 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="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -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"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN zh"
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.asia.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi alsa ao bash-completion berkdb bidi bluetooth branding bzip2 cairo calendar cdr cjk cli consolekit cracklib crypt cscope cups cxx dbus dri dts dvd dvdr emacs emboss encode exif extras fam ffmpeg firefox flac fontconfig fortran gdbm gif gpm gtk hal iconv imagemagick ipv6 jpeg laptop lcms ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mplayer msn mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 rdesktop readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vim-syntax vorbis win32codecs x264 x86 xcb xemacs xinerama xml xorg xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel fbdev glint mach64 mga nv r128 radeon tdfx vesa via trident" 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, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY




Xorg.0.log内容如下:

[   216.217]
X.Org X Server 1.8.0
Release Date: 2010-04-02
[   216.217] X Protocol Version 11, Revision 0
[   216.217] Build Operating System: Linux 2.6.33-gentoo-r1 i686 Gentoo
[   216.217] Current Operating System: Linux lovegm 2.6.33-gentoo-r1 #1 SMP PREEMPT Wed May 5 11:49:57 CST 2010 i686
[   216.217] Kernel command line: root=/dev/ram0 init=/linuxrc real_root=/dev/sda10 video=intelfb,mode=1024x768-32@85
[   216.217] Build Date: 05 May 2010  01:24:18PM
[   216.217]  
[   216.217] Current version of pixman: 0.18.0
[   216.217]         Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   216.217] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   216.217] (==) Log file: "/var/log/Xorg.0.log", Time: Wed May  5 14:59:16 2010
[   216.257] (++) Using config file: "xorg.conf.new"
[   216.257] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   216.317] (==) ServerLayout "X.org Configured"
[   216.317] (**) |-->Screen "Screen0" (0)
[   216.317] (**) |   |-->Monitor "Monitor0"
[   216.317] (**) |   |-->Device "Card0"
[   216.317] (**) |-->Input Device "Mouse0"
[   216.317] (**) |-->Input Device "Keyboard0"
[   216.317] (==) Automatically adding devices
[   216.317] (==) Automatically enabling devices
[   216.357] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[   216.357]         Entry deleted from font path.
[   216.357] (**) FontPath set to:
       
[   216.357] (**) ModulePath set to "/usr/lib/xorg/modules"
[   216.357] (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   216.357] (WW) Disabling Mouse0
[   216.357] (WW) Disabling Keyboard0
[   216.357] (II) Loader magic: 0x81e9be0
[   216.357] (II) Module ABI versions:
[   216.357]         X.Org ANSI C Emulation: 0.4
[   216.357]         X.Org Video Driver: 7.0
[   216.357]         X.Org XInput driver : 9.0
[   216.357]         X.Org Server Extension : 3.0
[   216.607] (--) PCI:*(0:0:2:0) 8086:27a2:17aa:2075 Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller rev 3, Mem @ 0xd0100000/524288, 0xc0000000/268435456, 0xd0200000/262144, I/O @ 0x00001800/8
[   216.607] (--) PCI: (0:0:2:1) 8086:27a6:17aa:2075 Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller rev 3, Mem @ 0xd0180000/524288
[   216.607] (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
[   216.607] (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
[   216.607] (II) "glx" will be loaded by default.
[   216.607] (II) "record" will be loaded. This was enabled by default and also specified in the config file.
[   216.607] (II) "dri" will be loaded by default.
[   216.607] (II) "dri2" will be loaded by default.
[   216.607] (II) LoadModule: "extmod"
[   216.657] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[   216.667] (II) Module extmod: vendor="X.Org Foundation"
[   216.667]         compiled for 1.8.0, module version = 1.0.0
[   216.667]         Module class: X.Org Server Extension
[   216.667]         ABI class: X.Org Server Extension, version 3.0
[   216.667] (II) Loading extension MIT-SCREEN-SAVER
[   216.667] (II) Loading extension XFree86-VidModeExtension
[   216.667] (II) Loading extension XFree86-DGA
[   216.667] (II) Loading extension DPMS
[   216.667] (II) Loading extension XVideo
[   216.667] (II) Loading extension XVideo-MotionCompensation
[   216.667] (II) Loading extension X-Resource
[   216.667] (II) LoadModule: "dbe"
[   216.667] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[   216.677] (II) Module dbe: vendor="X.Org Foundation"
[   216.677]         compiled for 1.8.0, module version = 1.0.0
[   216.677]         Module class: X.Org Server Extension
[   216.677]         ABI class: X.Org Server Extension, version 3.0
[   216.677] (II) Loading extension DOUBLE-BUFFER
[   216.677] (II) LoadModule: "record"
[   216.677] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[   216.697] (II) Module record: vendor="X.Org Foundation"
[   216.697]         compiled for 1.8.0, module version = 1.13.0
[   216.697]         Module class: X.Org Server Extension
[   216.697]         ABI class: X.Org Server Extension, version 3.0
[   216.697] (II) Loading extension RECORD
[   216.697] (II) LoadModule: "glx"
[   216.827] (II) Loading /usr/lib/xorg/modules/libglx.so
[   216.857] (II) Module glx: vendor="X.Org Foundation"
[   216.857]         compiled for 1.8.0, module version = 1.0.0
[   216.857]         ABI class: X.Org Server Extension, version 3.0
[   216.857] (==) AIGLX enabled
[   216.857] (II) Loading extension GLX
[   216.857] (II) LoadModule: "dri"
[   216.857] (II) Loading /usr/lib/xorg/modules/libdri.so
[   216.887] (II) Module dri: vendor="X.Org Foundation"
[   216.887]         compiled for 1.8.0, module version = 1.0.0
[   216.887]         ABI class: X.Org Server Extension, version 3.0
[   216.887] (II) Loading extension XFree86-DRI
[   216.887] (II) LoadModule: "dri2"
[   216.887] (II) Loading /usr/lib/xorg/modules/libdri2.so
[   216.897] (II) Module dri2: vendor="X.Org Foundation"
[   216.897]         compiled for 1.8.0, module version = 1.2.0
[   216.897]         ABI class: X.Org Server Extension, version 3.0
[   216.897] (II) Loading extension DRI2
[   216.897] (II) LoadModule: "intel"
[   216.897] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[   217.067] (II) Module intel: vendor="X.Org Foundation"
[   217.067]         compiled for 1.8.0, module version = 2.11.0
[   217.067]         Module class: X.Org Video Driver
[   217.067]         ABI class: X.Org Video Driver, version 7.0
[   217.067] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
        i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G,
        E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
        965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
        4 Series, G45/G43, Q45/Q43, G41, B43, Clarkdale, Arrandale
[   217.067] (--) using VT number 7

[   217.067] (II) Primary Device is: PCI 00@00:02:0
[   217.077] (EE) intel(0): No kernel modesetting driver detected.
[   217.077] (II) UnloadModule: "intel"
[   217.077] (EE) Screen(s) found, but none have a usable configuration.
[   217.077]
Fatal server error:
[   217.077] no screens found
[   217.077]
Please consult the The X.Org Foundation support
         at http://wiki.x.org
for help.
[   217.077] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   217.077]



操作过程和问题:

Xorg -configure
X -config xorg.config.new

然后出现下面的错误:

FATAL: Module i915 not found.
(EE) intel(0): No kernel modesetting driver detected.
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found.

这已经是我第四次重新安装了,我在网上也查了好多资料,但问题都没能解决。
我已经将内核的对i915的个选项加上了,并且在grub.conf里将i915.modeset=1也加上了,,问题依旧。

我将/usr/lib/dri/i915_dri.so 也ln -s 到了/usr/lib/xorg/modules 里面,问题依旧。
在google和baidu里已经查了三四天了,真的不想放弃,,
抱着最后的希望,来这里请教一下高手,希望能找到问题的解决方法。
谢谢!!!!
发表于 2010-5-5 14:52:11 | 显示全部楼层
帖emerge --info和/var/log/Xorg.0.log
回复 支持 反对

使用道具 举报

发表于 2010-5-5 15:03:46 | 显示全部楼层
除了内核支持(每次编译内核之后务必make modules_install),你还需要
emerge -av xf86-video-intel
上面这个命令安装了intel卡的xorg驱动,每一次emerge xorg-server后都要重新安装驱动。

建议在/etc/make.conf里设置:
VIDEO_CARDS="intel"

实际上,现在已经不需要专门配制xorg.conf就可以有一个可用的X环境,不知道你看的是哪个文档?

如果不是用gentoo,你需要:
1、安装xorg-server
2、安装xf86-video-intel
3、安装udev
4、安装hal
5、将hal、udev加入启动项目。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-5-5 15:06:23 | 显示全部楼层
我用的是genkernel --menuconfig all来装的呀,,我在menuconfig里将一些用不到的配置去掉了,,就有个也得要用make modules_intall吗??

在启动时,我还看到一条错误消息 :
Failed to load i915

emerge -av xf86-video-intel
这个在emerge xorg-server时默认已经装上了,因为我在make.conf里的VIDEO_CARDS中加上了intel
回复 支持 反对

使用道具 举报

发表于 2010-5-5 15:07:41 | 显示全部楼层
linux里显卡驱动分两个层次,一个在内核里,一个在用户层
xf86-video-intel是用户层的X server的驱动
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-5-5 15:14:58 | 显示全部楼层
Post by zhllg;2087964
linux里显卡驱动分两个层次,一个在内核里,一个在用户层
xf86-video-intel是用户层的X server的驱动


我这个问题应该是在内核层次里吧,因为我把xf86-video-intel也装后问题还是没解决,,
但,如果是内核层的话,为什么我在编译内核时将intel 945M/965M/*** 选项加上后,问题还是这样呢?
回复 支持 反对

使用道具 举报

发表于 2010-5-5 15:27:28 | 显示全部楼层
把kernel mode setting选上,你用的是2.11版本,已经没有ums了,只能开kms
CONFIG_DRM_I915_KMS=y
grep KMS /usr/src/linux/.config看看有没有上面这个
回复 支持 反对

使用道具 举报

发表于 2010-5-5 15:41:26 | 显示全部楼层
Post by cczy;2087963
我用的是genkernel --menuconfig all来装的呀,,我在menuconfig里将一些用不到的配置去掉了,,就有个也得要用make modules_intall吗??

在启动时,我还看到一条错误消息 :
Failed to load i915

emerge -av xf86-video-intel
这个在emerge xorg-server时默认已经装上了,因为我在make.conf里的VIDEO_CARDS中加上了intel
确认是intel卡?有没有make modules_install,一般提示Failed to load xxx很多情况下是因为重新编译内核后,没有更新模块。

除了必须,我都是直接编进内核的,从不编模块。

再次友情提示,如果重新emerge 了xorg-server,需要重新emerge xf86-video-intel,要你自己动手,因为gentoo不会自动重新emerge它。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-5-5 15:52:51 | 显示全部楼层
Post by jsun;2087984
确认是intel卡?有没有make modules_install,一般提示Failed to load xxx很多情况下是因为重新编译内核后,没有更新模块。

除了必须,我都是直接编进内核的,从不编模块。

再次友情提示,如果重新emerge 了xorg-server,需要重新emerge xf86-video-intel,要你自己动手,因为gentoo不会自动重新emerge它。


我的 CONFIG_DRM_I915_KMS 配置没加上,,我现在把这个也加上试试看,正在编译内核。
我的肯定是intel的显卡,集成的,lspci查出来的。

因为我不知道都哪些是对我本本必需的,所以没编进内核中。

另外,我想装fvwm-crystal,,,gnome太大了,占资源。
回复 支持 反对

使用道具 举报

发表于 2010-5-5 15:55:17 | 显示全部楼层
Post by cczy;2087990
我的 CONFIG_DRM_I915_KMS 配置没加上,,我现在把这个也加上试试看,正在编译内核。
我的肯定是intel的显卡,集成的,lspci查出来的。

因为我不知道都哪些是对我本本必需的,所以没编进内核中。

其实好多笔记本有现成的.config,在网上多搜搜,有许多爱好者贡献他们的笔记本配置。我用的是thinkpad x200,网上的配置、指导大把,当初受益不少。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表