On Fri, Jun 20, 2014 at 03:48:48PM +0200, Łukasz Maśko wrote: > Hello. > I've recently bought a BT mouse for my laptop. I've paired it with my > komputer and it works. More-less. It has only 2 physical buttons and I miss > the middle button, therefore I wish to use the Emulate3Buttons option. But... > it does not work. I've created the following config file: > > Section "InputClass" > Identifier "MoGo Mouse BT" > Driver "evdev" > Option "Buttons" "2"
This option doesn't exist in evdev, so it's ignored. Evdev gets the number of buttons from the kernel but it's a rare 2-button mouse that actually says it only has 2 buttons. > Option "Emulate3Buttons" "on" > MatchProduct "MoGo" > MatchIsPointer "On" > MatchDevicePath "/dev/input/event*" > EndSection > > When I connect the mouse, Xorg responds like this: > > [ 66808.538] (II) config/udev: Adding input device MoGo Mouse BT > (/dev/input/mouse3) > [ 66808.538] (II) No input driver specified, ignoring this device. > [ 66808.538] (II) This device may have been added with another device file. > [ 66808.539] (II) config/udev: Adding input device MoGo Mouse BT > (/dev/input/event13) > [ 66808.539] (**) MoGo Mouse BT: Applying InputClass "evdev pointer catchall" > [ 66808.539] (**) MoGo Mouse BT: Applying InputClass "MoGo Mouse BT" > [ 66808.539] (II) Using input driver 'evdev' for 'MoGo Mouse BT' > [ 66808.539] (**) MoGo Mouse BT: always reports core events > [ 66808.539] (**) evdev: MoGo Mouse BT: Device: "/dev/input/event13" > [ 66808.539] (--) evdev: MoGo Mouse BT: Vendor 0xa5c Product 0x2004 > [ 66808.539] (--) evdev: MoGo Mouse BT: Found 3 mouse buttons > [ 66808.539] (--) evdev: MoGo Mouse BT: Found scroll wheel(s) > [ 66808.539] (--) evdev: MoGo Mouse BT: Found relative axes > [ 66808.539] (--) evdev: MoGo Mouse BT: Found x and y relative axes > [ 66808.539] (--) evdev: MoGo Mouse BT: Found absolute axes > [ 66808.539] (--) evdev: MoGo Mouse BT: Found absolute multitouch axes > [ 66808.539] (II) evdev: MoGo Mouse BT: Forcing absolute x/y axes to exist. > [ 66808.539] (II) evdev: MoGo Mouse BT: Configuring as mouse > [ 66808.540] (II) evdev: MoGo Mouse BT: Adding scrollwheel support > [ 66808.540] (**) Option "Emulate3Buttons" "on" > [ 66808.540] (**) evdev: MoGo Mouse BT: YAxisMapping: buttons 4 and 5 this related to scrolling and can be ignored. this talks about logical buttons, not physical buttons. > [ 66808.540] (**) evdev: MoGo Mouse BT: EmulateWheelButton: 4, > EmulateWheelInertia: 10, EmulateWheelTimeout: 200 > [ 66808.540] (**) Option "config_info" > "udev:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-2/1-2.4/1-2.4:1.0/bluetooth/hci0/hci0:46/0005:0A5C:2004.0024/input/input77/event13" > > > [ 66808.540] (II) XINPUT: Adding extended input device "MoGo Mouse BT" (type: > MOUSE, id 15) > [ 66808.540] (II) evdev: MoGo Mouse BT: initialized for relative axes. > > [ 66808.540] (WW) evdev: MoGo Mouse BT: ignoring absolute axes. > > [ 66808.540] (**) MoGo Mouse BT: (accel) keeping acceleration scheme 1 > > [ 66808.540] (**) MoGo Mouse BT: (accel) acceleration profile 0 > > [ 66808.540] (**) MoGo Mouse BT: (accel) acceleration factor: 2.000 > > [ 66808.540] (**) MoGo Mouse BT: (accel) acceleration threshold: 4 > > It seems to see the Emulate3Buttons option, but it seems not to obey the > Buttons option. The mouse has no scroll wheel, it has 2 physical buttons and > the 3rd one must be emulated. But... it does not work. At the sime time, it > works for instance for a DualPoint Stick, which I have. If it is important, I > also often use an external, wired mouse, which has additional 3 buttos and a > scroll wheel and it works correctly. > > I'm using KDE 4.13.2 right now, so quirks with gsettings don't work. I have > libevdev 1.2.2 and xorg evdev driver 2.9.0. My xserver is 1.15.1. > > Can anyone help me solve this puzzle? Is the mb emulation set in xinput list-props "MoGo Mouse BT"? is the timeout too short for you? try increasing it with xinput set-prop "MoGo Mouse BT" "Evdev Middle Button Timeout" 100 (or whatever timeout is best) - does that fix it? Do left/right buttons work as expected? If the answers to the above are yes, maybe, no, yes, then please record a left/right click on the device with evemu-record, attach it to a bug and assign it to me please. Cheers, Peter _______________________________________________ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: %(user_address)s