The Wayback Machine - https://web.archive.org/web/20200608061423/https://github.com/libretro/Lakka-LibreELEC/issues/546
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

gpio-key dtoverlay not working as documented in Lakka 2.1.1 #546

Open
32teeth opened this issue Sep 28, 2018 · 1 comment
Open

gpio-key dtoverlay not working as documented in Lakka 2.1.1 #546

32teeth opened this issue Sep 28, 2018 · 1 comment

Comments

@32teeth
Copy link

@32teeth 32teeth commented Sep 28, 2018

Which version of Lakka are you using?

Lakka 2.1.1

What system hardware are you using?

Raspberry Pi Zero W

What did you do?

dtoverlay call in config.txt

# never works
dtoverlay=gpio-key,gpio=13,label="RIGHT",keycode=103 

command line call
does not work either, but gives no errors

dtoverlay gpio-key gpio=13 keycode=106 label="RIGHT"

What did you expect to happen?

Be able to press a button connected to GPIO13 and be able to have it simulate keycode 103 (right arrow)

What happened instead?

NOTHING

@Gadgetoid
Copy link

@Gadgetoid Gadgetoid commented Sep 24, 2019

I'm a bit late to the party here, but in order for gpio-key bindings to be recognised as keyboard input you need a udev rule like this - https://github.com/pimoroni/picade-hat/blob/lakka/lakka-driver/10-picade.rules

SUBSYSTEM=="input", ATTRS{name}=="gpio_keys", ENV{ID_INPUT_KEYBOARD}="1"

You should place this in: /storage/.config/udev.rules.d/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.