linux: dual mice - multiple mice with multiple mouse pointers? [closed]
开发者_运维知识库
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this questionis it possible to use more then one mouse in Linux so that there's two pointers controlled by two mice?
or
can i get raw data like x,y from a second mouse even if there's no pointer?
I've found a way to do it, but it causes major tearing with Gnome.
Open a terminal and type in
xinput
(all commands should be done as normal user).
Look at the id of the one of your mice.Then create a new master device with this command
xinput create-master "name"
.Now you just need to reattach one of your mice to the new master
xinput reattach "mouse id" "new master id"
.
Note this works but is not practical, at least until it's implemented properly in the GUI.
To revert this you will probably have to do it blind, but the commands are as follows xinput reattach "mouse id" "old master id"
then xinput remove-master "new master id"
.
Notes:
- "name" means the name to give the new master, anything will work
- "mouse id" is the id number of the mouse you want to attach to the new master
- "new master id" is the id number of the new master you created
- "old master id" is the id number of the master that was there to begin with
Easy. Use a program like openpie and write your own multiple mouse script (allot easier than it sounds, I think you can find a pre-written dual mouse glovepie script [just google 'glovepie dual mouse')] NB: you will need more than one input method for separate mouse control.
good luck I used 6 mice at once :)
You'll need to replace your window manager with one that supports double mice. The only one that does this is an experimental one based off of icewm.
http://multicursor-wm.sourceforge.net/
You'll also need to update your XServer to support multiple mice.
http://en.wikipedia.org/wiki/Multi-Pointer_X
精彩评论