User Tools

Site Tools


unix:xinput

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
unix:xinput [2010/08/19 19:12]
robm
unix:xinput [2010/08/21 13:28]
robm
Line 52: Line 52:
 I then repeat this for all buttons. This trick will also be useful for testing the scroll wheel emulation later. I then repeat this for all buttons. This trick will also be useful for testing the scroll wheel emulation later.
  
-==== Enabling Emulation ====+==== Enabling Emulation (Ubuntu 10.04) ==== 
 + 
 +cf. https://wiki.ubuntu.com/X/Config/Input 
 + 
 +To enable for the current session (i.e. temporarily): 
 +<code> 
 +meermanr@ryoga:
 +$ xinput list 
 +⎡ Virtual core pointer                    id=2 [master pointer  (3)] 
 +⎜   ↳ Virtual core XTEST pointer              id=4 [slave  pointer  (2)] 
 +⎜   ↳ SynPS/2 Synaptics TouchPad              id=10 [slave  pointer  (2)] 
 +⎜   ↳ Serial Wacom Tablet                      id=12 [slave  pointer  (2)] 
 +⎜   ↳ Serial Wacom Tablet eraser              id=11 [slave  pointer  (2)] 
 +⎜   ↳ Macintosh mouse button emulation        id=13 [slave  pointer  (2)] 
 +⎜   ↳ Logitech USB Trackball                  id=14 [slave  pointer  (2)] 
 +⎜   ↳ Microsoft Natural® Ergonomic Keyboard 4000 id=16 [slave  pointer  (2)] 
 +⎣ Virtual core keyboard                    id=3 [master keyboard (2)] 
 +    ↳ Virtual core XTEST keyboard              id=5 [slave  keyboard (3)] 
 +    ↳ Power Button                            id=6 [slave  keyboard (3)] 
 +    ↳ Video Bus                                id=7 [slave  keyboard (3)] 
 +    ↳ Sleep Button                            id=8 [slave  keyboard (3)] 
 +    ↳ AT Translated Set 2 keyboard            id=9 [slave  keyboard (3)] 
 +    ↳ Microsoft Natural® Ergonomic Keyboard 4000 id=15 [slave  keyboard (3)] 
 + 
 +meermanr@ryoga:
 +$ xinput query-state "Logitech USB Trackball" 
 +2 classes : 
 +ButtonClass 
 + button[1]=up 
 + button[2]=up 
 + button[3]=up 
 + button[4]=up 
 + button[5]=up 
 + button[6]=up 
 + button[7]=up 
 + button[8]=up 
 + button[9]=up 
 +ValuatorClass Mode=Relative Proximity=In 
 + valuator[0]=151 
 + valuator[1]=388 
 + 
 +meermanr@ryoga:
 +$ xinput list-props "Logitech USB Trackball" 
 +Device 'Logitech USB Trackball': 
 + Device Enabled (117): 1 
 + Device Accel Profile (236): 0 
 + Device Accel Constant Deceleration (237): 1.000000 
 + Device Accel Adaptive Deceleration (239): 1.000000 
 + Device Accel Velocity Scaling (240): 10.000000 
 + Evdev Reopen Attempts (235): 10 
 + Evdev Axis Inversion (305): 0, 0 
 + Evdev Axes Swap (307): 0 
 + Axis Labels (308): "Rel X" (125), "Rel Y" (126) 
 + Button Labels (309): "Button Left" (118), "Button Middle" (119), "Button Right" (120), "Button Wheel Up" (121), "Button Wheel Down" (122), "Button Horiz Wheel Left" (123), "Button Horiz Wheel Right" (124), "Button Side" (581), "Button Extra" (582) 
 + Evdev Middle Button Emulation (310): 2 
 + Evdev Middle Button Timeout (311): 50 
 + Evdev Wheel Emulation (312): 1 
 + Evdev Wheel Emulation Axes (313): 0, 0, 4, 5 
 + Evdev Wheel Emulation Inertia (314): 10 
 + Evdev Wheel Emulation Timeout (315): 200 
 + Evdev Wheel Emulation Button (316): 4 
 + Evdev Drag Lock Buttons (317): 0 
 + 
 +meermanr@ryoga:
 +$ xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 8 
 + 
 +meermanr@ryoga:
 +$ xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1 
 + 
 + 
 +meermanr@ryoga:
 +$ xinput list-props "Logitech USB Trackball"Device 'Logitech USB Trackball': 
 + Device Enabled (117): 1 
 + Device Accel Profile (236): 0 
 + Device Accel Constant Deceleration (237): 1.000000 
 + Device Accel Adaptive Deceleration (239): 1.000000 
 + Device Accel Velocity Scaling (240): 10.000000 
 + Evdev Reopen Attempts (235): 10 
 + Evdev Axis Inversion (305): 0, 0 
 + Evdev Axes Swap (307): 0 
 + Axis Labels (308): "Rel X" (125), "Rel Y" (126) 
 + Button Labels (309): "Button Left" (118), "Button Middle" (119), "Button Right" (120), "Button Wheel Up" (121), "Button Wheel Down" (122), "Button Horiz Wheel Left" (123), "Button Horiz Wheel Right" (124), "Button Side" (581), "Button Extra" (582) 
 + Evdev Middle Button Emulation (310): 2 
 + Evdev Middle Button Timeout (311): 50 
 + Evdev Wheel Emulation (312): 1 
 + Evdev Wheel Emulation Axes (313): 0, 0, 4, 5 
 + Evdev Wheel Emulation Inertia (314): 10 
 + Evdev Wheel Emulation Timeout (315): 200 
 + Evdev Wheel Emulation Button (316): 8 
 + Evdev Drag Lock Buttons (317): 0 
 +</code> 
 + 
 +==== Enabling Emulation (Ubuntu 9.10) ====
 ''/etc/hal/fdi/policy/10-marblemouse.fdi'' ''/etc/hal/fdi/policy/10-marblemouse.fdi''
 <code xml> <code xml>
Line 152: Line 244:
 </note> </note>
  
-=== Where can I find a definitive list of input.x11_options? ===+==== Where can I find a definitive list of input.x11_options? ====
 http://manpages.ubuntu.com/manpages/jaunty/man4/evdev.4.html http://manpages.ubuntu.com/manpages/jaunty/man4/evdev.4.html
  
unix/xinput.txt · Last modified: 2010/08/21 13:28 by robm