You are not logged in.

#1 2011-08-04 10:30:03

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

[Solved] Mouse speed with evdev

The old mouse driver in xorg had an option

Option "Sensitivity" "float"

that can be used to slow down high sensitivity mouse. Is it possible to do the same with the new evdev driver (having found nothing in the Wiki). For now I have

Option "AutoAddDevices" "off"

in the ServerFlags section and I continue to use the old mouse driver (as xorg < 1.4). Can I use the new feature without losing the Sensitivity option?

Edited: The evdev driver support 'Option "ConstantDeceleration" <Float>'  that do the trick; it was not so easy to find it.

Last edited by olive (2011-09-03 18:30:42)

Offline

#2 2011-08-04 10:33:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Mouse speed with evdev

man mouse wrote:

       Option "Sensitivity" "float"
              Mouse  movements  are  multiplied  by this float before being processed. Use this
              mechanism to slow down high resolution mice. Because values bigger than 1.0  will
              result  in  not  all pixels on the screen being accessible, you should better use
              mouse acceleration (see man xset) for speeding up low resolution mice.   Default:
              1.0

Offline

#3 2011-08-04 10:38:56

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [Solved] Mouse speed with evdev

karol wrote:

man mouse

This document the mouse driver. But the new default configuration with hotplug support use the evdev driver instead. I have not found any similar option with evdev (except maybe this old patch: http://jasonxh.blogspot.com/2008/02/slo … mouse.html )

Offline

#4 2011-08-04 10:39:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Mouse speed with evdev

Have you tried with xorg.conf?
Edit: Ah, I get it, it won't be recognized anyway.


How about that xset? Can it be used to slow down too?

Or maybe xinput:

[karol@black ~]$ xinput --list
⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
⎜   ↳ ImExPS/2 Generic Explorer Mouse             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)]
    ↳ AT Translated Set 2 keyboard                id=8    [slave  keyboard (3)]
[karol@black ~]$ xinput --list-props 9
Device 'ImExPS/2 Generic Explorer Mouse':
    Device Enabled (121):    1
    Coordinate Transformation Matrix (123):    1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (242):    0
    Device Accel Constant Deceleration (243):    1.000000
    Device Accel Adaptive Deceleration (244):    1.000000
    Device Accel Velocity Scaling (245):    10.000000
    Evdev Axis Inversion (246):    0, 0
    Evdev Axes Swap (248):    0
    Axis Labels (249):    "Rel X" (131), "Rel Y" (132)
    Button Labels (250):    "Button Left" (124), "Button Middle" (125), "Button Right" (126), "Button Wheel Up" (127), "Button Wheel Down" (128), "Button Horiz Wheel Left" (129), "Button Horiz Wheel Right" (130), "Button Side" (240), "Button Extra" (241), "Button Unknown" (239), "Button Unknown" (239), "Button Unknown" (239), "Button Unknown" (239)
    Evdev Middle Button Emulation (251):    0
    Evdev Middle Button Timeout (252):    50
    Evdev Wheel Emulation (253):    0
    Evdev Wheel Emulation Axes (254):    0, 0, 4, 5
    Evdev Wheel Emulation Inertia (255):    10
    Evdev Wheel Emulation Timeout (256):    200
    Evdev Wheel Emulation Button (257):    4
    Evdev Drag Lock Buttons (258):    0

There are some 'Device Accel' properties listed, so maybe this is what you're looking for.

Last edited by karol (2011-08-04 10:46:39)

Offline

#5 2011-08-04 11:05:50

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [Solved] Mouse speed with evdev

The "Device Accel Velocity Scaling" seems to have no effect on my mouse. The acceleration is another things: the mouse is accelerated for fast movement by a given factor. What I would like is just to keep the acceleration factor as is and multiply the speed of everything by a constant factor. This was exactly the Sensitivity option of the mouse driver.

Offline

#6 2011-08-04 11:20:49

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] Mouse speed with evdev

olive wrote:

keep the acceleration factor as is

Do you want acceleration? If not, do what I do.

Offline

Board footer

Powered by FluxBB