Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.