LinuxSir.Org  
| 网站首页 | 注册账号 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
精华主题  
主题工具
旧 03-06-01, 03:10 第 1 帖
liuyidaocn
 
 
 
注册会员  
  注册日期: May 2003
  帖子: 34
  精华: 1
 

标题: [求助]五键鼠标的配置


双飞燕的,左右键,边上有两个键,加上滚轮上的中键一个共五个键。
在windows下,边上的两个键的功能分别是后退和前进。但在linux下(mandrake9.1,使用默认驱动)功能却变成和中键和右键一样。我在双飞燕的官方网站上没找到linux的驱动。
想问一下各位高手,是不是可能通过配置来实现后退和前进?如果不行,能不能自己写一个驱动?
  liuyidaocn 当前离线   回复时引用此帖
旧 03-06-01, 04:59 第 2 帖
liuyidaocn
 
 
 
注册会员  
  注册日期: May 2003
  帖子: 34
  精华: 1
 

我已经试过这个配置了,没有效果。
Section "InputDevice"
Identifier "WinEasy"
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "IMPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5 6 7"
EndSection

下面的也无效。
Section "InputDevice"
Identifier "IntelliMouse Explorer"
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "IMPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection

xmodmap -e "pointer = 1 2 3 4 7 5 6"

http://www.xfree86.org/4.2.0/mouse7.html

此帖于 03-06-01 05:03 被 liuyidaocn 编辑.
  liuyidaocn 当前离线   回复时引用此帖
旧 03-06-01, 10:16 第 3 帖
北南南北
 
北南南北 的头像
 
 
管理员  
  注册日期: Apr 2002
  帖子: 24,300
  精华: 483
 

这样设置没有效果,因为看例子中说,是map,也就是说把中键的功能映射到别的键上。
感觉linux主要还是用三个键。左右中三个键。就是鼠标有其它的键,也是把相应的功能映射到别键上。

不知道是不是这样的?







__________________
请弟兄们发帖时要写个好标题,多谢!
签名不支持html和bbcode,请弟兄为了版面的整洁,请更改签名档,谢谢!
请各版版主及初学Linux的弟兄,请在您的签名写上机器的配置,以及您所用的系统(包装版本号,内核),谢谢。

Slackware64 13.x kernel 2.6.29.6
****************************************
因为太笨,所以努力;
****************************************
  北南南北 当前离线   回复时引用此帖
旧 03-06-01, 22:04 第 4 帖
liuyidaocn
 
 
 
注册会员  
  注册日期: May 2003
  帖子: 34
  精华: 1
 

终于搞定了。参考这个链接:
http://www.p-two.net/modules.php?op=...=article&sid=2

先要把边上两个键map成滚轮,然后安装imwheel这个软件把鼠标滚轮map成按键。
对大部分程序有效,如konqueror,opera7.1。只可惜对mozilla1.3无效,在mozilla上用可是我的最终目的啊,又泡汤了。

虽然有上面的文章做参考。但是由于种种原因,那个配置对我无效。我忙活了一天一夜才稿定的。写出来说不定会有些价值。
/etc/X11/XF86Config-4 :

Section "InputDevice"
Identifier "IntelliMouse Explorer"
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "IMPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection

然后运行:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
为了让它能登录自启,在~/.kde/Autostart/ 下建一个"link to Application", 填入xmodmap -e "pointer = 1 2 3 6 7 4 5"。

装上imwheel后,配置~/.imwheelrc
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

imwheel会在登录时自动启动。

按道理这就可以了。但在我系统里没成,后来找到原因,imwheel被放在/etc/X11/xinit.d/下,会比xmodmap早起动。于是要想个办法让imwheel晚启动。我的做法是:/etc/X11/xinit.d/imwheel 删掉,写一个shell放在某处(如~/bin/mapimw),
#mapimw
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"
再把~/.kde/Autostart/ 下的"link to Application"的内容改成$HOME/bin/mapimw

这样就可以了。但mozilla1.3就是不听话,5~~~~~~~~

此帖于 03-06-01 22:26 被 liuyidaocn 编辑.
  liuyidaocn 当前离线   回复时引用此帖
旧 03-06-02, 02:47 第 5 帖
北南南北
 
北南南北 的头像
 
 
管理员  
  注册日期: Apr 2002
  帖子: 24,300
  精华: 483
 

不错。。。。GOOOD,有借鉴作用。辛苦了,兄弟。


但为什么不能在mozilla中用呢???没有这样的鼠:(:(
  北南南北 当前离线   回复时引用此帖
旧 03-06-03, 02:38 第 6 帖
liuyidaocn
 
 
 
注册会员  
  注册日期: May 2003
  帖子: 34
  精华: 1
 

好消息,这样的配置对Mozilla Firebird 0.6有效!而且Firebird对中文字体的支持也比Mozilla好。
  liuyidaocn 当前离线   回复时引用此帖
旧 03-06-04, 22:32 第 7 帖
dsj
 
dsj 的头像
 
 
老牌版主  
  注册日期: Dec 2002
  我的住址: 广东
  帖子: 1,465
  精华: 37
 

但我的是自认的,奇怪!







__________________
软件交流群:17264279
图书分享群:18246379
互动社区:www.ubuntuchina.com
  dsj 当前离线   回复时引用此帖
旧 03-06-05, 20:40 第 8 帖
liuyidaocn
 
 
 
注册会员  
  注册日期: May 2003
  帖子: 34
  精华: 1
 

你是什么系统?什么鼠标?
  liuyidaocn 当前离线   回复时引用此帖
旧 03-06-06, 00:08 第 9 帖
hothot
 
hothot 的头像
 
 
注册会员  
  注册日期: May 2003
  我的住址: 武汉
  帖子: 119
  精华: 0
 

我只见过最多四键鼠标,今天真是开眼界了!







__________________
喜欢自由的操作系统,喜欢自由的软件!
  hothot 当前离线   回复时引用此帖
旧 03-11-14, 23:15 第 10 帖
surfish
 
surfish 的头像
 
 
注册会员  
  注册日期: Jul 2002
  我的住址: kp
  帖子: 391
  精华: 1
 

这里八个键呢 :-D







__________________
My Dear bring me a copy of Mac OS X ...
  surfish 当前离线   回复时引用此帖
旧 04-04-29, 17:03 第 11 帖
liangdl
 
 
 
注册会员  
  注册日期: Apr 2004
  帖子: 23
  精华: 0
 

这个是怎么回事啊?
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[vincent@localhost imwheel-1.0.0pre6]$
  liangdl 当前离线   回复时引用此帖
旧 04-04-29, 22:23 第 12 帖
北南南北
 
北南南北 的头像
 
 
管理员  
  注册日期: Apr 2002
  帖子: 24,300
  精华: 483
 

引用:
最初由 liangdl 发表
这个是怎么回事啊?
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[vincent@localhost imwheel-1.0.0pre6]$
没有安装开发工具,比如gcc make automake 以及库文件。

找出gcc的包安装上,否则没有办法编译, 这是最基本的。

如果不知道如何安装,应该把系统升级成完全安装。

加油。。。
  北南南北 当前离线   回复时引用此帖
旧 04-04-29, 23:04 第 13 帖
liangdl
 
 
 
注册会员  
  注册日期: Apr 2004
  帖子: 23
  精华: 0
 

谢谢北南~
  liangdl 当前离线   回复时引用此帖
发表新主题 回复


主题工具

发帖规则
您 [不可以] 发表新主题
您 [不可以] 回复主题
您 [不可以] 上传附件
您 [不可以] 编辑您的帖子

已 [启用] BB 代码
已 [启用] 表情符号
已 [启用] IMG 代码
已 [禁用] HTML 代码
[论坛跳转…]


所有时间均为[北京时间]。现在的时间是 16:54


Powered by vBulletin 版本 3.6.8
版权所有 ©2000 - 2010, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文
版权所有 ©2002 - 2009, LinuxSir.Org