LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2021, 01:59 PM   #1
ajb_62
LQ Newbie
 
Registered: Mar 2021
Posts: 2

Rep: Reputation: Disabled
evdev left and right mouse buttons are both left clicks


I have a 2 button trackball outputting the same code for left and right clicks.
The B: KEY bitmask appears to only enable one button:

I: Bus=0003 Vendor=068e Product=f700 Version=0111
N: Name="CH Products CH USB TRACKBALL"
P: Phys=usb-0000:00:14.0-6/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/0003:068E:F700.0002/input/input6
U: Uniq=
H: Handlers=mouse1 event4
B: PROP=0
B: EV=17
B: KEY=10000 0 0 0 0
B: REL=3
B: MSC=10

Confirmed by the xorg log:

(II) config/udev: Adding input device CH Products CH USB TRACKBALL (/dev/input/event4)
() CH Products CH USB TRACKBALL: Applying InputClass "evdev pointer catchall"
(II) Using input driver 'evdev' for 'CH Products CH USB TRACKBALL'
(II) systemd-logind: got fd for /dev/input/event4 13:68 fd 28 paused 0
() CH Products CH USB TRACKBALL: always reports core events
() evdev: CH Products CH USB TRACKBALL: Device: "/dev/input/event4"
(--) evdev: CH Products CH USB TRACKBALL: Vendor 0x68e Product 0xf700
(--) evdev: CH Products CH USB TRACKBALL: Found 1 mouse buttons
(--) evdev: CH Products CH USB TRACKBALL: Found relative axes
(--) evdev: CH Products CH USB TRACKBALL: Found x and y relative axes
(II) evdev: CH Products CH USB TRACKBALL: Configuring as mouse
() evdev: CH Products CH USB TRACKBALL: YAxisMapping: buttons 4 and 5
() evdev: CH Products CH USB TRACKBALL: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: >
() Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/0003:068E:F700.0002/input>
(II) XINPUT: Adding extended input device "CH Products CH USB TRACKBALL" (type: MOUSE, id 10)
(II) evdev: CH Products CH USB TRACKBALL: initialized for relative axes.
() CH Products CH USB TRACKBALL: (accel) keeping acceleration scheme 1
() CH Products CH USB TRACKBALL: (accel) acceleration profile 0
() CH Products CH USB TRACKBALL: (accel) acceleration factor: 2.000
() CH Products CH USB TRACKBALL: (accel) acceleration threshold: 4
(II) config/udev: Adding input device CH Products CH USB TRACKBALL (/dev/input/mouse1)
(II) No input driver specified, ignoring this device.
(II) This device may have been added with another device file.

xinput shows a button left and a button unknown:

[root@localhost /]# xinput list-props 10
Device 'CH Products CH USB TRACKBALL':
Device Enabled (147): 1
Coordinate Transformation Matrix (149): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (274): 0
Device Accel Constant Deceleration (275): 1.000000
Device Accel Adaptive Deceleration (276): 1.000000
Device Accel Velocity Scaling (277): 10.000000
Device Product ID (271): 1678, 63232
Device Node (270): "/dev/input/event4"
Evdev Axis Inversion (278): 0, 0
Evdev Axes Swap (280): 0
Axis Labels (281): "Rel X" (157), "Rel Y" (158)
Button Labels (282): "Button Left" (150), "Button Unknown" (272), "Button Unknown" (272), "Button Wheel Up" (153), "Button Wheel Down" (154)
Evdev Scrolling Distance (283): 0, 0, 0
Evdev Middle Button Emulation (284): 0
Evdev Middle Button Timeout (285): 50
Evdev Middle Button Button (286): 2
Evdev Third Button Emulation (287): 0
Evdev Third Button Emulation Timeout (288): 1000
Evdev Third Button Emulation Button (289): 3
Evdev Third Button Emulation Threshold (290): 20
Evdev Wheel Emulation (291): 0
Evdev Wheel Emulation Axes (292): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (293): 10
Evdev Wheel Emulation Timeout (294): 200
Evdev Wheel Emulation Button (295): 4
Evdev Drag Lock Buttons (296): 0

I'm using more /etc/X11/xorg.conf.d/00-mouse.conf as

Section "InputDevice"
Identifier "Mouse0"
Driver "evdev"
# Option "Name" "CH Products CH USB TRACKBALL"
Option "Device" "/dev/input/mouse1"
Option "ZAxisMapping" "4 5 6 7"
Option "Emulate3Buttons" "yes"
EndSection

How would I enable the right button?
 
Old 03-08-2021, 02:55 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Why evdev, try libinput instead.
 
Old 03-08-2021, 06:14 PM   #3
ajb_62
LQ Newbie
 
Registered: Mar 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi Emerson, Thank you.

Unfortunately, I had the same result with libinput.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Left and right mouse clicks stop working on Ubuntu 18.04 ramseyrt Linux - Laptop and Netbook 2 12-12-2018 01:52 PM
Remapping left and right mouse clicks on Linux Mint jmc92 Linux - Newbie 1 08-31-2017 01:43 PM
Computer detecting right-click as left-click, left-click as left-click and middle with 2 fingers pressed as right-click Festerdam Linux - Newbie 5 06-19-2017 05:41 PM
scroll left goes right and right goes left adamruss Linux - Hardware 2 08-17-2007 11:31 AM
pressing left and right mouse buttons at same time redirects to j-lo home page nickleus Linux - General 4 09-14-2006 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration