Tilt scroll wheel not recognized as separate button

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
kshksh
Level 1
Level 1
Posts: 1
Joined: Sat Jun 03, 2023 4:22 pm

Tilt scroll wheel not recognized as separate button

Post by kshksh »

I have a new mouse - Razer Mamba Tournament Edition. It has a scroll wheel that, in addition to scrolling up/down and pressing, can be tilted sideways both ways. However, this doesn't seem to be recognized by the system as separate button, but as "faster" scrolling.

Running

Code: Select all

xev -event button
produces following results:
When tilted left:

Code: Select all

ButtonPress event, serial 25, synthetic NO, window 0x5000001,
    root 0x6c5, subw 0x5000002, time 1253114, (41,46), root:(69,102),
    state 0x10, button 5, same_screen YES

ButtonRelease event, serial 25, synthetic NO, window 0x5000001,
    root 0x6c5, subw 0x5000002, time 1253114, (41,46), root:(69,102),
    state 0x1010, button 5, same_screen YES
When tilted right:

Code: Select all

ButtonPress event, serial 25, synthetic NO, window 0x5000001,
    root 0x6c5, subw 0x5000002, time 1273514, (29,47), root:(57,103),
    state 0x10, button 4, same_screen YES

ButtonRelease event, serial 25, synthetic NO, window 0x5000001,
    root 0x6c5, subw 0x5000002, time 1273514, (29,47), root:(57,103),
    state 0x810, button 4, same_screen YES
This exact same message (with different time and coordinates, of course, but everything else being identical) shows up when I scroll down and up, respectively, using the wheel. The difference is that when tilting the wheel, the messages appear in rapid succession (alternating between press and release events); no matter for how short time I tilt, there's always at least 4 press and 4 release events.

Running

Code: Select all

xinput list-props 13
yields:

Code: Select all

Device 'Razer Razer Mamba Tournament Edition':
	Device Enabled (156):	1
	Coordinate Transformation Matrix (158):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Natural Scrolling Enabled (335):	0
	libinput Natural Scrolling Enabled Default (336):	0
	libinput Scroll Methods Available (340):	0, 0, 1
	libinput Scroll Method Enabled (341):	0, 0, 0
	libinput Scroll Method Enabled Default (342):	0, 0, 0
	libinput Button Scrolling Button (343):	2
	libinput Button Scrolling Button Default (344):	2
	libinput Button Scrolling Button Lock Enabled (345):	0
	libinput Button Scrolling Button Lock Enabled Default (346):	0
	libinput Middle Emulation Enabled (347):	0
	libinput Middle Emulation Enabled Default (348):	0
	libinput Accel Speed (349):	0.000000
	libinput Accel Speed Default (350):	0.000000
	libinput Accel Profiles Available (351):	1, 1
	libinput Accel Profile Enabled (352):	1, 0
	libinput Accel Profile Enabled Default (353):	1, 0
	libinput Left Handed Enabled (354):	0
	libinput Left Handed Enabled Default (355):	0
	libinput Send Events Modes Available (279):	1, 0
	libinput Send Events Mode Enabled (280):	0, 0
	libinput Send Events Mode Enabled Default (281):	0, 0
	Device Node (282):	"/dev/input/event5"
	Device Product ID (283):	5426, 70
	libinput Drag Lock Buttons (337):	<no items>
	libinput Horizontal Scroll Enabled (338):	1
	libinput Scrolling Pixel Distance (356):	15
	libinput Scrolling Pixel Distance Default (357):	15
	libinput High Resolution Wheel Scroll Enabled (339):	1
None of these seems like it would help recognize tilting wheel as separate buttons.

The fact that xev sees the tilt wheel as the same buttons makes everything I found about remapping in Linux useless, as it all assumed that the numbers should be different.

I'm running Linux Mint 21.1 64-bit.

Is there a way to make these extra buttons actually recognized as separate, so that I can use them?
Last edited by LockBot on Sun Dec 03, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31738
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Tilt scroll wheel not recognized as separate button

Post by SMG »

kshksh wrote: Mon Jun 12, 2023 7:45 am I have a new mouse - Razer Mamba Tournament Edition.
Welcome to the forum, kshksh.

Did you add any special software to have your mouse recognized? I did find there is OpenRazer, but I don't know if that would help this situation.

If you want to try it, I suggest taking a Timeshift snapshot first.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Hardware Support”