You are not logged in.

#1 2014-03-12 05:32:15

GSF1200S
Member
Registered: 2008-12-24
Posts: 474

[SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

I have a Logitech G602 mouse with a bunch of extra buttons. I am familiar with xmodmap, xinput, xbindkeys, and easystroke.

If I use xev to test for input events, my back/forward buttons work like most mice- I get values of button 8 and button 9. However, when I use the other extra mouse buttons, I get IDENTICAL values to pressing 1, 2, or 3 on the keyboard respectively.

As an example, say I open a terminal. I can press these extra mouse buttons and it will "type" 1, 2 or 3 into the terminal just as if I had hit those numbers on my keyboard. If I hit shift, it will "type" !, @, and # just as if I had typed on the keyboard.

If I change the keycodes, I lose function of my 1, 2, and 3 keys. If I use xbindkeys to bind a command to the extra mouse buttons, pressing 1, 2, and 3 on the keyboard will run those commands!

The only thing I can think of is using a different keyboard layout, or that the mouse isnt supported at the kernel level (pressing extra mouse keys with X killed again "types" 1, 2, or 3) and I need to file a bug report somewhere. Where upstream do I file a bug report if this isnt fixable?

Any ideas at all?

Last edited by GSF1200S (2014-03-12 17:12:47)

Offline

#2 2014-03-12 05:37:58

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

in manual is written: G7=1, G8=2, G9=3.
p.s. WTF, man, you can't read? Have you ever heard about RTFM ?

Last edited by Perfect Gentleman (2014-03-12 05:39:38)

Offline

#3 2014-03-12 06:04:06

GSF1200S
Member
Registered: 2008-12-24
Posts: 474

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

Perfect Gentleman wrote:

in manual is written: G7=1, G8=2, G9=3.
p.s. WTF, man, you can't read? Have you ever heard about RTFM ?

Damn. Youre a nice fella arent you? No, I didnt- instructions never cover anything worth a damn for Linux. All you had to do was let me know it was for once.

RTFM still doesnt give me a useful set of extra mouse buttons.

Offline

#4 2014-03-12 06:15:33

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

I got Razer Naga 2014 Left-Hand. It has 12 buttons that are the same with 1-10 buttons of keyboard. You can only re-arrange 1-3 buttons or not, and that's all you can do.
As I understood remapping of these buttons works fine only in Windows with its windows drivers and software.

Last edited by Perfect Gentleman (2014-03-12 06:18:21)

Offline

#5 2014-03-12 17:12:17

GSF1200S
Member
Registered: 2008-12-24
Posts: 474

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

Perfect Gentleman wrote:

I got Razer Naga 2014 Left-Hand. It has 12 buttons that are the same with 1-10 buttons of keyboard. You can only re-arrange 1-3 buttons or not, and that's all you can do.
As I understood remapping of these buttons works fine only in Windows with its windows drivers and software.

For those with or looking to buy a Logitech G602, the answer is unfortunately Windows for a fix sad I had figured beforehand that it was some kind of assignment issue as I didnt see it possible for 2 different devices to be assigned the same keysym, but thats apparently due to my lack of understanding how such codes are assigned.

After reading the above response, I installed the Logitech software on a buddys windows computer and changed the (top 3) buttons to Shift, Alt, and Super- this allows me to use shift/alt/super + left/middle/right click for use within my wm (Openbox). This is a permanent change until you change it again, so at least you only need windows once.

I had searched around to see if anyone had this mouse working with Linux, but couldnt find any mentions. I can now at least confirm for others all the buttons will work and will be detected if you reprogram the mouse from windows. You can even reassign the battery check G6 button (which I did) and the DPI settings buttons near the left click (I left those alone for gimp work).

I tried Wine for the software without much hope, and indeed while the software installed fine, the program couldnt detect the mouse with it plugged in. It has been my experience that device detection in wine is a crapshoot at best. Anyways, problem solved..

Offline

#6 2014-03-13 04:24:02

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

GSF1200S, thank you for finding a solution for such king of mice. I'll try to do the same for my Razer mouse using Windows' LiveCD.

Offline

#7 2014-03-13 05:52:08

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

@GSF1200S: g500_control from the AUR might work for g602, too.
Edit: You probably have to modify it.

@Perfect Gentleman: For razer naga, try razercfg(-git)

Last edited by progandy (2014-03-15 09:10:49)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#8 2014-03-13 07:13:48

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

@progandy, but razercfg can't remap the buttons,

Offline

#9 2014-03-14 11:31:09

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

it didn't work

Offline

#10 2014-03-14 16:16:14

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

If it is possible to store the button behaviour inside the mouse, I guess razercfg should work. If it doesn't you'll probably have to use a daemon that consumes the HID events of the mouse-keyboard and resend them via uinput. As an alternative, maybe "xinput --set-button-map" could work, but I'm not sure.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#11 2014-03-14 16:48:02

GSF1200S
Member
Registered: 2008-12-24
Posts: 474

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

progandy wrote:

@GSF1200S: g500_control from the AUR works for g602, too.
Edit: You probably have to modify it.

@Perfect Gentleman: For razer naga, try razercfg(-git)

From what I can see, g500_control hasnt been updated since 2011. Also, it only seems able to control DPI and report rate settings. I might mess with it more later to see, but I also dont want to brick my mouse.

Not sure why Gentleman's mouse cant be reprogrammed from windows.

Offline

#12 2014-03-14 16:52:48

GSF1200S
Member
Registered: 2008-12-24
Posts: 474

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

progandy wrote:

If it is possible to store the button behaviour inside the mouse, I guess razercfg should work. If it doesn't you'll probably have to use a daemon that consumes the HID events of the mouse-keyboard and resend them via uinput. As an alternative, maybe "xinput --set-button-map" could work, but I'm not sure.

Yeah, maybe the windows software just takes mouse output and redirects it based on whats set in the software. In the g602's case it is definitely programmed into the mouse, so that is a plus.

I will have to do some research when I have time as to why the keysyms are identical. I figured "button 8", "button 13" and so on were assigned by the kernel or by X, and that the kernel or X would automagically assign it a unique ID so no two buttons would be the same. Thats why I originally started this thread- it didnt make sense to me. Looking at it from a gamers perspective though where games often use the number row to launch skills, it makes absolute sense.

Offline

#13 2014-03-15 16:00:55

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 222

Re: [SOLVED] G602 Gaming mouse extra buttons detected as keyboard keys

progandy wrote:

If it is possible to store the button behaviour inside the mouse, I guess razercfg should work. If it doesn't you'll probably have to use a daemon that consumes the HID events of the mouse-keyboard and resend them via uinput. As an alternative, maybe "xinput --set-button-map" could work, but I'm not sure.

I remapped buttons using Razer_Synapse, shut down it, plugged out mouse, then plugged mouse, and remapping didn't work, and it was in Windows.
So Razer_Naga_2014 can't be reprogrammed.

Last edited by Perfect Gentleman (2014-03-15 16:36:29)

Offline

Board footer

Powered by FluxBB