Ask Your Question
1

Enable MouseWheel emulation

asked 2011-12-09 12:49:30 -0600

dmachop gravatar image

updated 2011-12-09 12:50:49 -0600

How to use 'EmulateMouseWheel' (When the scrollbar is clicked and dragged, the page scrolls) for a mouse connected?

I have found out the device (usb optical mouse)through

find /dev/input/event* -exec udevadm info --attribute-walk --name={} \; | grep -e product -e name | sort -u

edit retag flag offensive close merge delete

Comments

Are you using Trackpoint ?

SoumyaC gravatar imageSoumyaC ( 2011-12-09 13:00:51 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted
0

answered 2012-07-09 12:46:32 -0600

Hello, Great tip! After struggling to get a start on actually understanding about X's handling of my breed of rodent's buttons and scrolling; You got me pointed in the right direction. I now understand about using xinput to set the evdev options for my aged (but very comfortable) Logitech Trackman Marble FX (PS/2 interface) trackball!

One helpful addition to the thread; Use xev to find out the assignment of the button's numbers on a device. Mine are 1 2 3 8 (certainly not what I would have expected).

edit flag offensive delete link more
0

answered 2011-12-09 13:25:40 -0600

SoumyaC gravatar image

Do you use trackballs or your mouse doesn't have wheels ? Do you want to map wheel like features with any other mouse button ?

For any wheel related emulation you can use "Evdev Wheel Emulation" property and set its value for your respective mouse via xinput. Playing with few parameters from the command -

# xinput --list-props "Device Name"

Evdev Wheel Emulation (281):    0
Evdev Wheel Emulation Axes (282):   0, 0, 4, 5
Evdev Wheel Emulation Inertia (283):    10
Evdev Wheel Emulation Timeout (284):    200
Evdev Wheel Emulation Button (285): 4

Normally the wheel button events are 4 and 5. Check more details with -

$ man evdev
edit flag offensive delete link more
0

answered 2011-12-09 13:24:12 -0600

lzap gravatar image

To find your device ID or NAME:

xinput --list --short

then apply this:

xinput --set-prop 11 "Evdev Wheel Emulation" 1

where 11 is the id of your mouse from the command above. There are few more parameters you can set:

xinput --list-props 11
edit flag offensive delete link more
0

answered 2012-07-09 12:45:14 -0600

Hello, Great tip! After struggling to get a start on actually understanding about X's handling of my breed of rodent's buttons and scrolling; You got me pointed in the right direction. I now understand about using xinput to set the evdev options for my aged (but very comfortable) Logitech Trackman Marble FX (PS/2 interface) trackball!

One helpful addition to the thread; Use xev to find out the assignment of the button's numbers on a device. Mine are 1 2 3 8 (certainly not what I would have expected).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2011-12-09 12:49:30 -0600

Seen: 2,909 times

Last updated: Jul 09 '12