Bug 696790 - middle button emulation is not working in F15 xorg
Summary: middle button emulation is not working in F15 xorg
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-settings-daemon
Version: 15
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Bastien Nocera
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-14 20:11 UTC by cam
Modified: 2018-04-11 15:15 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-04-18 04:58:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
xorg conf file (316 bytes, text/plain)
2011-04-17 06:18 UTC, cam
no flags Details
xorg conf file (131 bytes, text/plain)
2011-04-17 06:19 UTC, cam
no flags Details
Xorg log (30.10 KB, text/plain)
2011-04-17 06:22 UTC, cam
no flags Details
dmesg output (124.08 KB, text/plain)
2011-04-17 06:31 UTC, cam
no flags Details

Description cam 2011-04-14 20:11:36 UTC
Description of problem:
Under F14 middle button emulation was disabled as a default, and some config options were introduced and changed to re-enable it. This config that worked in F14 no longer works in F15

Config:
/etc/X11/xorg.conf.d/91-enable-middle-mouse.conf:
Section "InputClass"
  Identifier "middle button emulation class"
  MatchIsPointer "on"
  Option "Emulate3Buttons" "on"
EndSection

The effect of this config is that pressing left and right buttons simultaneously causes a middle mouse press event to be generated. This is useful for opening webpage links in a new tab and for pasteing selected text into text fields.

Version-Release number of selected component (if applicable):
xorg-x11-server-Xorg-1.10.0-7.fc15.i686


How reproducible:
100%

Steps to Reproduce:
1.create config file as shown above
2.test clicking both buttons
3.check xorg.0.log
  
Actual results:
No middle button event; error message in xorg.0.log file

Expected results:
middle button event

Additional info:
Log file contents...
[    31.229] (**) ImPS/2 Generic Wheel Mouse: Applying InputClass "evdev pointer
 catchall"
[    31.229] (**) ImPS/2 Generic Wheel Mouse: Applying InputClass "middle button
 emulation class"
[    31.229] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[    31.229] (**) ImPS/2 Generic Wheel Mouse: always reports core events
[    31.229] (**) ImPS/2 Generic Wheel Mouse: Device: "/dev/input/event6"
[    31.229] (--) ImPS/2 Generic Wheel Mouse: Found 3 mouse buttons
[    31.229] (--) ImPS/2 Generic Wheel Mouse: Found scroll wheel(s)
[    31.229] (--) ImPS/2 Generic Wheel Mouse: Found relative axes
[    31.230] (--) ImPS/2 Generic Wheel Mouse: Found x and y relative axes
[    31.230] (II) ImPS/2 Generic Wheel Mouse: Configuring as mouse
[    31.230] (II) ImPS/2 Generic Wheel Mouse: Adding scrollwheel support
[    31.230] (**) Option "Emulate3Buttons" "on"
[    31.230] (**) ImPS/2 Generic Wheel Mouse: YAxisMapping: buttons 4 and 5
[    31.230] (**) ImPS/2 Generic Wheel Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    31.230] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input6/event6"
[    31.230] (II) XINPUT: Adding extended input device "ImPS/2 Generic Wheel Mouse" (type: MOUSE)
[    31.230] (II) ImPS/2 Generic Wheel Mouse: initialized for relative axes.
[    31.231] (**) ImPS/2 Generic Wheel Mouse: (accel) keeping acceleration scheme 1
[    31.231] (**) ImPS/2 Generic Wheel Mouse: (accel) acceleration profile 0
[    31.231] (**) ImPS/2 Generic Wheel Mouse: (accel) acceleration factor: 2.000
[    31.231] (**) ImPS/2 Generic Wheel Mouse: (accel) acceleration threshold: 4
[    31.232] (II) config/udev: Adding input device ImPS/2 Generic Wheel Mouse (/dev/input/mouse0)
[    31.232] (II) No input driver/identifier specified (ignoring)

Comment 1 cam 2011-04-16 10:08:12 UTC
I should add, Gnome 3 relies on middle-click on the title bar to lower windows, making this more important.

Comment 2 Matěj Cepl 2011-04-16 18:09:50 UTC
Thanks for the bug report.  We have reviewed the information you have provided above, and there is some additional information we require that will be helpful in our diagnosis of this issue.

Please add drm.debug=0x04 to the kernel command line, restart computer, and attach

* your X server config file (/etc/X11/xorg.conf, if available),
* X server log file (/var/log/Xorg.*.log)
* output of the dmesg command, and
* system log (/var/log/messages)

to the bug report as individual uncompressed file attachments using the bugzilla file attachment link above.

We will review this issue again once you've had a chance to attach this information.

Thanks in advance.

Comment 3 cam 2011-04-17 06:18:54 UTC
Created attachment 492667 [details]
xorg conf file

system generated

Comment 4 cam 2011-04-17 06:19:36 UTC
Created attachment 492668 [details]
xorg conf file

manually created

Comment 5 cam 2011-04-17 06:22:35 UTC
Created attachment 492669 [details]
Xorg log

Comment 6 cam 2011-04-17 06:31:32 UTC
Created attachment 492671 [details]
dmesg output

Comment 7 cam 2011-04-17 06:40:13 UTC
I made the attachments requested with the exception of messages, it has no new content from today

-rw-------. 1 root root  329207 Apr 14 08:20 messages

compare


-rw-------. 1 root root    2293 Apr 17 07:37 wpa_supplicant.log

Comment 8 Peter Hutterer 2011-04-18 04:58:49 UTC
Not an evdev bug. GNOME has a gsettings schema to enable/disable this session-wide. This key is disabled by default, i.e. after logging in GNOME overwrites the system-wide configuration from the xorg.conf.d snippets.

The key can be manually set with the following command, I don't think there's a GUI item for it yet.

$> gsettings set org.gnome.settings-daemon.peripherals.mouse enabled

For reference on the gnome bug see:
https://bugzilla.gnome.org/show_bug.cgi?id=633863

Comment 9 Peter Hutterer 2011-04-18 05:12:54 UTC
my apologies, forgot the actual key name. The command is

$> gsettings set org.gnome.settings-daemon.peripherals.mouse middle-button-enabled true

Comment 10 cam 2011-04-18 06:23:05 UTC
Fantastic, that works. I wonder if it is persistent over logins / reboots?
It's worth adding to the release notes for F15 I reckon.

Comment 11 Matěj Cepl 2011-04-18 06:40:48 UTC
(In reply to comment #10)
> Fantastic, that works. I wonder if it is persistent over logins / reboots?

yes, gsettings should be persistent.


Note You need to log in before you can comment on or make changes to this bug.