You are not logged in.

#1 2021-11-29 13:45:58

Quentincestino
Member
Registered: 2020-12-26
Posts: 32

[SOLVED] Xorg error when adjusting mouse's sensitivity with xinput

Hello,
When I try to change my mouse's sensitivity via xinput, I get this message:

quentin@QuentinDesktop ~> xinput set-prop 9 298 -0.75
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Serial number of failed request:  20
  Current serial number in output stream:  21

This is my devices list:

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Logitech G Pro                          	id=9	[slave  pointer  (2)]
⎜   ↳ Kingston HyperX Alloy FPS RGB Mouse     	id=14	[slave  pointer  (2)]
⎜   ↳ Kingston HyperX Alloy FPS RGB Consumer Control	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)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=8	[slave  keyboard (3)]
    ↳ Logitech PRO Consumer Control           	id=10	[slave  keyboard (3)]
    ↳ Logitech PRO                            	id=11	[slave  keyboard (3)]
    ↳ Kingston HyperX Alloy FPS RGB           	id=12	[slave  keyboard (3)]
    ↳ Kingston HyperX Alloy FPS RGB           	id=13	[slave  keyboard (3)]
    ↳ Kingston HyperX Alloy FPS RGB System Control	id=15	[slave  keyboard (3)]
    ↳ Kingston HyperX Alloy FPS RGB Keyboard  	id=17	[slave  keyboard (3)]
    ↳ Eee PC WMI hotkeys                      	id=18	[slave  keyboard (3)]
    ↳ Logitech G Pro                          	id=19	[slave  keyboard (3)]
    ↳ Kingston HyperX Alloy FPS RGB Consumer Control	id=20	[slave  keyboard (3)]

With a quick search on internet I found that some people resolved this by just adding QT_X11_NO_MITSHM=1 on /etc/environment, but it doesn't work on my case.

How can I fix it ?

Last edited by Quentincestino (2021-11-29 14:16:51)

Offline

#2 2021-11-29 14:07:49

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [SOLVED] Xorg error when adjusting mouse's sensitivity with xinput

Please post the device properties.

$ xinput list-props 9

sys2064

Offline

#3 2021-11-29 14:10:08

Quentincestino
Member
Registered: 2020-12-26
Posts: 32

Re: [SOLVED] Xorg error when adjusting mouse's sensitivity with xinput

Hello,

There is the device's properties:

quentin@QuentinDesktop ~> xinput list-props 9
Device 'Logitech G Pro ':
	Device Enabled (153):	1
	Coordinate Transformation Matrix (155):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Natural Scrolling Enabled (288):	0
	libinput Natural Scrolling Enabled Default (289):	0
	libinput Scroll Methods Available (290):	0, 0, 1
	libinput Scroll Method Enabled (291):	0, 0, 0
	libinput Scroll Method Enabled Default (292):	0, 0, 0
	libinput Button Scrolling Button (293):	2
	libinput Button Scrolling Button Default (294):	2
	libinput Button Scrolling Button Lock Enabled (295):	0
	libinput Button Scrolling Button Lock Enabled Default (296):	0
	libinput Middle Emulation Enabled (297):	0
	libinput Middle Emulation Enabled Default (298):	0
	libinput Accel Speed (299):	0.000000
	libinput Accel Speed Default (300):	0.000000
	libinput Accel Profiles Available (301):	1, 1
	libinput Accel Profile Enabled (302):	1, 0
	libinput Accel Profile Enabled Default (303):	1, 0
	libinput Left Handed Enabled (304):	0
	libinput Left Handed Enabled Default (305):	0
	libinput Send Events Modes Available (273):	1, 0
	libinput Send Events Mode Enabled (274):	0, 0
	libinput Send Events Mode Enabled Default (275):	0, 0
	Device Node (276):	"/dev/input/event25"
	Device Product ID (277):	1133, 16505
	libinput Drag Lock Buttons (306):	<no items>
	libinput Horizontal Scroll Enabled (307):	1
	libinput Scrolling Pixel Distance (308):	15
	libinput Scrolling Pixel Distance Default (309):	15

Offline

#4 2021-11-29 14:15:09

Quentincestino
Member
Registered: 2020-12-26
Posts: 32

Re: [SOLVED] Xorg error when adjusting mouse's sensitivity with xinput

Okay, I'm sorry for this topic, I just noticed that the "Accel Speed" property switched from id 298 to id 299 for an unknown reason, so I wasn't setting the right property.

Offline

#5 2021-11-29 16:34:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,478
Website

Re: [SOLVED] Xorg error when adjusting mouse's sensitivity with xinput

The numerical values should not be expected to remain stable.  Use names not ids.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB