multi Multiple mouse kubuntu linux


ORIGINAL ARTICLE FROM  http://ao2.it/en/blog/2010/01/19/poor-mans-multi-touch-using-multiple-mice-xorg

i will save the stuff here just in case the link will not be accessible

on kubuntu you can use multi mouse easily
yuu need just to do :

  • get the id for the new mouse  with xinput list command
  • add the new pointer
  • link the new pointer with the new mouse
  • eventually map the buttons of the new mouse differently

so FOR EXAMPLE

xinput list

Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ HID 04f3:0103 id=11 [slave pointer (2)]
⎜ ↳ Logitech USB Optical Mouse id=12 [slave pointer (2)]               MY MOUSE NUMBER 1 
⎜ ↳ SynPS/2 Synaptics TouchPad id=16 [slave pointer (2)]
↳ USB OPTICAL MOUSE id=21 [slave pointer (2)]                           THE NEW MOUSE 
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Sony Vaio Keys id=7 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Power Button id=9 [slave keyboard (3)]
↳ HID 04f3:0103 id=10 [slave keyboard (3)]
↳ UVC Camera (046d:081b) id=13 [slave keyboard (3)]
↳ USB2.0 Camera id=14 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=15 [slave keyboard (3)]

create a new cursor

xinput create-master newmousename

now how you should see more lines just like these

⎡ newmousename pointer id=17 [master pointer (18)]
⎜ ↳ newmousename XTEST pointer id=19 [slave pointer (17)]
⎣ newmousename keyboard id=18 [master keyboard (17)]
↳ newmousename XTEST keyboard id=20 [slave keyboard (18)]

 

attach the device id 21 in my case to the new cursor

xinput reattach 21 “newmousename pointer”

map if you want differently the new mouse this step is not required of course if you are satisfied with

xinput set-button-map 12 1 2 3

if you want delete the new pointer just do

xinput remove-master 17

MAKE SURE YOU REMOVE THE MASTER AND NOT THE SLAVE :d

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: