Blender ignores xinput mouse sensitivity (as a result, mouse cursor randomly jumps when I attempt to navigate, move objects, etc.) #48901
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#48901
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Linux, Debian Sid, GTX 680
Short description of error
This is what happens: if mouse sensitivity is default, everything works fine. If mouse sensitivity is, for example, 0.9 instead of 1, and I try to rotate view by holding middle mouse button, when I release it, mouse cursor jumps to position it would reach with default sensitivity. Automatic cursor wrapping in Blender also ignores xinput sensitivity, so if it happens, mouse cursor will jump unexpectedly even before I release mouse button. The same thing happens when I try to rotate or move objects. When sensitivity is set to low value, for example, 0.3, mouse cursor jumps to edge of the screen almost every time I release mouse button or move/rotate some object with mouse. And because of this, mouse does not wrap around from one edge of the screen to another seemlessly, it just starts behaving crazy, like rotating view at extreme speed.
I have very sensitive mouse, and I cannot change its hardware sensitivity. So I have to adjust it with xinput, otherwise cursor will be "flying" too fast. This used to work with Blender in older distros where it was possible to adjust "Device Accel Constant Deceleration" to change mouse sensitivity. However, this seems to be not possible for a while now because this xinput property was removed. Instead, to change mouse sensitivity I have to adjust Coordinate Transformation Matrix. This works everywhere except in Blender. In case somebody does not know this, in Linux I have to use xinput to adjust sensitivity, because as far as I know there is no other way to do it (for example, in KDE systemsettings I can adjust only acceleration, and even if I set it below 1x, even to minimum 0.1x, it does not do much, and this is expected, since acceleration and sensitivity are completely different settings).
Exact steps for others to reproduce the error
Set mouse sensitivity to anything but 1. For example:
id="pointer:Mouseemu virtual mouse"; speed=0.3; xinput set-prop $id "Coordinate Transformation Matrix" $speed, 0, 0, 0, $speed, 0, 0, 0, 1
Of course, you need to replace pointer name (text after "pointer:" prefix) with your own (if you do not know it, see output from "xinput list"). Then try to rotate view with middle button. You will see cursor to jump unexpectedly when you release mouse button or if you hit edge of the screen.
As far as I can tell, it feels like Blender always assumes default "Coordinate Transformation Matrix", and ignores real one. And as a result, Blender does not calculate mouse position correctly. This pretty much makes Blender practically unusable with mouse which needs xinput sensitivity adjustment. So far I was not able to found any workaround, and it is very hard to work with default sensitivity in my case. If you need more information, please let me know.
Changed status to: 'Open'
Added subscriber: @Boris16
#85014 was marked as duplicate of this issue
#62483 was marked as duplicate of this issue
Added subscriber: @ideasman42
Confirmed, note that this feature probably isn't very widely used, since we've had cursor warping on X11 for ~7 years, and this is the first time the problems been reported.
From checking on this, it seems we need to call
XIGetKnownProperty(XI_PROP_TRANSFORM)
, see: https://lists.x.org/archives/xorg-devel/2013-April/035966.htmlNote that for cursor speed its common to use:
xinput --set-prop $id 'Device Accel Constant Deceleration' 1.3
(where $id is you're device id).
Set as TODO:
https://wiki.blender.org/index.php/Dev:Source/Development/Todo/Install-OS#Linux
Changed status from 'Open' to: 'Archived'
The reason why it was not reported yet probably because in the past it was possible to use "Device Accel Constant Deceleration" but some time ago this property was removed from xinput (as I have already mention in the previous message).
The command you have suggested in Debian Sid will return error: "property 'Device Accel Constant Deceleration' doesn't exist, you need to specify its type and format".
Please note I have used Constant Deceleration for many years in the past. But after upgrading my distro I cannot use it because Constant Deceleration is not supported by xinput anymore. So I am forced to use "Coordinate Transformation Matrix" instead. I do not have a choice unfortunately. Unless I'm missing something, everyone who uses Debian Sid will be affected by this bug if they attempt to change mouse sensitivity.
Thanks for looking into this issue.
This issue was referenced by
7065022f7a
Changed status from 'Archived' to: 'Resolved'
The fix for this caused #50383, so this has been reverted.
Since this is a limit of xorg, setting this as a TODO.
Fix can be reinstated once https://gitlab.freedesktop.org/xorg/lib/libxi/issues/5 is resolved.
Changed status from 'Resolved' to: 'Archived'
Added subscriber: @BlueHerb
Added subscriber: @tommie
Added subscriber: @ThomasKaldahl
Problem persists in 3.2.0.
Changed status from 'Archived' to: 'Confirmed'
Added subscribers: @lisyarus, @sh6heer, @Pik-1, @JulianEisel, @filedescriptor