I have bought a new mouse, and the scroll wheel changes of direction: If I move up the wheel, the wheel moves up in the screen, but after of a few moments, it reverses the direction: it goes down, The same thing happes in the other direction.
I have tested with xev. When I scroll the wheel in a only direction, it alternates between buttons 4 and 5. If I scroll up the wheel xev: receives 10 hits from button "5", and after 6 hits from button '4', and cycles: 10 times button "5", 6 times button "4", 10 times button "5", 6 times button "4", 10 times button "5", ...... The model of mouse is: Maxtrack from Trust. web page: trust.com/17179-02 My NetBSD is 6.1.2./ amd64. I have tested with the last kernel of NetBSD 6. pc2$ dmesg|grep wsmouse wsmouse0 at ums0 mux 0 wsmouse1 at ums1 mux 0 wsmouse0 at ums0 mux 0 wsmouse1 at ums1 mux 0 wsmouse0 at ums0 mux 0 wsmouse1 at ums1 mux 0 wsmouse0: detached wsmouse0 at ums0 mux 0 This is the outpout of dmesg. wsmouse0 is the mouse. wsmouse1 is a conversor from usb to ps2 keyboard and ps2 mouse. pc2$ dmesg|egrep 'wsmouse|ums|uhidev' uhidev0 at uhub0 port 1 configuration 1 interface 0 uhidev0: vendor 0x1bcf USB Optical Mouse, rev 2.00/0.14, addr 2, iclass 3/1 uhidev0: 1 report ids ums0 at uhidev0 reportid 1: 5 buttons, W and Z dirs wsmouse0 at ums0 mux 0 uhidev1 at uhub1 port 1 configuration 1 interface 0 uhidev1: Semi Tech Semi Tech PS/2 Keyboard - PS/2 Mouse, rev 1.01/0.01, addr 2, iclass 3/1 ukbd0 at uhidev1 uhidev2 at uhub1 port 1 configuration 1 interface 1 uhidev2: Semi Tech Semi Tech PS/2 Keyboard - PS/2 Mouse, rev 1.01/0.01, addr 2, iclass 3/1 ums1 at uhidev2: 3 buttons and Z dir wsmouse1 at ums1 mux 0 uhidev0 at uhub3 port 1 configuration 1 interface 0 uhidev0: vendor 0x1bcf USB Optical Mouse, rev 2.00/0.14, addr 2, iclass 3/1 uhidev0: 1 report ids ums0 at uhidev0 reportid 1: 5 buttons, W and Z dirs wsmouse0 at ums0 mux 0 uhidev1 at uhub1 port 1 configuration 1 interface 0 uhidev1: Semi Tech Semi Tech PS/2 Keyboard - PS/2 Mouse, rev 1.01/0.01, addr 2, iclass 3/1 ukbd0 at uhidev1: 8 modifier keys, 6 key codes uhidev2 at uhub1 port 1 configuration 1 interface 1 uhidev2: Semi Tech Semi Tech PS/2 Keyboard - PS/2 Mouse, rev 1.01/0.01, addr 2, iclass 3/1 ums1 at uhidev2: 3 buttons and Z dir wsmouse1 at ums1 mux 0 uhidev0 at uhub0 port 1 configuration 1 interface 0 uhidev0: vendor 0x1bcf USB Optical Mouse, rev 2.00/0.14, addr 2, iclass 3/1 uhidev0: 1 report ids ums0 at uhidev0 reportid 1: 5 buttons, W and Z dirs wsmouse0 at ums0 mux 0 uhidev1 at uhub3 port 1 configuration 1 interface 0 uhidev1: Semi Tech Semi Tech PS/2 Keyboard - PS/2 Mouse, rev 1.01/0.01, addr 2, iclass 3/1 ukbd0 at uhidev1 uhidev2 at uhub3 port 1 configuration 1 interface 1 uhidev2: Semi Tech Semi Tech PS/2 Keyboard - PS/2 Mouse, rev 1.01/0.01, addr 2, iclass 3/1 ums1 at uhidev2: 3 buttons and Z dir wsmouse1 at ums1 mux 0 wsmouse0: detached ums0: detached uhidev0: detached uhidev0: at uhub0 port 1 (addr 2) disconnected uhidev0 at uhub0 port 1 configuration 1 interface 0 uhidev0: vendor 0x1bcf USB Optical Mouse, rev 2.00/0.14, addr 2, iclass 3/1 uhidev0: 1 report ids ums0 at uhidev0 reportid 1: 5 buttons, W and Z dirs wsmouse0 at ums0 mux 0 The output of Xorg.log: [ 140.817] (**) Option "CorePointer" [ 140.818] (**) Mouse0: always reports core events [ 140.825] (**) Option "Protocol" "wsmouse" [ 140.825] (**) Option "Device" "/dev/wsmouse" [ 140.825] (**) Mouse0: Protocol: "wsmouse" [ 140.825] (**) Mouse0: always reports core events [ 140.899] (==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50 [ 140.899] (**) Mouse0: ZAxisMapping: buttons 4 and 5 [ 140.899] (**) Mouse0: Buttons: 9 [ 140.899] (II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE) [ 140.899] (**) Mouse0: (accel) keeping acceleration scheme 1 [ 140.899] (**) Mouse0: (accel) acceleration profile 0 [ 140.899] (**) Mouse0: (accel) acceleration factor: 2.000 [ 140.899] (**) Mouse0: (accel) acceleration threshold: 4 The section of xorg.conf: (I have tested several options of ZAxisMapping without success) Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "wsmouse" Option "Device" "/dev/wsmouse" # Option "Buttons" "9" # Option "ZAxisMapping" "4 5 6 7" # Option "ZAxisMapping" "4 5" EndSection