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
gpointing-device-settings
solution from the other question didn't help. If this suggestion works for you but doesn't work ingpointing-device-settings
, then the bug is in that app (it is basically just a front end for twiddling xinput properties). You could follow that up with a bug report. – James Henstridge Jun 18 '11 at 16:36EmulateWheel
andEmulateWheelButton
options though). – James Henstridge Jun 18 '11 at 16:39xinput set-int-prop $ID "Evdev Wheel Emulation" 8 1 Invalid format 1
So I assumed that I had to replace $ID with the ID of the pointing device, I did. Returned nothing. Repeated with the second one. Doesn't do anything.
– nickguletskii Jun 18 '11 at 17:02set-int-prop
instead of the 4th. – James Henstridge Jun 19 '11 at 02:39