|
|
我先检查了/usr/src/linux下的符号连接正确后
emerge nvidia-kernel
emerge nvidia-glx
modprobe nvidia
nano /etc/modules.autoload.d/kernel-2.6 #加上nvidia
modules-update
在xorg.config中,module小节注释掉 load "dri" , 同时将显卡部分的"nv"修改为"nvidia"
代码如下:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "Module"
Load "freetype"
# Load "xtt"
Load "extmod"
Load "glx"
# Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "type1"
Load "speedo"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option " rotocol" "ImPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
Identifier "Monitor0"
HorizSync 30.0 - 80.0
VertRefresh 60.0
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
ChipSet "GeForce4 Ti 4200 with AGP8X"
Card "nv GeForce4 Ti 4200 with AGP8X"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
再执行 opengl-update nvidia
startx
系统报错如下:
Using vt7
(EE)Failed to load module "speedo" ( module does not exist, 0 )
(WW)NVIDIA: Chipset " GeForce 4 Ti 4200 with AGP8X " in Device Section " Card 0 " isn't valid for this driver
(EE)No devices detected
Fatal server error:
no screens found
此时如果我将显卡部分的"nvidia"修改为"nv"又可以启动X,请问这种情况怎么解决?谢谢!!! |
|