Skip to content
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

TriggerHappy Will Not Trigger When There Are Multiple Key Combinations #27

Open
jeangv opened this issue Feb 10, 2018 · 3 comments
Open

Comments

@jeangv
Copy link

jeangv commented Feb 10, 2018

Hello,

I finally got TriggerHappy working great on my Raspberry Pi but I simply cannot get it to work for anything but a single key press. It works great for example:

KEY_1 1 {Command Here}

or

KEY_F1 1 {Command Here}

but it never works for anything with combination of keys for example:

KEY_LEFTCTRL+KEY_1 1 {Command Here}

if the keys ever have any kind of key combination, it does not work.

Any ideas on what I might be doing wrong?

@tgharib
Copy link

tgharib commented Jun 20, 2018

Confusingly, as shown in the example KEY_VOLUMEUP+KEY_LEFTSHIFT 1 /usr/bin/amixer set Master 15%+, the modifier has to come after the key. KEY_LEFTCTRL+KEY_1 should be KEY_1+KEY_LEFTCTRL.

Also, for troubleshooting, make sure your command is simple such as ls without the --dump flag. The command I had didn't run under root which made it harder to troubleshoot. I ended up using the --user flag to work around it.

@alanjds
Copy link

alanjds commented Jun 7, 2020

I am having a similar issue with a xboxdrv controller

BTN_MODE works and BTN_TL works

But BTN_TL+BTN_MODE does not work.

Any thoughts on why or how to solve it?

@alanjds
Copy link

alanjds commented Jun 7, 2020

Found. Same solution:

BTN_MODE+BTN_TL

Looks like, when capturing release event, the 1st btn is the one released first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants