鼠标左右设置?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

鼠标左右设置?

#1

帖子 eexpress » 2007-09-06 12:33

你们谁知道。接2个鼠标,如何设置一个是左手,一个是右手鼠标。

更深点问题:可以设置一个鼠标管理一个屏幕不?如果是接了2个屏幕。
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#2

帖子 eexpress » 2007-09-06 12:55

代码: 全选

12:54:49 exp ~  ☎  lsusb
Bus 005 Device 003: ID 0ac8:0321 Z-Star Microelectronics Corp. 
Bus 005 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 003 Device 003: ID 04fc:0003 Sunplus Technology Co., Ltd CM1092 Optical Scroller Mouse
Bus 003 Device 001: ID 0000:0000  
Bus 001 Device 005: ID 046d:c016 Logitech, Inc. M-UV69a Optical Wheel Mouse
Bus 001 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
12:55:24 exp ~  ☎  ll /dev/input/m*
crw-rw---- 1 root root 13, 63 2007-09-06 08:46 /dev/input/mice
crw-rw---- 1 root root 13, 32 2007-09-06 08:46 /dev/input/mouse0
crw-rw---- 1 root root 13, 33 2007-09-06 08:46 /dev/input/mouse1
crw-rw---- 1 root root 13, 34 2007-09-06 12:28 /dev/input/mouse2
crw-rw---- 1 root root 13, 35 2007-09-06 12:22 /dev/input/mouse3
12:55:41 exp ~  ☎  dmesg |tail
[12464.440000] input: USB HID v1.10 Mouse [USB Optical Wheel Mouse] on usb-0000:00:1d.2-1
[12977.840000] usb 1-1: new low speed USB device using uhci_hcd and address 5
[12978.020000] usb 1-1: configuration #1 chosen from 1 choice
[12978.036000] input: Logitech Optical USB Mouse as /class/input/input10
[12978.036000] input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0000:00:1d.0-1
[13292.364000] usb 3-1: USB disconnect, address 2
[13344.008000] usb 3-1: new low speed USB device using uhci_hcd and address 3
[13344.184000] usb 3-1: configuration #1 chosen from 1 choice
[13344.200000] input: USB Optical Wheel Mouse as /class/input/input11
[13344.204000] input: USB HID v1.10 Mouse [USB Optical Wheel Mouse] on usb-0000:00:1d.2-1
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2007-09-06 12:58

代码: 全选

12:57:40 exp ~  ☎  udevinfo -q path -n /dev/input/mouse1
/class/input/input3/mouse1

代码: 全选

12:55:56 exp ~  ☎  udevinfo -a -p `udevinfo -q path -n /dev/input/mouse1`

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/class/input/input3/mouse1':
    KERNEL=="mouse1"
    SUBSYSTEM=="input"
    DRIVER==""
    ATTR{dev}=="13:33"

  looking at parent device '/class/input/input3':
    KERNELS=="input3"
    SUBSYSTEMS=="input"
    DRIVERS==""
    ATTRS{modalias}=="input:b0011v0002p0007e0000-e0,1,3,k110,111,112,145,14A,14D,14E,ra0,1,18,1C,mlsfw"
    ATTRS{uniq}==""
    ATTRS{phys}=="isa0060/serio4/input0"
    ATTRS{name}=="SynPS/2 Synaptics TouchPad"

  looking at parent device '/devices/platform/i8042/serio4':
    KERNELS=="serio4"
    SUBSYSTEMS=="serio"
    DRIVERS=="psmouse"
    ATTRS{resync_time}=="0"
    ATTRS{resetafter}=="5"
    ATTRS{resolution}=="200"
    ATTRS{rate}=="80"
    ATTRS{protocol}=="SynPS/2"
    ATTRS{bind_mode}=="auto"
    ATTRS{modalias}=="serio:ty01pr00id00ex00"
    ATTRS{description}=="i8042 AUX3 port"

  looking at parent device '/devices/platform/i8042':
    KERNELS=="i8042"
    SUBSYSTEMS=="platform"
    DRIVERS=="i8042"
    ATTRS{modalias}=="i8042"

  looking at parent device '/devices/platform':
    KERNELS=="platform"
    SUBSYSTEMS==""
    DRIVERS==""
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#4

帖子 eexpress » 2007-09-06 13:16

代码: 全选

Option      "ButtonMapping" "1 2 3 6 7"
找SwapButton的,找晕了。
nnnnd这样的写法。赞扬下c\nc。
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

完整的部分。

#5

帖子 eexpress » 2007-09-06 13:27

代码: 全选

Section "InputDevice"
   Identifier  "Mouse0"
   Driver     "mouse"
   Option     "CorePointer"
   Option     "Emulate3Buttons" "no"
   Option     "Device" "/dev/input/mice"
   Option     "Protocol" "auto"
   Option     "Buttons" "12"
   Option     "ZAxisMapping" "4 5"
   Option     "ButtonMapping" "1 2 3 9 8 6 7 10 11 12"
   Option     "Resolution" "800"
EndSection
● 鸣学
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#6

帖子 zhuqin_83 » 2007-09-06 13:30

这样行么?我记得要xserver 1.4才有多点的功能。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#7

帖子 eexpress » 2007-09-06 13:35

鼠标不会有问题。
其实,关键是要一个鼠标管一个屏幕的问题。或者鼠标1管理全部,鼠标2管理显示2。
找啊找啊。
● 鸣学
回复