Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Software]How to configure USB mice?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
mathew2214
Posts: 20
Joined: 2020-01-30 19:21

[Software]How to configure USB mice?

#1 Post by mathew2214 »

i have a Logitech G600 and i cant get it to configure properly. Piper is just not working. everything keeps getting lost on reboot and/or mouse replug.
i go into piper. and i configure each of the buttons to act as the correct button number. i set button 14 to act as button 14 and so on. i set the resolution to what i desire, and i hit apply.
in this state, no application, not even evtest, can read the inputs 9 through 20. and after replugging, piper forgets all of my settings.

piper before replug:
Screenshot from 2023-03-15 14-03-57.png
Screenshot from 2023-03-15 14-03-47.png
Screenshot from 2023-03-15 14-00-26.png


and this is after replug or reboot:
Screenshot from 2023-03-15 14-05-27.png
Screenshot from 2023-03-15 14-05-38.png


what am i doing wrong here? how does one actually configure the settings on this mouse, if not via piper?

User avatar
kent_dorfman766
Posts: 535
Joined: 2022-12-16 06:34
Location: socialist states of america
Has thanked: 57 times
Been thanked: 70 times

Re: [Software]How to configure USB mice?

#2 Post by kent_dorfman766 »

a USB mouse must either follow the predefined USB driver class for HID or provide a custom driver. With all those buttons I'd expect it to need a custom driver.

You mentioned evtest doesn't see the upper button range. That makes me suspect even more that it needs a custom driver. I don't know what piper is.

arid
Posts: 135
Joined: 2014-05-08 18:40
Location: Aridzona
Has thanked: 3 times
Been thanked: 1 time

Re: [Software]How to configure USB mice?

#3 Post by arid »

Since this only took a minute or two from my closer to 90 than 80 life...

Well, lookie here, it's that Synaptic thing again.

"Piper is a graphical user interface to configure gaming devices. Configuration
options include changing the resolution (DPI) of mice, adding and removing
profiles, setting LED colors and changing button behaviors."

Which leads us to: https://github.com/libratbag/piper.

Which leads to: libratbag/data/devices/logitech-g600.device

Which leads to my wanting one of those so I have more clicking options. :mrgreen:
There's no drama in my sid......

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: [Software]How to configure USB mice?

#4 Post by stevepusser »

Perhaps it needs a backport of the current libratbag and piper in Bookworm for released Debian versions.
MX Linux packager and developer

mathew2214
Posts: 20
Joined: 2020-01-30 19:21

Re: [Software]How to configure USB mice?

#5 Post by mathew2214 »

UPDATE: ive got all the top buttons and mouse tilt working fine. the thumb keys are a problem tho. evtest can see the correctly rebound thumb key inputs, but X11 cannot. confirmed by xev. turns out Piper is useless on this mouse. scancodes need to be mapped to keycodes. see https://wiki.archlinux.org/title/Map_sc ... o_keycodes

here is my /etc/udev/hwdb.d/69-custom.hwdb

Code: Select all

evdev:input:b*v046DpC24A*
#top button
 KEYBOARD_KEY_70010=btn_8
#mwheel tilting
 KEYBOARD_KEY_7000f=btn_right
 KEYBOARD_KEY_70015=btn_left
#thumb keys
 KEYBOARD_KEY_70059=key_macro1
 KEYBOARD_KEY_7005a=key_macro2
 KEYBOARD_KEY_7005b=key_macro3
 KEYBOARD_KEY_7005c=key_macro4
 KEYBOARD_KEY_7005d=key_macro5
 KEYBOARD_KEY_7005e=key_macro6
 KEYBOARD_KEY_7005f=key_macro7
 KEYBOARD_KEY_70060=key_macro8
 KEYBOARD_KEY_70061=key_macro9
 KEYBOARD_KEY_70062=key_macro10
 KEYBOARD_KEY_70005=key_macro11
 KEYBOARD_KEY_70004=key_macro12
i have confirmed X11 is using evdev for this mouse.
it seems X11 just will not read key_macro keycodes.
or its also possible key_macro might not even be getting sent to X11. I dont know how to tell.

very strange.

mathew2214
Posts: 20
Joined: 2020-01-30 19:21

Re: [Software]How to configure USB mice?

#6 Post by mathew2214 »

arid wrote: 2023-03-16 22:48 Which leads to my wanting one of those so I have more clicking options. :mrgreen:
that's the idea that im going for. physically, i find the mouse quite comfortable to work with. if only i could figure out how to get X11 to read all the keys.

mathew2214
Posts: 20
Joined: 2020-01-30 19:21

Re: [Software]How to configure USB mice?

#7 Post by mathew2214 »

still having this issue. here' my evtest when i press the side buttons.

Code: Select all

Event: time 1680377203.113415, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005a
Event: time 1680377203.113415, type 1 (EV_KEY), code 657 (?), value 1
Event: time 1680377203.113415, -------------- SYN_REPORT ------------
Event: time 1680377203.256169, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005a
Event: time 1680377203.256169, type 1 (EV_KEY), code 657 (?), value 0
Event: time 1680377203.256169, -------------- SYN_REPORT ------------
Event: time 1680377204.066133, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005b
Event: time 1680377204.066133, type 1 (EV_KEY), code 658 (?), value 1
Event: time 1680377204.066133, -------------- SYN_REPORT ------------
Event: time 1680377204.249422, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005b
Event: time 1680377204.249422, type 1 (EV_KEY), code 658 (?), value 0
Event: time 1680377204.249422, -------------- SYN_REPORT ------------
Event: time 1680377204.491166, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005e
Event: time 1680377204.491166, type 1 (EV_KEY), code 661 (?), value 1
Event: time 1680377204.491166, -------------- SYN_REPORT ------------
Event: time 1680377204.639133, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005e
Event: time 1680377204.639133, type 1 (EV_KEY), code 661 (?), value 0
Event: time 1680377204.639133, -------------- SYN_REPORT ------------
Event: time 1680377204.944148, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005d
Event: time 1680377204.944148, type 1 (EV_KEY), code 660 (?), value 1
Event: time 1680377204.944148, -------------- SYN_REPORT ------------
Event: time 1680377205.056178, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005d
Event: time 1680377205.056178, type 1 (EV_KEY), code 660 (?), value 0
Event: time 1680377205.056178, -------------- SYN_REPORT ------------
Event: time 1680377205.264158, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005d
Event: time 1680377205.264158, type 1 (EV_KEY), code 660 (?), value 1
Event: time 1680377205.264158, -------------- SYN_REPORT ------------
Event: time 1680377205.396134, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005d
Event: time 1680377205.396134, type 1 (EV_KEY), code 660 (?), value 0
Event: time 1680377205.396134, -------------- SYN_REPORT ------------
Event: time 1680377205.685167, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70061
Event: time 1680377205.685167, type 1 (EV_KEY), code 664 (?), value 1
Event: time 1680377205.685167, -------------- SYN_REPORT ------------
Event: time 1680377205.824168, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70061
Event: time 1680377205.824168, type 1 (EV_KEY), code 664 (?), value 0
Event: time 1680377205.824168, -------------- SYN_REPORT ------------
Event: time 1680377206.234229, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005f
Event: time 1680377206.234229, type 1 (EV_KEY), code 662 (?), value 1
Event: time 1680377206.234229, -------------- SYN_REPORT ------------
Event: time 1680377206.387171, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7005f
Event: time 1680377206.387171, type 1 (EV_KEY), code 662 (?), value 0
Event: time 1680377206.387171, -------------- SYN_REPORT ------------

mathew2214
Posts: 20
Joined: 2020-01-30 19:21

Re: [Software]How to configure USB mice?

#8 Post by mathew2214 »

and here is my /etc/X11/xorg.conf.d/50-logitech.conf

Code: Select all

Section "InputClass"
    Option "Device" "/dev/input/by-id/usb-Logitech_Gaming_Mouse_G600_47FC513CA1FB0017-if01-event-mouse"
    Identifier "G600 misconfiguration fix"
    MatchProduct "G600"
    Driver	"evdev"
    # Match just the keyboard section of the G600
    MatchIsKeyboard "true"
    # evdev assumes it is a mouse when it sees the absolute axis. Stop that from happening. 
    Option "IgnoreAbsoluteAxes" "on"  
EndSection

Post Reply