LinuxSir.cn,穿越时空的Linuxsir!

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

ThinkPad T410S 安装Gentoo,显卡问题不能解决,郁闷中……

[复制链接]
发表于 2010-10-24 16:42:20 | 显示全部楼层 |阅读模式
按照 http://www.gentoo.org/doc/zh_cn/nvidia-guide.xml 安装nvidia驱动及编译内核。无法启动X。
主要提示:NVIDIA: could not open the device file /dev/nvidia0

于是安装最新的不稳定版,通过修改 package.keywords package.unmask。
仍不能启动X。提示nvidia-kernel不配置。

于是 emerge -l nvidia-drivers,仍无法启动X。提供仍然是 NVIDIA: could not open the device file /dev/nvidia0 。

然后就从官网上下载 NVIDIA-Linux-x86-260.19.12.run,安装了,仍然不行,提示:(EE) No devices detected.

郁闷中……


附:lspci 信息
======================
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:16.3 Serial controller: Intel Corporation 5 Series/3400 Series Chipset KT Controller (rev 06)
00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation Device 3b57 (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation 5 Series/3400 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06)
01:00.0 VGA compatible controller: nVidia Corporation GT218 [NVS 3100M] (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
05:00.0 SD Host controller: Ricoh Co Ltd Device e822 (rev 01)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)


附:错误信息1
======================
xauth:  creating new authority file /home/hg/.serverauth.3733

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.34-gentoo-r12 i686
Current Operating System: Linux localhost 2.6.34-gentoo-r12 #4 SMP Sun Oct 24 17:16:54 CST 2010 i686
Kernel command line: root=/dev/sda4
Build Date: 24 October 2010  08:44:19PM

Current version of pixman: 0.18.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: Mon Oct 25 01:18:49 2010
(==) Using config file: "/etc/X11/xorg.conf"
(EE) Oct 25 01:18:50 NVIDIA(0): Failed to initialize the GLX module; please check in your X
(EE) Oct 25 01:18:50 NVIDIA(0):     log file that the GLX module has been loaded in your X
(EE) Oct 25 01:18:50 NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
(EE) Oct 25 01:18:50 NVIDIA(0):     you continue to encounter problems, Please try
(EE) Oct 25 01:18:50 NVIDIA(0):     reinstalling the NVIDIA driver.
NVIDIA: could not open the device file /dev/nvidia0 (Input/output error).
(EE) Oct 25 01:18:50 NVIDIA(0): Failed to initialize the NVIDIA graphics device PCI:1:0:0.
(EE) Oct 25 01:18:50 NVIDIA(0):     Please check your system's kernel log for additional error
(EE) Oct 25 01:18:50 NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
(EE) Oct 25 01:18:50 NVIDIA(0):     README for additional information.
(EE) Oct 25 01:18:50 NVIDIA(0): Failed to initialize the NVIDIA graphics device!
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

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.

giving up.

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

xinit:  No such process (errno 3):  Server error.


附:错误信息2
===========================
xauth:  creating new authority file /home/hg/.serverauth.3671


X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.34-gentoo-r12 i686
Current Operating System: Linux localhost 2.6.34-gentoo-r12 #4 SMP Sun Oct 24 17:16:54 CST 2010 i686
Kernel command line: root=/dev/sda4
Build Date: 24 October 2010  08:44:19PM

Current version of pixman: 0.18.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: Mon Oct 25 01:17:16 2010
(==) Using config file: "/etc/X11/xorg.conf"
(EE) No devices detected.

Fatal server error:
no screens found

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.

giving up.

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

xinit:  No such process (errno 3):  Server error.
 楼主| 发表于 2010-10-24 16:47:09 | 显示全部楼层
我这也是第二次安装gentoo了,第一次在SONY SZ42C/B上安装,很成功。
有人说,是PCI中断冲突。内核启动参数添加 noacpi acpi=off pci=noacpi。
添加这些参数之后,启动狂慢,X仍无法启动。
回复 支持 反对

使用道具 举报

发表于 2010-10-24 16:53:48 | 显示全部楼层
内核配置有问题吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-24 17:07:38 | 显示全部楼层
Post by scupan;2117048
内核配置有问题吧。


我是按照说明的来编译内核的。
回复 支持 反对

使用道具 举报

发表于 2010-10-24 17:36:13 | 显示全部楼层
查看dmesg和X的log? 我新弄好gentoo,ati的显卡也弄了两天才弄好
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-24 19:44:28 | 显示全部楼层
看了 dmesg 和 X.log.0,感觉已经找显卡了似的。但还是不明白,希望高人指点一二。
谢谢!

附:X.log.0
==================
X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.34-gentoo-r12 i686
Current Operating System: Linux localhost 2.6.34-gentoo-r12 #4 SMP Sun Oct 24 17:16:54 CST 2010 i686
Kernel command line: root=/dev/sda4
Build Date: 24 October 2010  08:44:19PM

Current version of pixman: 0.18.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: Mon Oct 25 01:18:49 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1/" does not exist.
        Entry deleted from font path.
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1/" does not exist.
        Entry deleted from font path.
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
(**) FontPath set to:
        /usr/share/fonts/misc/,
        /usr/share/fonts/misc/
(**) ModulePath set to "/usr/lib/xorg/modules"
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(II) Loader magic: 0x81f3e40
(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:0046:17aa:21be Intel Corporation Arrandale Integrated Graphics Controller rev 2, Mem @ 0xfc000000/4194304, 0xf0000000/134217728, I/O @ 0x00001800/8
(--) PCI: (0:1:0:0) 10de:0a6c:17aa:21be nVidia Corporation rev 162, Mem @ 0xcc000000/16777216, 0xd0000000/268435456, 0xce000000/33554432, I/O @ 0x00002000/128, BIOS @ 0x????????/524288
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.13.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.1.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
        Module class: X.Org Video Driver
(II) NVIDIA dlloader X Driver  260.19.12  Fri Oct  8 13:24:43 PDT 2010
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 00@00:02:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/lib/xorg/modules/libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) Oct 25 01:18:50 NVIDIA(0): Enabling RENDER acceleration
(EE) Oct 25 01:18:50 NVIDIA(0): Failed to initialize the GLX module; please check in your X
(EE) Oct 25 01:18:50 NVIDIA(0):     log file that the GLX module has been loaded in your X
(EE) Oct 25 01:18:50 NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
(EE) Oct 25 01:18:50 NVIDIA(0):     you continue to encounter problems, Please try
(EE) Oct 25 01:18:50 NVIDIA(0):     reinstalling the NVIDIA driver.
(EE) Oct 25 01:18:50 NVIDIA(0): Failed to initialize the NVIDIA graphics device PCI:1:0:0.
(EE) Oct 25 01:18:50 NVIDIA(0):     Please check your system's kernel log for additional error
(EE) Oct 25 01:18:50 NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
(EE) Oct 25 01:18:50 NVIDIA(0):     README for additional information.
(EE) Oct 25 01:18:50 NVIDIA(0): Failed to initialize the NVIDIA graphics device!
(II) UnloadModule: "nvidia"
(II) UnloadModule: "wfb"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

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.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-24 19:46:11 | 显示全部楼层
附:dmesg
=========================
....
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=none
vgaarb: loaded
....
回复 支持 反对

使用道具 举报

发表于 2010-10-24 22:56:02 | 显示全部楼层
重装nvidia driver试试吧
回复 支持 反对

使用道具 举报

发表于 2010-10-24 23:05:34 | 显示全部楼层
(EE) Oct 25 01:18:50 NVIDIA(0): Failed to initialize the GLX module; please check in your X
(EE) Oct 25 01:18:50 NVIDIA(0): log file that the GLX module has been loaded in your X
(EE) Oct 25 01:18:50 NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
(EE) Oct 25 01:18:50 NVIDIA(0): you continue to encounter problems, Please try
(EE) Oct 25 01:18:50 NVIDIA(0): reinstalling the NVIDIA driver.
(EE) Oct 25 01:18:50 NVIDIA(0): Failed to initialize the NVIDIA graphics device PCI:1:0:0.
(EE) Oct 25 01:18:50 NVIDIA(0): Please check your system's kernel log for additional error
(EE) Oct 25 01:18:50 NVIDIA(0): messages and refer to Chapter 8: Common Problems in the
(EE) Oct 25 01:18:50 NVIDIA(0): README for additional information.
(EE) Oct 25 01:18:50 NVIDIA(0): Failed to initialize the NVIDIA graphics device!
回复 支持 反对

使用道具 举报

发表于 2010-10-25 03:04:56 | 显示全部楼层
你要检查这个nivida的版本支持你的显卡。
从你的log看,是glx module出问题了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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