-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logitech G600 G-Key Can't be set to CTRL, SHIFT, or ALT #710
Comments
Also affects G502 |
Any chance support for this will be added ? |
Yes, but it will be awhile. Right now we have more pressing matters. |
I noticed that using keybindings such as |
The 'only modifier' case is also where it's interesting, using a standard WASD setup reaching ALT and CTRL can be quite anoying / requires extensive finger gymnastics. Having them on the mouse would be very, very helpfull for games such as MMOs with lots of keybinds. Hope the feature gets added in the foreseeable future, currently researching virtual HID devices but it seems like a very hacky way to do it |
I have a workaround for this:
I'm not sure what So far I've tested using the G-Key as Alt both for my KDE shortcuts (e.g. G-Key + F2 now opens KRunner, G-Key + left-click drags the window) and in World of Warcraft (I am able to to self-cast by pressing G-Key with another shortcut). |
@gerardlouw can't make that work at all also it seems that it would just press left alt 'unkown' and release it really quickly ? Tried with both ALT and CTRL and neigther ALT+F2 or CTRL-W would trigger in cinnamon when using the mouse :( |
wierd ran the same xev as you triggering mouse 3 which I bound the macro to I get all 0. It's a G502 Hero but I dont see why that should make a difference |
I found the workaround using For example, I bound the macro I also tried tldr; |
Nice temp solution seems to work for now
|
I have currently a differen issue on ratbagd (Is already open), but if it finally works, I would like to do exactly the same. So I push this, even though there is a workaround. In the Logitech gaming software on windows I was able to put CTRL, ALT and SHIFT to the three thumb buttons of my G500s |
Hi! Just came in here to mention that workaround with numlock is still working well for using the gshift with ffxiv and getting the ctrl key recognized. At first try in game when mapping keybinds it gets recognized with numlock, but strangely it detects the ctrl key second time around. |
Out of interest, if the second mode function were to be addressed would that effectively solve this? If you have a button to hold for second mode, and could then assign each of the other buttons to modifier + whatever, then it seems like that would give even more flexibility by allowing different modifiers (at the relatively minor cost of having to configure them for each button) e.g.
|
No the idea is so effectively move the modifier button to the mouse ( eg. having mouse 7 trigger ctrl ) that way while it's held down any keyboard press would behave as if you pressed ctrl+ it. |
Ah good point I hadn't considered keyboard presses as well |
With the latest build from master I ran the following commands and they all worked as modifiers, while you press the button it acts like you are holder down shift, ctrl or alt ratbagctl -v "Logitech Gaming Mouse G600" button 8 action set macro +KEY_LEFTSHIFT KEY_RESERVED -KEY_LEFTSHIFT && echo "worked $?" || echo "failed $?" ratbagctl -v "Logitech Gaming Mouse G600" button 9 action set macro +KEY_LEFTALT KEY_RESERVED -KEY_LEFTALT && echo $? || echo $? ratbagctl -v "Logitech Gaming Mouse G600" button 9 action set macro +KEY_LEFTCTRL KEY_RESERVED -KEY_LEFTCTRL && echo $? || echo $
|
It's a valiant attempt @bluemner but the problem with that solution is that its basically equivalent to repeatedly smashing the modifier autofire style - there is a good risk that you would hit the key without the modifier ( triggering another ability ). or in the case were you need to keep the combination pressed for x time the timer will reset constantly. |
This is my first time scripting but I would really like to implement this workaround so my G600 can have a modifier key. Creating the macro makes complete sense but I'm not sure how to "change
|
Based @guppy42 comments and some of my testing the built in macro system sends out a repeat of the macro every ~500-1000ms. I have not yet found a way to change this in the mouses profile and am unsure if its possible to change this behavior as the windows software produces the same results except when in running in application mode. As of now Ratbagd doesn't have an application mode so another method will have to be used. @ZTerminator77 As a work around you could
example map: For 3rd party options
|
Hello some additional information from my G604: |
So i had the same issue and resolved it with quite a simple method, after questioning my intelligence and almost burning my computer science degree. |
@Gargarvore this project is for Linux kernel not NT (windows). The issue out lined is with how the Logitech implements the firmware for the device. When running Linux: 3 events are registered 2 called "Logitech Gaming Mouse G600"
The other is "Logitech Gaming Mouse G600 Keyboard" this has information to emulate keyboard presses when running a command like
The problem is SO What the issue above is they want So @Gargarvore what you did on windows was change the value similar to One solution for this is to map keys using a software that loads a pre-configured profile into the G600 and maps the pre-configured profile to a config file that the user wants. That way in Linux you can capture the |
@bluemner oh I did not notice. I'm so sorry, google send me here, and I just assumed it was a windows issue, my bad. |
I'm in the same situation. Could please someone help us/me? I'm new to this and I'm not sure how to do it. |
Option 2 use ratbagctl: Below is how to use
ratbagctl "Logitech Gaming Mouse G600" button $N action get
|
When I tried doing this in Piper, I couldn't: G-key cannot be set to Shift on my G600. Here's the weird thing: I could assign it via
It is working just fine, it appears! |
This doesnt work for my g502 |
On a G502 Lightspeed, I've been able to successfully bind just a modifier with + and - macros, but the lone modifier does not work. This additionally bugs piper out somewhat in that piper thinks something has gone wrong when profile-switching. That said, the buttons work fine when switching profiles for me.
|
So does this macro actually work? Because it seems like @guppy42's comment still applies:
Is anybody having issues with this? I don't see how this would properly work because you'd be hitting a key when the modifer isn't held down - because your macro is rapid-firing it. |
@BioBox I tested mapping one of the numbered side buttons to Control, Shift, and Alt. The command I used looked like this: ratbagctl device-foo profile 0 button 17 action set macro +KEY_LEFTSHIFT KEY_RESERVED -KEY_LEFTSHIFT It worked consistently, both as stand-alone key taps and in combination with other keys and mouse clicks. xev showed a single event when I pressed the button, and another when I released it. Holding it produced no additional events. I guess it's possible that this behavior might vary with different G600 firmware versions or input driver versions, but I don't have a convenient way to test those. |
The firmware on the G600 mouse will prevent As such I have have been working on a sample test program that will override input from This code attempts to mimic capabilities of the "software mode" by grabbing the G600 input and sending overrides to a virtual keyboard (This virtual keyboard should support 5.x Linux Kernel Input keys) . Not sure how anti cheat will behave with this method, use at your own risk....
Need to figure out how to load a HID descriptor and grab the correct input paths / addresses from device to support all HID devices. |
libratbag/piper#342
The text was updated successfully, but these errors were encountered: