Skip to content

Instantly share code, notes, and snippets.

@florianvazelle
Created October 16, 2022 08:41
Show Gist options
  • Save florianvazelle/864800f024edd50d92c0246f07099c85 to your computer and use it in GitHub Desktop.
Save florianvazelle/864800f024edd50d92c0246f07099c85 to your computer and use it in GitHub Desktop.
xinput command
# List all built-in and external input devices connected to the system
xinput --list
# See current status and various options active for a device
xinput --list-props <device_id>
# To enable or disable an option
xinput set-prop <device_id> <option_id> <0,1>
# For example, to allow the use of the keyboard and the mouse at the same time:
```
phlowrient@GL552VW ~ $ xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Elan Touchpad id=12 [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)]
↳ Asus Wireless Radio Control id=7 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Video Bus id=9 [slave keyboard (3)]
↳ Sleep Button id=10 [slave keyboard (3)]
↳ USB2.0 UVC HD Webcam: USB2.0 UV id=11 [slave keyboard (3)]
↳ Asus WMI hotkeys id=13 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=14 [slave keyboard (3)]
phlowrient@GL552VW ~ $ xinput --list-props 12
Device 'Elan Touchpad':
Device Enabled (186): 1
Coordinate Transformation Matrix (188): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (317): 1
libinput Tapping Enabled Default (318): 0
libinput Tapping Drag Enabled (319): 1
libinput Tapping Drag Enabled Default (320): 1
libinput Tapping Drag Lock Enabled (321): 0
libinput Tapping Drag Lock Enabled Default (322): 0
libinput Tapping Button Mapping Enabled (323): 1, 0
libinput Tapping Button Mapping Default (324): 1, 0
libinput Natural Scrolling Enabled (325): 0
libinput Natural Scrolling Enabled Default (326): 0
libinput Disable While Typing Enabled (327): 1
libinput Disable While Typing Enabled Default (328): 1
libinput Scroll Methods Available (329): 1, 1, 0
libinput Scroll Method Enabled (330): 1, 0, 0
libinput Scroll Method Enabled Default (331): 1, 0, 0
libinput Click Methods Available (332): 1, 1
libinput Click Method Enabled (333): 1, 0
libinput Click Method Enabled Default (334): 1, 0
libinput Middle Emulation Enabled (335): 0
libinput Middle Emulation Enabled Default (336): 0
libinput Accel Speed (337): 0.000000
libinput Accel Speed Default (338): 0.000000
libinput Accel Profiles Available (339): 1, 1
libinput Accel Profile Enabled (340): 1, 0
libinput Accel Profile Enabled Default (341): 1, 0
libinput Left Handed Enabled (342): 0
libinput Left Handed Enabled Default (343): 0
libinput Send Events Modes Available (302): 1, 1
libinput Send Events Mode Enabled (303): 0, 0
libinput Send Events Mode Enabled Default (304): 0, 0
Device Node (305): "/dev/input/event6"
Device Product ID (306): 1267, 5
libinput Drag Lock Buttons (344): <no items>
libinput Horizontal Scroll Enabled (345): 1
libinput Scrolling Pixel Distance (346): 15
libinput Scrolling Pixel Distance Default (347): 15
libinput High Resolution Wheel Scroll Enabled (348): 1
phlowrient@GL552VW ~ $ xinput set-prop 12 327 0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment