18

The issue is similar to this: Thinkpad middle button scrolling

But here, I have an average computer. Basically, when I press the middle button in Windows and move the cursor a little from the starting position the page starts scrolling which is very convenient because I don't have to scroll the wheel madly.

I looked at the second solution to the question mentioned earlier; the button drop down menu is greyed out.

Thanks in advance.

2 Answers2

13

You can enable it during the current session using the xinput command. First of all, determine the ID of the device you want by running the xinput list command. The output should look something like the following:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                     id=8    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                     id=9    [slave  pointer  (2)]
⎜   ↳ Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint    id=12   [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)]
    ↳ Logitech Logitech USB Headset             id=10   [slave  keyboard (3)]
    ↳ Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint    id=11   [slave  keyboard (3)]

Note the ID associated with the device you want to enable mouse wheel emulation for, and then run the following two commands:

xinput set-int-prop $ID "Evdev Wheel Emulation" 8 1
xinput set-int-prop $ID "Evdev Wheel Emulation Button" 8 2

The first command enables mouse wheel emulation, while the second sets it to activate when the middle (second) button is held. You can disable wheel emulation by running:

xinput set-int-prop $ID "Evdev Wheel Emulation" 8 0
11

I'm wondering if you are talking about 'Autoscrolling' in Firefox here? I don't know how to get the feature system-wide, but if you are looking to enable middle click scrolling in Firefox, go to Edit/Preferences/Advanced/General and click Use autoscrolling. (Note that if you middle-click while hovering on a link, you will open that link in a new tab).

If this is what you want, you should update the question to mention Firefox. If not, sorry I couldn't help. enable autoscrolling

Tom Brossman
  • 13,297