LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-21-2023, 04:01 AM   #1
44139
LQ Newbie
 
Registered: Aug 2010
Posts: 16

Rep: Reputation: 0
toggling scroll mouse switches' command


i have a cheap 2 button mouse [maxxter wireless optical mouse ACT MUS-002] with scroll wheel.
When scroll wheel is pressed it acts like the left mouse button/enter key?
When scrolling in a browser, pressing it adds web pages to my browsers' top row, ultimately bogging my computer processor.
can i disable this function whilst keeping the scroll wheel, even with an on screen toggle icon?
i don't know if the switch signal is unique, or do i cut some wires in the mouse? pls advise.
thx
edit
dell optilux 3060 8GB, 256GB SSD, fossapup64-9.5. portable stable chrome

Top

Last edited by 44139; 09-21-2023 at 10:38 AM.
 
Old 09-21-2023, 08:21 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
Quote:
Originally Posted by 44139 View Post
i have a cheap 2 button mouse [maxxter wireless optical mouse ACT MUS-002] with scroll wheel.
When scroll wheel is pressed it acts like the left mouse button/enter key?
When scrolling in a browser, pressing it adds web pages to my browsers' top row, ultimately bogging my computer processor.
can i disable this function whilst keeping the scroll wheel, even with an on screen toggle icon?
i don't know if the switch signal is unique, or do i cut some wires in the mouse? pls advise.
thx
edit
dell optilux 3060 8GB, 256GB SSD, fossapup64-9.5. portable stable chrome

Top
You have a three button mouse with a scroll wheel. The middle button is simulated by pressing the scroll wheel.

What action occurs when you press a button, scroll the wheel, or make gestures with the mouse is controlled in your desktop settings and/or your browser settings.
 
Old 09-22-2023, 12:23 AM   #3
44139
LQ Newbie
 
Registered: Aug 2010
Posts: 16

Original Poster
Rep: Reputation: 0
mouse config tool does NOT have those options. pls source one with the options needed for kernel 5.4.53 thx.
 
Old 10-01-2023, 03:05 PM   #4
44139
LQ Newbie
 
Registered: Aug 2010
Posts: 16

Original Poster
Rep: Reputation: 0
this works # toggle middle mouse button

#!/bin/sh
if [[ $(xinput --get-button-map 10) =~ '1 2' ]]; then # is middle button active
xinput --set-button-map 10 1 0 # off
else
xinput --set-button-map 10 1 2 # on
fi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux friendly touch scroll or 360 degree scroll mouse? penyuan Linux - Hardware 2 09-15-2010 10:17 AM
issue with toggling out of fullscreen FCE Ultra 0.98-13 Kilahchris Linux - Software 1 05-22-2005 10:45 PM
Toggling "eject" and "eject -t" daihard Linux - Software 3 12-27-2004 03:01 AM
USB scroll mouse doesn't scroll Rhatlinux Linux - Software 10 09-29-2004 07:42 PM
Scroll feature in Logitech Scroll mouse does not work ssmaitra Linux - Hardware 6 11-11-2003 07:43 AM

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

All times are GMT -5. The time now is 04:54 AM.

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