Background
I have a Logitech Marble Mouse Trackball, with its scrolling ability configured as follows:
#!/bin/bash
dev="Logitech USB Trackball"
we="Evdev Wheel Emulation"
xinput set-int-prop "$dev" "$we Button" 8 8
xinput set-int-prop "$dev" "$we" 8 1
This allows me to hold down the small left-button and scroll by rolling the trackball up and down, with side-to-side motions having no effect.
This is a clean install of Xubuntu 12.04 LTS running Xfce.
Problem
Using Kubuntu (and many other desktop environments), I was able to:
- Select text with the mouse (either by dragging the selection or double-/triple-clicking words).
- Middle-click (emulated as the small right-button) to paste in another window (or the same window).
I have tried to re-enable the behaviour using:
- http://who-t.blogspot.ca/2011/04/gnome-30-middle-mouse-button-emulation.html
- marble mouse middle click fail in 12.04
- https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/874237/comments/13
Running gsettings set org.gnome.settings-daemon.peripherals.mouse middle-button-enabled true
returns No such schema 'org.gnome.settings-daemon.peripherals.mouse'
.
The dconf-editor
tool does not show org::gnome::settings-daemon::peripherals::mouse
. The closest I could find is org.gnome.desktop.a11y.mouse
, but it does not have a setting for middle-button-enabled
.
Question
How do I enable "middle-click" for the trackball so that the small right-button performs a paste of the copy buffer?
Best Answer
Configuration
Following these instructions and this answer and this document:
/usr/share/X11/xorg.conf.d/10-evdev.conf
.Restart X
Enable Ctrl-Alt-Backspace to restart X as follows:
This:
Addendum
After
rebootingrestarting X, I found the scrolling no longer worked, possibly due to an upgrade. If this happens to you, try:~/.
):Verification
Verify the settings using (where 8 is the device number; yours will likely vary):