LinuxSir.cn,穿越时空的Linuxsir!

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

帮个忙:请教如何配置xorg-x11及驱动X下的USB光电鼠?

[复制链接]
发表于 2006-7-7 08:22:44 | 显示全部楼层 |阅读模式
emerge xorg-x11刚完,输入xorgcfg -config,黑屏,出现提示“不支持的视频模式”,我该怎么办?

我的硬件配置:
显示卡 NVIDIA GeForce2 MX/MX 400 (64 MB)
显示器 Samsung SyncMaster 151S
键盘 Standard 101/102-Key or Microsoft Natural PS/2 Keyboard
鼠标 HID-compliant mouse

补充:配置信息是在windows下用软件测试出来的
发表于 2006-7-7 08:33:59 | 显示全部楼层
可以先输入xorgconfig在shell界面配置xorg。另外是否安装过nvidia-kernel?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 08:39:03 | 显示全部楼层
Post by john_yao
可以先输入xorgconfig在shell界面配置xorg。另外是否安装过nvidia-kernel?


没有安装过。我安装的是gentoo-sources。
回复 支持 反对

使用道具 举报

发表于 2006-7-7 08:44:59 | 显示全部楼层
你的显卡是nvidia的。在xorgconfig时显卡先选择nv的。然后emerge nvidia-kernel,再编辑/etc/X11/xorg.conf,将显卡名称从nv改成nvidia,最后startx试试。
另外有可能在配置xorg时已经可以看到nvidia的显卡,如果是这样就选择nvidia的,然后emerge nvidia-kernel,接下来直接startx就可以进入X-Window界面了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 09:11:13 | 显示全部楼层
我用xorgcfg -config配置,黑屏,C+A+black退出,出错信息如下:

(EE) xf86OpenSerial: Cannot open device /dev/mouse
        No such file or directory.
FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.
Cannot coneect to X Server.

怎么办?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 09:15:49 | 显示全部楼层
我把Option "Device" "/dev/mouse" 改成Option "Device" "/dev/input/misc",startx可以进去了!

但是退出x之后,还有一些错误信息:

(EE) open /dev/fb0: No such file or directory
FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.

该怎办?

补充:不会意思把mice写成misc了!嘎嘎。。。详细步骤看下面
回复 支持 反对

使用道具 举报

发表于 2006-7-7 09:19:09 | 显示全部楼层
Post by duron158
我把Option "Device" "/dev/mouse" 改成Option "Device" "/dev/input/misc",startx可以进去了!

但是退出x之后,还有一些错误信息:

(EE) open /dev/fb0: No such file or directory
FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.

该怎办?

这个错误不是致命的,可以忽略。真正的问题需要看日至
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 09:44:34 | 显示全部楼层
Post by 三翻领
这个错误不是致命的,可以忽略。真正的问题需要看日至


日志很长啊!我把处理过程再复诉一遍,请大家帮我仔细看看。谢谢啦!
回复 支持 反对

使用道具 举报

发表于 2006-7-7 09:47:46 | 显示全部楼层
但(EE)标志的是致命的错误
楼主内核里恐怕没编入framebuffer的支持吧
grep CONFIG_FB= /usr/src/linux/.config
如果显示CONFIG_FB=y,说明内核支持
否则,不支持,要改一下配置,重编译
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 10:08:57 | 显示全部楼层
下面我把我操作的详细步骤说一下,请大侠帮我参考:

1、执行xorgcfg -config,黑屏并提示“不支持的视频模式”,强退,看到错误信息如下:

(EE) xf86OpenSerial: Cannot open device /dev/mouse
No such file or directory.
FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.
Cannot coneect to X Server.

2、像是鼠标问题。BTW:我的鼠标是BenQ 双键滚轮USB光电鼠。

列一下设备:
# ls /dev/m*
/dev/misc:
psaux

# ls /dev/i*
/dev/input:
mice

然后我nano -w xorg.conf.new:
把Section "InputDevice"中的"/dev/mouse"改成"/dev/input/mice",保存退出。

3、接着startx,可以进入x,看到有几个窗口:一个login、两个xterm,还有个时钟。但是鼠标不能动。我按三键强退,看到错误信息如下:
(EE) open /dev/fb0: No such file or directory
X connection to :0.0 broken (explicit kill or server shutdown)
xinit: connection to X server lost.
FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.

请问是什么错误?

4、接下来
# cp xorg.conf.new /etc/X11/xorg.conf
# startx

没有进入X!!!黑屏并提示“不支持视频模式”,强退,错误信息如下:

xterm: fatal IO error 32 (Broken pipe) or KillClient on X Server ":0.0"
xterm: fatal IO error 32 (Broken pipe) or KillClient on X Server ":0.0"
login: fatal IO error 32 (Broken pipe) or KillClient on X Server ":0.0"
X connection to :0.0 broken (explicit kill or server shutdown).
xinit: connection to X server lost.
FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.

是什么错误?
回复 支持 反对

使用道具 举报

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

本版积分规则

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