Logitech Master 2S Arch Linux

From cod3v

Introduction

Set the vertical scroll (Wheel) speed and set thumb wheel to be arrow keys left right. Solution:

  • The vertical scroll speed is managed easiest by Solaar.
  • The thumb wheel to arrow keys is done using xbindkeys. Restart that before using kdenlive.

Use

xev

to see the inputs of the mouse.

Thumb wheel on GIMP does horizontal scrolling for buttons 6 and 7, also thumb wheel.

Scroll Speed

Logid

Install following the instructions, but cannot find the mouse:

sudo logid -v
[INFO] Config file does not exist, using empty config.
[DEBUG] Unsupported device /dev/hidraw3 ignored
[DEBUG] Ignoring virtual node on /dev/hidraw1
[INFO] Detected receiver at /dev/hidraw0

It should say also:

[INFO] Device found: Wireless Mouse MX Master 3 on /dev/hidraw1:1

or something similar. But it didn't.

After changing the configuration file (/etc/logid.cfg), you need to run
sudo systemctl restart logid
for the changes to be taken into account.


https://wiki.archlinux.org/title/Logitech_MX_Master

https://danishshakeel.me/configure-logitech-mx-master-3-on-linux-logiops/

Pipeer

Solaar

[[File:Solaar scrollspeed.png|thumb]Set Scroll Speed Resolution.]


Finds the mouse, and the settings for vertical scroll speed is called scroll speed resolution.

Remove the USB dongle and plug it back, after switching smooth scrolling option in Solaar.

Resetmsmice https://sourceforge.net/projects/resetmsmice/

Imwheel


https://pwr-solaar.github.io/Solaar/devices

XInput

> xinput list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Logitech MX Master 2S                   	id=9	[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)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=8	[slave  keyboard (3)]
    ↳ Logitech MX Master 2S                   	id=13	[slave  keyboard (3)]
    ↳ Eee PC WMI hotkeys                      	id=10	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=11	[slave  keyboard (3)]
    ↳ LogiOps Virtual Input                   	id=12	[slave  keyboard (3)]
> xinput list-props 9
Device 'Logitech MX Master 2S':
	Device Enabled (161):	1
	Coordinate Transformation Matrix (163):	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 Button Scrolling Button Lock Enabled (298):	0
	libinput Button Scrolling Button Lock Enabled Default (299):	0
	libinput Middle Emulation Enabled (300):	0
	libinput Middle Emulation Enabled Default (301):	0
	libinput Rotation Angle (274):	0.000000
	libinput Rotation Angle Default (275):	0.000000
	libinput Accel Speed (302):	0.000000
	libinput Accel Speed Default (303):	0.000000
	libinput Accel Profiles Available (304):	1, 1, 1
	libinput Accel Profile Enabled (305):	1, 0, 0
	libinput Accel Profile Enabled Default (306):	1, 0, 0
	libinput Accel Custom Fallback Points (307):	<no items>
	libinput Accel Custom Fallback Step (308):	0.000000
	libinput Accel Custom Motion Points (309):	<no items>
	libinput Accel Custom Motion Step (310):	0.000000
	libinput Accel Custom Scroll Points (311):	<no items>
	libinput Accel Custom Scroll Step (312):	0.000000
	libinput Left Handed Enabled (313):	0
	libinput Left Handed Enabled Default (314):	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/event18"
	Device Product ID (280):	1133, 16489
	libinput Drag Lock Buttons (315):	<no items>
	libinput Horizontal Scroll Enabled (316):	1
	libinput Scrolling Pixel Distance (317):	15
	libinput Scrolling Pixel Distance Default (318):	15
	libinput High Resolution Wheel Scroll Enabled (319):	1
xinput set-prop 9 'Device Accel Constant Deceleration' 3
  • The correct one is 'Evdev Scrolling Distance', but I can't seem to get it to go faster than 1 1 1.
  • For me it was xinput set-prop 10 'libinput Accel Speed' 1


https://unix.stackexchange.com/questions/441579/parameters-of-evdev-scrolling-distance-meaning/442666#442666

Thumb Wheel

According to

xev

the the thumb wheel acts as activating buttons 6 and 7 on scroll.

Solaar (again)

Enable the thumbwheel diversion has an effect on xev.

Try to run using solaar -ddd

The Solaar document page is here: https://pwr-solaar.github.io/Solaar/rules


https://www.reddit.com/r/linuxhardware/comments/t7dque/deleted_by_user/

The config file is
.config/solaar/rules.yaml
or not. Couldn't find it.

https://github.com/pwr-Solaar/Solaar/issues/1584

Xbindkeys

https://devicetests.com/configure-logitech-mx-master-thumb-button-meta-key-ubuntu Need

  • xbindkeys binds the keys
  • xautomation automates tasks in X, including a tool to simulate keyboard input
  • x11-utils

Didn't work:

  • xdotool

Good(?) tutorial: https://www.nielsvm.eu/kdetips/binding-mouse-buttons-to-keyboard-shortcuts/ Following that tutoria enables to write eg "k" to the terminal:

# Bind thumb wheel mouse button to Ctrl+F9
"xte 'key k'"
  b:7

after restarting xbindkeys. To find the key, use eg

xbindkeys --key

So, the xbindkeys rule is

"xte 'key Left'"
  b:6
"xte 'key Right'"
  b:7

References