LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: duron158

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

[复制链接]
 楼主| 发表于 2006-7-7 10:19:54 | 显示全部楼层
Post by zhllg
但(EE)标志的是致命的错误
楼主内核里恐怕没编入framebuffer的支持吧
grep CONFIG_FB= /usr/src/linux/.config
如果显示CONFIG_FB=y,说明内核支持
否则,不支持,要改一下配置,重编译


大哥,# less /usr/src/linux/.config|grep CONFIG_FB如下:

CONFIG_FB=m
CONFIG_FB_CFB_FILLRECT=m
CONFIG_FB_CFB_COPYAREA=m
CONFIG_FB_CFB_IMAGEBLIT=m
COMFIG_FB_MODE_HELPERS=y
CONFIG_FB_NVIDIA=m

模块不行吗?难道要编译进内核吗?

x起不来是否与这个有关???
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 10:32:37 | 显示全部楼层
CONFIG_FB=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
COMFIG_FB_MODE_HELPERS=y
CONFIG_FB_NVIDIA=y

我全部编译进内核试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 10:35:15 | 显示全部楼层
这一行是什么错误?

FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.
回复 支持 反对

使用道具 举报

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

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.

是什么错误?


把FB编译进内核,到第3步时提示:

Fatal server error:
Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices

XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0" after 0 requests (0 known processed) with 0 events remaining.

我看还是把FB关了再说吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 10:53:51 | 显示全部楼层
# cat .config|grep CONFIG
CONFIG_FB is not set

试了一下,把FB去掉重新编译,错误跟第4步一样。看来不是FB的问题。

麻烦谁把xorg.conf贴出来让我学习下,谢谢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 10:54:30 | 显示全部楼层
试了一下,把FB去掉重新编译,错误跟第4步一样。看来不是FB的问题。

麻烦谁把xorg.conf贴出来让我学习下,谢谢!
回复 支持 反对

使用道具 举报

发表于 2006-7-7 11:19:27 | 显示全部楼层
Section "Extensions"
   Option "Composite" "true"
   Option "RENDER" "true"
EndSection

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/local"
    FontPath        "/usr/local/share/fonts"
EndSection

Section "Module"
    Load           "glx"
    Load           "extmod"
    Load           "xtrap"
    Load           "record"
    Load           "dbe"
    Load           "freetype"
    Load           "type1"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "rotocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
EndSection

Section "Device"

    Option         "RenderAccel" "true"
    Option         "AllowGLXWithComposite" "true"
    Option         "AddARGBGLXVisuals" "true"
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "nVidia Corporation"
    BoardName      "GeForce 6200"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    SubSection     "Display"
        Viewport    0 0
        Depth       24
        Modes      "1024x768_85" "800x600_85"
    EndSubSection
EndSection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 11:47:58 | 显示全部楼层
进入X鼠标没有反应,强退后看到有错误信息:

X connection to :0.0 broken (explicit kill or server shutdown).
xinit: connection to X server lost.
FreeFontPath: FPE "/usr/share/font/misc" refcount is 2 ,should be 1; fixing.

请问这是什么错误?

现在我可以安装桌面环境了吧?我打算选择xfce4,装完这个再startx不知道行不行?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 12:01:29 | 显示全部楼层
贴出我的xorg.conf,请大家帮我看看:
[PHP]
Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    RgbPath "/usr/share/X11/rgb"
    MoudlePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
End Section

Section "Module"
    Load "glx"
    Load "extmod"
    Load "xtrap"
    Load "record"
    Load "dbe"
    Load "dri"
    Load "freetype"
    Load "type1"
EndSection

Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
EndSection

Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "rotocol" "ImPS/2"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Montior"
    Identifier "Montior0"
    VendorName "SAM"
    ModelName "SyncMaster"
#  HorizSync 30.0-60.0
#  VertRefresh 56.0-75.0
    Option "DPMS"
EndSection

Section "Device"
    Identifier "Card0"
    Driver "nv"
    VendorName "nVidia Corporation"
    BoardName "VN11 [GeForce2 MX/MX 400]"
    BusID "CI:1:0:0"
End Section

Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"

    DefaultDepth 16

    SubSection "Display"
        Viewport 0 0
        Depth 16
        Modes "1024x768"
    EndSection
EndSection[/PHP]

打得手都酸了!:confused: 大家帮我看看什么问题没有?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-7 12:05:22 | 显示全部楼层
进入X后,鼠标无反应,直接强退,错误信息如下:

X connection to :0.0 broken (explicit kill or server shutdown).
xinit: connection to X server lost.
FreeFontPath: FPE "/usr/share/font/misc" refcount is 2 ,should be 1; fixing.

如果进入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.

请大家帮我看看什么问题?

。。。郁闷了。。。等下装xfce4先。。。再不行,要跳楼啦。。。:comp
回复 支持 反对

使用道具 举报

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

本版积分规则

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