summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/kmscon-runtime-keymap-switch.patch
AgeCommit message (Collapse)Author
2026-04-17gnu: Add kmscon-8.Anderson Torres
An API breakage occurred some place between 8.x and 9.x series of kmscon. Because of it, our custom patch kmscon-8-runtime-keymap-switch.patch (needed by Guix System installer) no longer applies cleanly. Until a new patch is developed, let's recover the older package and keep it side-by-side in Guix. * gnu/packages/terminals.scm (kmscon-8): New variable. Document its dependency with Guix System installer. * gnu/packages/patches/kmscon-runtime-keymap-switch.patch: Rename to... * gnu/packages/patches/kmscon-8-runtime-keymap-switch.patch: ...this file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. Change-Id: I88cb9ea39b3801ea96dd663e2995597c060f41db Signed-off-by: Hilton Chain <hako@ultrarare.space>
2021-04-29gnu: kmscon: Fix layout setup.Mathieu Othacehe
Kmscon may discover multiple inputs, corresponding to multiple devices. This means that the uxkb_dev_keymap_update function may be called multiple times, and the FIFO is registered on each input poll loop. When a new layout is written on the FIFO by the installer, the first input picking up the message, will apply the new layout. However, that input may not be the input that the user is currently using. To fix it, register the FIFO on the first input poll loop, but apply the new layout on all the inputs in the uxkb_keymap_update_handler function. * gnu/packages/patches/kmscon-runtime-keymap-switch.patch (uxkb_keymap_update_handler): Apply the new layout to all the inputs. (input_new_dev): Register the FIFO fd only on the first input poll loop.
2021-04-25gnu: kmscon: Open a new keymap-update FIFO once a request has been processed.Ludovic Courtès
Fixes <https://bugs.gnu.org/39341>. Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>. Until now, as soon as you had selected the keyboard layout in the Guix System installer, kmscon would start spinning on epoll_wait(2) calls because of an event on the initial FIFO file descriptor (corresponding to the fact that the client closed it.) * gnu/packages/patches/kmscon-runtime-keymap-switch.patch: In 'uxkb_keymap_update_handler', add calls to 'ev_eloop_rm_fd', 'close', and 'uxkb_dev_keymap_update' In 'uxkb_dev_keymap_update', add call to 'unlink'.
2020-04-09installer: Allow Alt+Shift toggle from non-Latin keyboard layouts.Florian Pelz
Fixes <https://bugs.gnu.org/40493>. * gnu/installer/newt/keymap.scm (%non-latin-layouts): New variable. (%non-latin-variants): New variable. (%latin-layout+variants): New variable. (toggleable-latin-layout): New procedure to compute combined layouts. (run-keymap-page): Use it. (keyboard-layout->configuration): Apply it in config.scm. (run-layout-page): Mention Alt+Shift. * gnu/installer/keymap.scm (kmscon-update-keymap): Pass on XKB options. * gnu/installer/record.scm (<installer>): Adjust code comments. * gnu/installer.scm (apply-keymap): Pass on XKB options. (installer-steps): Adjust code comments. * gnu/packages/patches/kmscon-runtime-keymap-switch.patch: Apply XKB options.
2019-01-17gnu: kmscon: Add runtime keymap update support.Mathieu Othacehe
* gnu/packages/patches/kmscon-runtime-keymap-switch.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/terminals.scm (kmscon)[source]: Add patch.