Mouse buttons query [solved]

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dookov
Level 1
Level 1
Posts: 23
Joined: Mon Jun 11, 2012 3:54 pm

Mouse buttons query [solved]

Post by dookov »

Hi everyone.
I`ve not had a need to post here for a couple of years now because 18.3 Mate was perfect for my needs. However, now its time is up and I`ve installed 20.1 Mate
All seems good to me except for one niggle. The side buttons on my mouse (fwd/back) stopped working. I changed to a new mouse and they now work but the functions are reversed.
Is there a way to change or remap these buttons? It`s not life threatening and I`ll maybe get used to it but it would be nice to use as I`m accustomed to.
Here`s my inxi -Fxz output.
alan@linux-pc:~$ inxi -Fxz
System:
Kernel: 5.4.0-72-generic x86_64 bits: 64 compiler: gcc v: 9.3.0
Desktop: MATE 1.24.0 Distro: Linux Mint 20.1 Ulyssa
base: Ubuntu 20.04 focal
Machine:
Type: Desktop Mobo: ASUSTeK model: PRIME Z270-P v: Rev X.0x
serial: <filter> UEFI [Legacy]: American Megatrends v: 0610
date: 05/11/2017
CPU:
Topology: Dual Core model: Intel Core i3-7100 bits: 64 type: MT MCP
arch: Kaby Lake rev: 9 L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 31199
Speed: 800 MHz min/max: 800/3900 MHz Core speeds (MHz): 1: 800 2: 800
3: 800 4: 802
Graphics:
Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: eVga.com.
driver: nvidia v: 460.73.01 bus ID: 01:00.0
Display: x11 server: X.Org 1.20.9 driver: nvidia
unloaded: fbdev,modesetting,nouveau,vesa resolution: 1680x1050~60Hz
OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 460.73.01
direct render: Yes
Audio:
Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus ID: 00:1f.3
Device-2: NVIDIA GP107GL High Definition Audio vendor: eVga.com.
driver: snd_hda_intel v: kernel bus ID: 01:00.1
Sound Server: ALSA v: k5.4.0-72-generic
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8169 v: kernel port: d000 bus ID: 04:00.0
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 763.85 GiB used: 207.10 GiB (27.1%)
ID-1: /dev/sda vendor: Samsung model: HD502HJ size: 465.76 GiB
ID-2: /dev/sdb vendor: Hitachi model: HDT725032VLA360 size: 298.09 GiB
Partition:
ID-1: / size: 36.54 GiB used: 29.46 GiB (80.6%) fs: ext4 dev: /dev/sda1
ID-2: /home size: 219.88 GiB used: 177.64 GiB (80.8%) fs: ext4
dev: /dev/sda5
ID-3: swap-1 size: 1.96 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3
Sensors:
System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 22 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 30%
Info:
Processes: 210 Uptime: 1m Memory: 7.71 GiB used: 770.7 MiB (9.8%)
Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17
inxi: 3.0.38
and my lusb output
alan@linux-pc:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 172f:0037 Waltop International Corp. Tablet
Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 006: ID 062a:3281 MosArt Semiconductor Corp. 2.4G Wireless mouse
Bus 001 Device 005: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
Bus 001 Device 004: ID 0079:0006 DragonRise Inc. PC TWIN SHOCK Gamepad
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Many thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
dookov
Level 1
Level 1
Posts: 23
Joined: Mon Jun 11, 2012 3:54 pm

Re: Mouse buttons query

Post by dookov »

A small development.
I booted from a Mint Mate 19 dvd and my old mouse works perfectly. Rebooted back to my Mint Mate 20.1 system and the side buttons no longer work again. I`m thinking maybe it`s a kernel issue? Just something to live with I guess.
Thanks anyway.
dookov
Level 1
Level 1
Posts: 23
Joined: Mon Jun 11, 2012 3:54 pm

Re: Mouse buttons query

Post by dookov »

Well, both wireless mice have developed random freezing of the left click button. I`ve now reverted to a USB wired mouse. All seems OK for the last couple of days so I guess my problem`s solved.
User avatar
hglee
Level 6
Level 6
Posts: 1422
Joined: Fri Jun 22, 2018 4:31 pm

Re: Mouse buttons query

Post by hglee »

dookov wrote: Fri May 14, 2021 7:39 am Well, both wireless mice have developed random freezing of the left click button. I`ve now reverted to a USB wired mouse.


Random oddball behaviours, so check that Secure Boot and Fast Boot are disabled in your BIOS.


I reconfigure my mouse buttons with the xbindkeys utility. To install it, create a default configuration file, and immediately activate:

Open a Terminal window (Ctrl-Alt-T), then copy-and-paste the following command-line...

Code: Select all

sudo apt-get install xbindkeys && xbindkeys -d > ~/.xbindkeysrc && xbindkeys -f ~/.xbindkeysrc

I want my mouse back-button to emulate tapping the Enter (Return) key, and the mouse forward-button to emulate the Left_Ctrl-S key combo. So, I append the following to the ~/.xbindkeysrc configuration file:
#
"xte 'key Return'"
b:8
"xte 'keydown Control_L' 'key s' 'keyup Control_L'"
b:9 + Release
#
Then execute xbindkeys -f ~/.xbindkeysrc once to immediately activate the addition.


Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
dookov
Level 1
Level 1
Posts: 23
Joined: Mon Jun 11, 2012 3:54 pm

Re: Mouse buttons query [solved]

Post by dookov »

Thank you for taking the time to answer. I will save your post for future reference. However, as the wired mouse is working as it should, I think I will stick with it for now.
Thanks again.
Locked

Return to “Hardware Support”