LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-17-2016, 02:06 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
How many buttons does my mouse have?


I would say three: left, right and middle. The middle button (which I use quite a lot because it does gpm paste) is the scroll wheel. But while browsing my Xorg.0.log file, I found these lines:

[ 75.259] (**) evdev: Logitech USB Optical Mouse: Device: "/dev/input/event4"
[ 75.310] (--) evdev: Logitech USB Optical Mouse: Vendor 0x46d Product 0xc077
[ 75.310] (--) evdev: Logitech USB Optical Mouse: Found 12 mouse buttons
[ 75.310] (--) evdev: Logitech USB Optical Mouse: Found scroll wheel(s)
[ 75.310] (--) evdev: Logitech USB Optical Mouse: Found relative axes
[ 75.310] (--) evdev: Logitech USB Optical Mouse: Found x and y relative axes
[ 75.310] (II) evdev: Logitech USB Optical Mouse: Configuring as mouse
[ 75.310] (II) evdev: Logitech USB Optical Mouse: Adding scrollwheel support
[ 75.310] (**) evdev: Logitech USB Optical Mouse: YAxisMapping: buttons 4 and 5
[ 75.310] (**) evdev: Logitech USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200

If evdev has found 12 buttons, where (physically) are the other 9? Does it regard wheel rotations as presses of buttons 4 & 5, since it has mapped those buttons to YAxisMapping?
 
Old 09-17-2016, 04:21 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
the scrollwheel already has 3 buttons: up, down, and press.
i think sometimes the scrollwheel can be pressed sideways, too.
still doesn't amount to 12 though.
 
Old 09-17-2016, 06:19 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by hazel View Post
I would say three: left, right and middle. The middle button (which I use quite a lot because it does gpm paste) is the scroll wheel. But while browsing my Xorg.0.log file, I found these lines:

[ 75.259] (**) evdev: Logitech USB Optical Mouse: Device: "/dev/input/event4"
[ 75.310] (--) evdev: Logitech USB Optical Mouse: Vendor 0x46d Product 0xc077
[ 75.310] (--) evdev: Logitech USB Optical Mouse: Found 12 mouse buttons
[ 75.310] (--) evdev: Logitech USB Optical Mouse: Found scroll wheel(s)
[ 75.310] (--) evdev: Logitech USB Optical Mouse: Found relative axes
[ 75.310] (--) evdev: Logitech USB Optical Mouse: Found x and y relative axes
[ 75.310] (II) evdev: Logitech USB Optical Mouse: Configuring as mouse
[ 75.310] (II) evdev: Logitech USB Optical Mouse: Adding scrollwheel support
[ 75.310] (**) evdev: Logitech USB Optical Mouse: YAxisMapping: buttons 4 and 5
[ 75.310] (**) evdev: Logitech USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200

If evdev has found 12 buttons, where (physically) are the other 9? Does it regard wheel rotations as presses of buttons 4 & 5, since it has mapped those buttons to YAxisMapping?
Actually, what is identified is the base interface to the mouse. The ACTUAL buttons that are connected are determined by the housing. The circuit board inside the mouse is generic, and has potential connections to many different buttons, but only a few are actually used by your mouse.

The "other 9" are just not connected.

This happens in a lot of places - For instance, a SCSI controller can have 16 targets... but each target may have 8 units. I've never seen more than one... but still, where are the other 7 units? Never connected...

Last edited by jpollard; 09-17-2016 at 06:25 AM.
 
2 members found this post helpful.
Old 09-17-2016, 06:31 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
One computer I had had ghost video outputs ... and one of them was default. Took awhile before I figured out why there is no picture.
 
Old 09-17-2016, 06:33 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573

Original Poster
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Ah! So there really are twelve available connections in my mouse but only five of them are in use, and the wheel uses three of those five. When I rotate the wheel, the click that I hear is button 4 or 5. When I press it, that's button 3.

Very well explained.
 
1 members found this post helpful.
  


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
Remapping Mouse Buttons on a MS Comfort Optical Mouse 3000 Seph64 Linux - Hardware 1 08-10-2008 02:55 PM
Mouse back and forward buttons are interpreted as buttons 2 and 3 (MX610) jot-87 Linux - Hardware 1 08-06-2007 11:12 AM
Help binding mouse buttons to keyboard buttons Eckstona Linux - Hardware 6 09-24-2006 07:28 AM
mouse buttons 6 and 7 tardigrade Linux - Software 8 12-05-2004 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:46 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