|
以前装gentoo的时候完全可以,很久之前,这次装发现X不能启动,找不到设备,大家帮忙看看是什么原因 谢谢大家:)
我安装的是官方驱动,kernel是2.6.39
- localhost ~ # lspci | grep -i nvidia
- 01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
- localhost ~ #
复制代码- [i] x11-drivers/nvidia-drivers
- Available versions: 96.43.19!s 173.14.28!s (~)173.14.30!s (~)256.53!s 260.19.36!s (~)260.19.44!s (~)270.41.03!s (~)270.41.06!s (~)270.41.19!s {acpi custom-cflags gtk kernel_linux multilib}
- Installed versions: 270.41.19!s(00:44:24 05/29/11)(gtk kernel_linux -acpi -custom-cflags -multilib)
- Homepage: http://www.nvidia.com/
- Description: NVIDIA X11 driver and GLX libraries
复制代码
X启动时的信息如下:
- [ 274.666] (II) Loading extension RECORD
- [ 274.666] (II) LoadModule: "nvidia"
- [ 274.666] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
- [ 274.667] (II) Module nvidia: vendor="NVIDIA Corporation"
- [ 274.667] compiled for 4.0.2, module version = 1.0.0
- [ 274.667] Module class: X.Org Video Driver
- [ 274.667] (II) NVIDIA dlloader X Driver 270.41.19 Mon May 16 23:33:05 PDT 2011
- [ 274.667] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
- [ 274.667] (--) using VT number 7
- [ 274.676] (EE) No devices detected.
- [ 274.676]
- Fatal server error:
- [ 274.676] no screens found
- [ 274.676]
- Please consult the The X.Org Foundation support
复制代码
- localhost ~ # cat /var/log/Xorg.0.log
- [ 492.137]
- This is a pre-release version of the X server from The X.Org Foundation.
- It is not supported in any way.
- Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
- Select the "xorg" product for bugs you find in this release.
- Before reporting bugs in pre-release versions please check the
- latest version in the X.Org Foundation git repository.
- See http://wiki.x.org/wiki/GitPage for git access instructions.
- [ 492.137]
- X.Org X Server 1.10.1.902 (1.10.2 RC 2)
- Release Date: 2011-05-20
- [ 492.137] X Protocol Version 11, Revision 0
- [ 492.137] Build Operating System: Linux 2.6.39-gentoo i686 Gentoo
- [ 492.137] Current Operating System: Linux localhost 2.6.39-gentoo #2 SMP Sat May 28 23:18:57 CST 2011 i686
- [ 492.137] Kernel command line: root=/dev/sda9
- [ 492.137] Build Date: 29 May 2011 12:40:09AM
- [ 492.137]
- [ 492.137] Current version of pixman: 0.22.0
- [ 492.137] Before reporting problems, check http://wiki.x.org
- to make sure that you have the latest version.
- [ 492.137] Markers: (--) probed, (**) from config file, (==) default setting,
- (++) from command line, (!!) notice, (II) informational,
- (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
- [ 492.138] (==) Log file: "/var/log/Xorg.0.log", Time: Sun May 29 00:54:31 2011
- [ 492.138] (==) Using config file: "/etc/X11/xorg.conf"
- [ 492.138] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
- [ 492.138] (==) ServerLayout "Layout0"
- [ 492.138] (**) |-->Screen "Screen0" (0)
- [ 492.138] (**) | |-->Monitor "Monitor0"
- [ 492.138] (**) | |-->Device "Device0"
- [ 492.138] (**) |-->Input Device "Keyboard0"
- [ 492.138] (**) |-->Input Device "Mouse0"
- [ 492.138] (==) Automatically adding devices
- [ 492.138] (==) Automatically enabling devices
- [ 492.138] (WW) The directory "/usr/share/fonts/misc/" does not exist.
- [ 492.138] Entry deleted from font path.
- [ 492.138] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
- [ 492.138] Entry deleted from font path.
- [ 492.138] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
- [ 492.138] Entry deleted from font path.
- [ 492.138] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
- [ 492.138] Entry deleted from font path.
- [ 492.138] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
- [ 492.138] Entry deleted from font path.
- [ 492.138] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
- [ 492.138] Entry deleted from font path.
- [ 492.138] (==) FontPath set to:
- [ 492.138] (==) ModulePath set to "/usr/lib/xorg/modules"
- [ 492.138] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
- [ 492.138] (WW) Disabling Keyboard0
- [ 492.138] (WW) Disabling Mouse0
- [ 492.138] (II) Loader magic: 0x81f7d00
- [ 492.138] (II) Module ABI versions:
- [ 492.138] X.Org ANSI C Emulation: 0.4
- [ 492.139] X.Org Video Driver: 10.0
- [ 492.139] X.Org XInput driver : 12.2
- [ 492.139] X.Org Server Extension : 5.0
- [ 492.139] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
- [ 492.139] (WW) "dri" will not be loaded unless you've specified it to be loaded elsewhere.
- [ 492.139] (WW) "dri2" will not be loaded unless you've specified it to be loaded elsewhere.
- [ 492.139] (II) "extmod" will be loaded by default.
- [ 492.139] (II) "dbe" will be loaded by default.
- [ 492.139] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
- [ 492.139] (II) "record" will be loaded by default.
- [ 492.139] (II) "dri" will be loaded even though the default is to disable it.
- [ 492.139] (II) "dri2" will be loaded even though the default is to disable it.
- [ 492.139] (II) LoadModule: "glx"
- [ 492.139] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
- [ 492.168] (II) Module glx: vendor="NVIDIA Corporation"
- [ 492.168] compiled for 4.0.2, module version = 1.0.0
- [ 492.168] Module class: X.Org Server Extension
- [ 492.168] (II) NVIDIA GLX Module 270.41.19 Mon May 16 23:49:08 PDT 2011
- [ 492.168] (II) Loading extension GLX
- [ 492.168] (II) LoadModule: "extmod"
- [ 492.168] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
- [ 492.168] (II) Module extmod: vendor="X.Org Foundation"
- [ 492.168] compiled for 1.10.1.902, module version = 1.0.0
- [ 492.168] Module class: X.Org Server Extension
- [ 492.168] ABI class: X.Org Server Extension, version 5.0
- [ 492.168] (II) Loading extension MIT-SCREEN-SAVER
- [ 492.168] (II) Loading extension XFree86-VidModeExtension
- [ 492.168] (II) Loading extension XFree86-DGA
- [ 492.168] (II) Loading extension DPMS
- [ 492.168] (II) Loading extension XVideo
- [ 492.168] (II) Loading extension XVideo-MotionCompensation
- [ 492.168] (II) Loading extension X-Resource
- [ 492.168] (II) LoadModule: "dbe"
- [ 492.169] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
- [ 492.169] (II) Module dbe: vendor="X.Org Foundation"
- [ 492.169] compiled for 1.10.1.902, module version = 1.0.0
- [ 492.169] Module class: X.Org Server Extension
- [ 492.169] ABI class: X.Org Server Extension, version 5.0
- [ 492.169] (II) Loading extension DOUBLE-BUFFER
- [ 492.169] (II) LoadModule: "record"
- [ 492.169] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
- [ 492.169] (II) Module record: vendor="X.Org Foundation"
- [ 492.169] compiled for 1.10.1.902, module version = 1.13.0
- [ 492.169] Module class: X.Org Server Extension
- [ 492.169] ABI class: X.Org Server Extension, version 5.0
- [ 492.169] (II) Loading extension RECORD
- [ 492.169] (II) LoadModule: "nvidia"
- [ 492.169] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
- [ 492.170] (II) Module nvidia: vendor="NVIDIA Corporation"
- [ 492.170] compiled for 4.0.2, module version = 1.0.0
- [ 492.170] Module class: X.Org Video Driver
- [ 492.170] (II) NVIDIA dlloader X Driver 270.41.19 Mon May 16 23:33:05 PDT 2011
- [ 492.170] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
- [ 492.170] (--) using VT number 7
- [ 492.179] (EE) No devices detected.
- [ 492.179]
- Fatal server error:
- [ 492.179] no screens found
- [ 492.179]
- Please consult the The X.Org Foundation support
- at http://wiki.x.org
- for help.
- [ 492.179] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
- [ 492.179]
复制代码- localhost ~ # ls /dev/n*
- /dev/network_latency /dev/network_throughput /dev/null /dev/nvram
复制代码
xorg.conf是通过nvidia-xconfig生成的,Module段是我手动加上的
- localhost ~ # cat /etc/X11/xorg.conf
- # nvidia-xconfig: X configuration file generated by nvidia-xconfig
- # nvidia-xconfig: version 270.41.19 (buildmeister@swio-display-x86-rhel47-02.nvidia.com) Mon May 16 23:53:00 PDT 2011
- Section "ServerLayout"
- Identifier "Layout0"
- Screen 0 "Screen0" 0 0
- InputDevice "Keyboard0" "CoreKeyboard"
- InputDevice "Mouse0" "CorePointer"
- EndSection
- Section "Files"
- EndSection
- Section "Module"
- Load "glx"
- Disable "dri"
- Disable "dri2"
- EndSection
- Section "InputDevice"
- # generated from data in "/etc/conf.d/gpm"
- Identifier "Mouse0"
- Driver "mouse"
- Option "Protocol"
- Option "Device" "/dev/input/mice"
- Option "Emulate3Buttons" "no"
- Option "ZAxisMapping" "4 5"
- EndSection
- Section "InputDevice"
- # generated from default
- Identifier "Keyboard0"
- Driver "kbd"
- EndSection
- Section "Monitor"
- Identifier "Monitor0"
- VendorName "Unknown"
- ModelName "Unknown"
- HorizSync 28.0 - 33.0
- VertRefresh 43.0 - 72.0
- Option "DPMS"
- EndSection
- Section "Device"
- Identifier "Device0"
- Driver "nvidia"
- VendorName "NVIDIA Corporation"
- EndSection
- Section "Screen"
- Identifier "Screen0"
- Device "Device0"
- Monitor "Monitor0"
- DefaultDepth 24
- SubSection "Display"
- Depth 24
- EndSubSection
- EndSection
复制代码
以下是我的make.conf
- # These settings were set by the catalyst build script that automatically
- # built this stage.
- # Please consult /usr/share/portage/config/make.conf.example for a more
- # detailed example.
- CFLAGS="-O2 -march=native -pipe"
- CXXFLAGS="${CFLAGS}"
- # WARNING: Changing your CHOST is not something that should be done lightly.
- # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
- CHOST="i686-pc-linux-gnu"
- FEATURES="parallel-fetch ccache"
- CCACHE_DIR="/var/ccache"
- CCACHE_SIZE="10G"
- LINGUAS="zh_CN zh"
- MAKEOPTS="-j5"
- ACCEPT_KEYWORDS="~x86"
- USE="nptl nptlonly -ipv6 -qt -kde -doc nls cjk X gtk gnome jpeg mp3 png -cups opengl cairo udev dbus"
- VIDEO_CARDS="nvidia"
- INPUT_DEVICES="synaptics evdev"
- ALSA_CARDS="hda-intel"
- GENTOO_MIRRORS="ftp://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo/ ftp://mirrors.stuhome.net/gentoo/ rsync://mirrors.stuhome.net/gentoo/ http://mirrors.stuhome.net/gentoo/ rsync://mirrors.xmu.edu.cn/gentoo/ http://mirrors.xmu.edu.cn/gentoo ftp://mirrors.xmu.edu.cn/gentoo"
复制代码- localhost ~ # emerge --info
- Portage 2.1.9.50 (default/linux/x86/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo i686)
- =================================================================
- System uname: Linux-2.6.39-gentoo-i686-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-gentoo-2.0.2
- Timestamp of tree: Sat, 28 May 2011 07:30:01 +0000
- ccache version 3.1.4 [enabled]
- app-shells/bash: 4.1_p9
- dev-lang/python: 2.7.1-r1, 3.1.3-r1
- dev-util/ccache: 3.1.4
- sys-apps/baselayout: 2.0.2
- sys-apps/openrc: 0.8.2-r1
- sys-apps/sandbox: 2.4
- sys-devel/autoconf: 2.65-r1
- sys-devel/automake: 1.11.1
- sys-devel/binutils: 2.20.1-r1
- sys-devel/gcc: 4.4.5
- sys-devel/gcc-config: 1.4.1-r1
- sys-devel/libtool: 2.2.10
- sys-devel/make: 3.81-r2
- sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
- sys-libs/glibc: 2.12.2
- ACCEPT_KEYWORDS="x86 ~x86"
- ACCEPT_LICENSE="* -@EULA"
- CBUILD="i686-pc-linux-gnu"
- CFLAGS="-O2 -march=native -pipe"
- CHOST="i686-pc-linux-gnu"
- CONFIG_PROTECT="/etc"
- CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
- CXXFLAGS="-O2 -march=native -pipe"
- DISTDIR="/usr/portage/distfiles"
- FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
- FFLAGS=""
- GENTOO_MIRRORS="ftp://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo/ ftp://mirrors.stuhome.net/gentoo/ rsync://mirrors.stuhome.net/gentoo/ http://mirrors.stuhome.net/gentoo/ rsync://mirrors.xmu.edu.cn/gentoo/ http://mirrors.xmu.edu.cn/gentoo ftp://mirrors.xmu.edu.cn/gentoo"
- LDFLAGS="-Wl,-O1 -Wl,--as-needed"
- LINGUAS="zh_CN zh"
- MAKEOPTS="-j5"
- 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"
- PORTDIR_OVERLAY=""
- SYNC="rsync://rsync.gentoo.org/gentoo-portage"
- USE="X acl berkdb bzip2 cairo cjk cli cracklib crypt cxx dbus dri fortran gdbm gnome gpm gtk iconv jpeg modules mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python readline session ssl sysfs tcpd udev unicode x86 xorg zlib" ALSA_CARDS="hda-intel" 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
复制代码 |
|