LinuxSir.cn,穿越时空的Linuxsir!

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

鼠标中键不能用

[复制链接]
 楼主| 发表于 2007-6-8 19:00:14 | 显示全部楼层
Post by flycraft
这行注释掉了滚轮就没用了,建议把 Emulate3Buttons 改为 false,增加

  1. Option "Buttons" "5"
复制代码

另外你的是什么鼠标,protocol 会不会有问题?


按你的方法设置还是不行阿,我用的是ps/2
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-12 22:03:10 | 显示全部楼层
到底怎么办啊?
回复 支持 反对

使用道具 举报

发表于 2007-6-13 00:16:38 | 显示全部楼层
在 xterm 中运行 xev , 然后在弹出的窗口中点鼠标中键, 能看到xterm中的信息么?

正确的话, 应该看到 buttonPress buttonRelease 等信息, 而且按左/中/右键, 信息中会明确的显示 button 1  button 2 button 3
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-13 22:33:48 | 显示全部楼层
有信息,不知道什么意思?



ButtonPress event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x2200002, time 459833, (32,26), root40,116),
    state 0x0, button 3, same_screen YES

EnterNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x0, time 459833, (32,26), root40,116),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 1024

KeymapNotify event, serial 25, synthetic NO, window 0x0,
    keys:  96  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

ButtonRelease event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x2200002, time 459966, (32,26), root40,116),
    state 0x400, button 3, same_screen YES

LeaveNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x0, time 459966, (32,26), root40,116),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 0




MotionNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x2200002, time 460964, (29,25), root37,115),
    state 0x0, is_hint 0, same_screen YES



MotionNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x2200002, time 461987, (29,25), root37,115),
    state 0x0, is_hint 0, same_screen YES

ButtonPress event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x2200002, time 461987, (29,25), root37,115),
    state 0x0, button 2, same_screen YES

EnterNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x0, time 461987, (29,25), root37,115),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 512

KeymapNotify event, serial 25, synthetic NO, window 0x0,
    keys:  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

MotionNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x2200002, time 462011, (30,25), root38,115),
    state 0x200, is_hint 0, same_screen YES

ButtonRelease event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x2200002, time 462159, (30,25), root38,115),
    state 0x200, button 2, same_screen YES

LeaveNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x0, time 462159, (30,25), root:(38,115),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 0

EnterNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x0, time 466795, (68,13), root:(76,103),
    mode NotifyNormal, detail NotifyInferior, same_screen YES,
    focus YES, state 0

KeymapNotify event, serial 25, synthetic NO, window 0x0,
    keys:  96  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

MotionNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x0, time 466804, (84,7), root:(92,97),
    state 0x0, is_hint 0, same_screen YES

MotionNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x0, time 466814, (98,3), root:(106,93),
    state 0x0, is_hint 0, same_screen YES

LeaveNotify event, serial 25, synthetic NO, window 0x2200001,
    root 0x60, subw 0x0, time 466823, (112,-3), root:(120,87),
    mode NotifyNormal, detail NotifyAncestor, same_screen YES,
    focus YES, state 0
X connection to :0.0 broken (explicit kill or server shutdown).
回复 支持 反对

使用道具 举报

发表于 2007-6-13 23:01:01 | 显示全部楼层
有 button 2  button 3 的事件发生啊, 那说明中键已经被X识别了.

你说说看你到底想用中键进行什么操作吧, 如何一个中键不起作用?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-14 22:07:38 | 显示全部楼层
滚轮没有用,上网看东西很麻烦。在windows里都用得好好的。
回复 支持 反对

使用道具 举报

发表于 2007-6-14 22:23:06 | 显示全部楼层
Post by huyong1210
滚轮没有用,上网看东西很麻烦。在windows里都用得好好的。

早说滚轮多好, 中键是中键, 滚轮是滚轮啊, 两者不是一回事.

你是几键鼠标? 是类似微软鼠标那种多键鼠标么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-14 22:54:00 | 显示全部楼层
加上滚轮一共3个键,就是平常用的那种。中键和滚轮不一样么?
回复 支持 反对

使用道具 举报

发表于 2007-6-15 00:04:22 | 显示全部楼层
中键是button 3, 滚轮是 button 4和 button 5

以前好像见过这样的问题, 似乎是usb驱动的问题, ohci_hcd 和 uhci_hcd 被内核用错了. 导致中键无法识别.

1) 你按照13楼的方法, 滚动滚轮, 看看能不能看到 button 4 , button 5 这样的字符串.
2) 如果不能, 执行 lsmod | grep hcd , 看看结果是 uhci_hcd 还是 ohci_hcd
3) 正确的情况是, 主板上用Intel或者Via芯片,应该是 uhci_hcd, 否则应该用  ohci_hcd
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-15 18:28:13 | 显示全部楼层
用13楼的方法,看不到button4 button5 这样的字符串,滚动滚轮没有反映
lsmod | grep hcd 没有信息,执行lsmod没有找到这两个模块
这是怎么回事,难道要重新编译内核吗?
回复 支持 反对

使用道具 举报

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

本版积分规则

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