[Mageia-discuss] Problems with new cordless mice

Deri James deri at chuzzlewit.myzen.co.uk
Wed Oct 3 13:09:23 CEST 2012


On Tuesday 02 Oct 2012 15:42:16 Marc Paré wrote:
> I am having problems with one of my Mageia2 boxes. My wife had a corded
> mouse up until last week when it died. I have replaced it with 2
> cordless mice and the mouse is really choppy (the tracking). I have
> tried both mice on my main Mageia2 box and the mice are working fine.
> 
> I'm not sure what to look for the fix.
> 
> Marc

I've had problems with mice which are too severe and I can't easily control 
them (probably not your problem though). The solution was to install the 
xinput rpm, then do an "xinput list" to find out the name of your mouse:-

[derij at pip ~]$ xinput list
â¡ Virtual core pointer                         id=2    [master pointer  (3)]
â   â³ Virtual core XTEST pointer               id=4    [slave  pointer  (2)]
â   â³ Stylus1                                  id=6    [slave  pointer  (2)]
â   â³ Eraser1                                  id=7    [slave  pointer  (2)]
â   â³ Cursor1                                  id=8    [slave  pointer  (2)]
â   â³ Pad1                                     id=9    [slave  pointer  (2)]
â   â³ USB Optical Mouse                        id=15   [slave  pointer  (2)]
⣠Virtual core keyboard                        id=3    [master keyboard (2)]
    â³ Virtual core XTEST keyboard              id=5    [slave  keyboard (3)]
    â³ Power Button                             id=10   [slave  keyboard (3)]
    â³ Power Button                             id=11   [slave  keyboard (3)]
    â³ NOVATEK USB Keyboard                     id=13   [slave  keyboard (3)]
    â³ NOVATEK USB Keyboard                     id=14   [slave  keyboard (3)]
    â³ em28xx IR (em28xx #0)                    id=12   [slave  keyboard (3)]

And use the name in a command to set one of the properties, in my case  
"Device Accel Constant Deceleration".

xinput set-prop 'USB Optical Mouse' --type=float "Device Accel Constant 
Deceleration" 2.4

There are many other properties which can be set:-

[derij at pip ~]$ xinput list-props "USB Optical Mouse"
Device 'USB Optical Mouse':
        Device Enabled (125):   1
        Coordinate Transformation Matrix (127): 1.000000, 0.000000, 0.000000, 
0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Accel Profile (244):     0
        Device Accel Constant Deceleration (245):       2.400000
        Device Accel Adaptive Deceleration (246):       1.000000
        Device Accel Velocity Scaling (247):    10.000000
        Device Product ID (268):        6447, 1046
        Device Node (254):      "/dev/input/event17"
        Evdev Axis Inversion (298):     0, 0
        Evdev Axes Swap (300):  0
        Axis Labels (301):      "Rel X" (135), "Rel Y" (136)
        Button Labels (302):    "Button Left" (128), "Button Middle" (129), 
"Button Right" (130), "Button Wheel Up" (131), "Button Wheel Down" (132), 
"Button Horiz Wheel Left" (133), "Button Horiz Wheel Right" (134)
        Evdev Middle Button Emulation (286):    0
        Evdev Middle Button Timeout (287):      50
        Evdev Third Button Emulation (288):     0
        Evdev Third Button Emulation Timeout (289):     1000
        Evdev Third Button Emulation Button (290):      3
        Evdev Third Button Emulation Threshold (291):   20
        Evdev Wheel Emulation (292):    0
        Evdev Wheel Emulation Axes (293):       0, 0, 4, 5
        Evdev Wheel Emulation Inertia (294):    10
        Evdev Wheel Emulation Timeout (295):    200
        Evdev Wheel Emulation Button (296):     4
        Evdev Drag Lock Buttons (297):  0

See if any make the mouse usage easier. I put my custom settings in a file 
which gets run during KDE startup. I also have the script on the desktop since 
if the USB mouse becomes detached the settings go back to the defaults.

Cheers 

Deri



More information about the Mageia-discuss mailing list