User Tools

Site Tools


ubuntu:mouse:determine_the_mouse_properties

This is an old revision of the document!


Ubuntu - Mouse - Determine the Mouse Properties

Determine the Mouse to use

xinput | grep -m 1 "DeathAdder" | sed 's/^.*id=\([0-9]*\)[ \t].*$/\1/'

returns:

8

NOTE: See Determine the Mouse.

  • This shows that the id of the mouse is 8 in this case.
  • The id is needed, as the name of the mouse is not unique.
  • Trying to use the name, might return an error:
    xinput --list-props "Razer Razer DeathAdder V2"
  • returns:
    Warning: There are multiple devices matching 'Razer Razer DeathAdder V2'.
    To ensure the correct one is selected, please use the device ID, or prefix the
    device name with 'pointer:' or 'keyboard:' as appropriate.
     
    unable to find device Razer Razer DeathAdder V2

List the Mouse Properties

xinput list-props 8

returns:

Device 'Razer Razer DeathAdder V2':
	Device Enabled (155):	1
	Coordinate Transformation Matrix (157):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Natural Scrolling Enabled (291):	0
	libinput Natural Scrolling Enabled Default (292):	0
	libinput Scroll Methods Available (293):	0, 0, 1
	libinput Scroll Method Enabled (294):	0, 0, 0
	libinput Scroll Method Enabled Default (295):	0, 0, 0
	libinput Button Scrolling Button (296):	2
	libinput Button Scrolling Button Default (297):	2
	libinput Middle Emulation Enabled (298):	0
	libinput Middle Emulation Enabled Default (299):	0
	libinput Accel Speed (300):	0.698529
	libinput Accel Speed Default (301):	0.000000
	libinput Accel Profiles Available (302):	1, 1
	libinput Accel Profile Enabled (303):	1, 0
	libinput Accel Profile Enabled Default (304):	1, 0
	libinput Left Handed Enabled (305):	0
	libinput Left Handed Enabled Default (306):	0
	libinput Send Events Modes Available (276):	1, 0
	libinput Send Events Mode Enabled (277):	0, 0
	libinput Send Events Mode Enabled Default (278):	0, 0
	Device Node (279):	"/dev/input/event7"
	Device Product ID (280):	5426, 132
	libinput Drag Lock Buttons (307):	<no items>
	libinput Horizontal Scroll Enabled (308):	1

NOTE: The id of 8 is used as determined by the previous step.


ubuntu/mouse/determine_the_mouse_properties.1635152054.txt.gz · Last modified: 2021/10/25 08:54 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki