You are not logged in.

#1 2012-07-31 20:11:51

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

[SOLVED] Emulate3Buttons is not working

I have a mouse with 2 buttons a wheel that scrolls but can't be clicked. I created /etc/X11/xorg.conf.d/90-emulate3buttons.conf:

Section "inputClass"
  Identifier "middle button emulation class"
  Driver "evdev"
  MatchIsPointer "on"
  Option "Emulate3Buttons" "on"
EndSection

But it is not working. Xorg's log:

[ 47701.496] (II) config/udev: Adding input device USB Optical Mouse (/dev/input/event1)
[ 47701.496] (**) USB Optical Mouse: Applying InputClass "evdev pointer catchall"
[ 47701.496] (**) USB Optical Mouse: Applying InputClass "middle button emulation class"
[ 47701.496] (II) Using input driver 'evdev' for 'USB Optical Mouse'
[ 47701.496] (**) USB Optical Mouse: always reports core events
[ 47701.496] (**) evdev: USB Optical Mouse: Device: "/dev/input/event1"
[ 47701.496] (--) evdev: USB Optical Mouse: Vendor 0x192f Product 0x416
[ 47701.496] (--) evdev: USB Optical Mouse: Found 3 mouse buttons
[ 47701.496] (--) evdev: USB Optical Mouse: Found scroll wheel(s)
[ 47701.496] (--) evdev: USB Optical Mouse: Found relative axes
[ 47701.496] (--) evdev: USB Optical Mouse: Found x and y relative axes
[ 47701.496] (II) evdev: USB Optical Mouse: Configuring as mouse
[ 47701.496] (II) evdev: USB Optical Mouse: Adding scrollwheel support
[ 47701.496] (**) Option "Emulate3Buttons" "on"
[ 47701.496] (**) evdev: USB Optical Mouse: YAxisMapping: buttons 4 and 5
[ 47701.496] (**) evdev: USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 47701.497] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.7/usb4/4-1/4-1.2/4-1.2:1.0/input/input17/event1"
[ 47701.497] (II) XINPUT: Adding extended input device "USB Optical Mouse" (type: MOUSE, id 13)
[ 47701.497] (II) evdev: USB Optical Mouse: initialized for relative axes.
[ 47701.497] (**) USB Optical Mouse: (accel) keeping acceleration scheme 1
[ 47701.497] (**) USB Optical Mouse: (accel) acceleration profile 0
[ 47701.497] (**) USB Optical Mouse: (accel) acceleration factor: 2.000
[ 47701.497] (**) USB Optical Mouse: (accel) acceleration threshold: 4
[ 47701.498] (II) config/udev: Adding input device USB Optical Mouse (/dev/input/mouse0)
[ 47701.498] (**) USB Optical Mouse: Applying InputClass "middle button emulation class"
[ 47701.498] (II) Using input driver 'evdev' for 'USB Optical Mouse'
[ 47701.498] (**) USB Optical Mouse: always reports core events
[ 47701.498] (**) evdev: USB Optical Mouse: Device: "/dev/input/mouse0"
[ 47701.498] (EE) evdev: USB Optical Mouse: ioctl EVIOCGID failed: Inappropriate ioctl for device
[ 47701.498] (EE) PreInit returned 8 for "USB Optical Mouse"

Any idea?

Last edited by cemsbr (2012-08-03 15:12:24)

Offline

#2 2012-08-01 23:59:07

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: [SOLVED] Emulate3Buttons is not working

Why not edit 10-evdev.conf instead? You've got two entries for matching pointer only one of which matches an event, right? I'm not sure how this stuff works but that seems as if it could have quite odd results...

What's ubuntu about it?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2012-08-03 15:11:23

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: [SOLVED] Emulate3Buttons is not working

I figured it out and it is not related to my specific hardware. There's no need to add or change xorg conf files. Gnome disables the middle button emulation by default and we need to run the following command (it will be remembered on future sessions):

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

I found it in the wiki: https://wiki.archlinux.org/index.php/Gn … use_button

Offline

Board footer

Powered by FluxBB