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

Adding media keys to a layout leaves keyboard in non-functional state #38

Open
JamesHagerman opened this issue Dec 29, 2022 · 0 comments

Comments

@JamesHagerman
Copy link

Hello again,

I got into trouble with one half of my Corne LP+Blox keyboard failing to boot after adding VOL UP, VOL DN, or M PLAY to my layout.

After backing up the python files, wiping the keyboard, setting it up again, and manually changing the main.py using trial and error, these three key codes are not working correctly.

Turns out that adding any one of them to my layout in the client and saving the map causes the keyboard to be stuck with the OLED screen saying main.py output: (but there isn't enough screen space to show the output...). Unplugging and plugging that half leaves it in an unbooted state.

It still mounts as a file system, but the keyboard code doesn't run.

After some digging and testing, it looks like these two lines are not being added to the main.py when media keys are added to the layout:

from kmk.extensions.media_keys import MediaKeys
keyboard.extensions.append(MediaKeys())

This is documented in KMK here: https://github.com/KMKfw/kmk_firmware/blob/master/docs/en/media_keys.md

Manually adding these lines to the main.py gets the keys working as expected.

I'm not sure how these imports are supposed to be populated but they are (clearly) removed when the main.py is re-generated.

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

1 participant