LinuxSir.cn,穿越时空的Linuxsir!

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

Xorg.conf配置问题(新手)

[复制链接]
发表于 2005-12-12 01:24:12 | 显示全部楼层 |阅读模式
刚接触gentoo,好不容易在同学帮忙下装上了基系统,也emerge了fvwm。可是xorg配置确迟迟没搞定。按照文档里的方法:

#Xorg -configure    // 生成 /root/xorg.conf.new
#X -config /root/xorg.conf.new

系统提示:

Useing config file:"/root/xorg.conf.new"
Using vt 7
FATAL:Error inserting nvidia (/lib/modules/2.6.14-gentoo-r4/video/nvidia.ko):Invalid module format.
(EE)NVIDIA(0):Failed to load the NVIDIA kernel module!
(EE)NVIDIA(0):***Aborting***
(EE)Screen(s) found, but none have a useable configuration


请问该如何解决?谢了
发表于 2005-12-12 03:42:53 | 显示全部楼层
你没有编译nvidia的驱动模块。
试试用root帐号modprobe nvidia是什么提示吧。
回复 支持 反对

使用道具 举报

发表于 2005-12-12 11:48:05 | 显示全部楼层
编译内核和编译模块所用的gcc不是同一个版本
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-12 14:23:50 | 显示全部楼层
我之前编译了nvidia的驱动模块
回复 支持 反对

使用道具 举报

发表于 2005-12-12 14:31:36 | 显示全部楼层
重新 emerge nvidia-nvidia, 如果编译内核之后升级过 gcc 就先重新编译内核。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-12 14:39:32 | 显示全部楼层
重新用GCC4.1编译了内核和nvidia-kernel,nvidia-glx,使得编译内核和模块的GCC保持了同一版本。

#cd /usr/src/linux
#make clean
#make menuconfig
                  //load .config
#make && make module_install
                  //显示 no rule to make target 'module_install'. stop
#mount  /boot
#cp arch /i386/boot/bzImage /boot/linux-2.6.14
#reboot

重新运行:

#Xorg -configure // 生成 /root/xorg.conf.new
#X -config /root/xorg.conf.new

显示:

Using vt7
symbol_glxgetActive Screen from module /usr/lib/modules/extensions/libdri.a is unresolved
symbol_glxgetActive Screen from module /usr/lib/modules/extensions/libdri.a is unresolved
(EE)xf86OpenSerial: Cannot open device /dev/mouse. No such file or diretory
(EE)Mouse0:Cannot open input device.
(EE)PreInit failed for input device "mouse0" No core pointer
Fatal server error:failed to initialize core devices

我的xorg.config.new有修改mouse的配置为
Section "Input Device"
Identifier "Mouse 0"
Driver "mouse"
Option "rotocol" "ImPS/2"
Option "Device" "/dev/mouse"
End Section

(我的鼠标是微软USB光电鼠加PS2转接头,等下准备把转接头拔了再试试)
不知这次又是何种问题?请问如何解决。

还有一个小问题(^_^ 新手,问题较多):
我的机器启动时显示DMA没有打开,我按照linuxsir.cn上的帖子。

nano -w /et/conf.d/local.start
加上
hdparm -c 1 -d 1 /dev/hda

但开机显示:

/dev/hda:
        setting 32-bit IO-support flag to 1
        setting using-dma to 1 (on)
HDIO_SET_DMA failed:Operation not permitted
        IO-support = 1 (32-bit)
        using-dma = 0 (off)

请问有什么方法打开DMA么?
回复 支持 反对

使用道具 举报

发表于 2005-12-12 15:01:09 | 显示全部楼层
汗.....
是make modules_install
少打了一个s
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-12 15:03:26 | 显示全部楼层
hoho 我再重新弄一下,不知道编译内核时候手误没有 ~~

刚刚把USB转PS/2转接头拔了,这下运行
#Xorg -configure
就直接说不认识我鼠标了~~~
回复 支持 反对

使用道具 举报

发表于 2005-12-12 15:05:07 | 显示全部楼层
将鼠标改为
Option      "Device" "/dev/input/mice"
试试
回复 支持 反对

使用道具 举报

发表于 2005-12-12 15:07:15 | 显示全部楼层
usb鼠标内核里面是要配置的,比较麻烦
先用ps2吧
回复 支持 反对

使用道具 举报

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

本版积分规则

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