Skip to content

kmscon: wait for the splash, add unifont, depend on evdev - #169

Merged
dangowrt merged 1 commit into
openwrt:masterfrom
dangowrt:kmscon-wait-and-unifont
Oct 7, 2026
Merged

dangowrt merged 1 commit into
openwrt:masterfrom
dangowrt:kmscon-wait-and-unifont

Conversation

@dangowrt

@dangowrt dangowrt commented Oct 7, 2026

Copy link
Copy Markdown
Member

Started while plymouth holds DRM master, kmscon retries taking it from a timer and logs a failure on every attempt. Its built-in 8x16 font covers the first 256 code points only, held in CP437 order while kmscon looks glyphs up by Unicode code point, so box drawing, block and braille characters come out wrong. The input event nodes it reads only exist with the evdev handler, which nothing pulled in.

Do not start the instance while plymouth reports that it holds the display, and start it on the plymouth.release event the splash hands procd when it lets go. Build the GNU Unifont engine into a kmscon-mod-unifont package; its generator genunifont is packaged as a host build, and a patch lets meson use that one. The init script passes --font-engine only when one is configured, so kmscon falls through to unifont when the module is installed. GNU Unifont is dual-licensed under GPL-2.0-or-later with a font embedding exception and OFL-1.1; kmscon takes the font under OFL-1.1, so the module package carries that licence besides MIT. Depend on kmod-input-evdev.

Fixes: 3c8ebee ("kmscon: depend on input-support for the evdev nodes")

Started while plymouth holds DRM master, kmscon retries taking it from
a timer and logs a failure on every attempt. Its built-in 8x16 font
covers the first 256 code points only, held in CP437 order while
kmscon looks glyphs up by Unicode code point, so box drawing, block and
braille characters come out wrong. The input event nodes it reads only
exist with the evdev handler, which nothing pulled in.

Do not start the instance while plymouth reports that it holds the
display, and start it on the plymouth.release event the splash hands
procd when it lets go. Build the GNU Unifont engine into a
kmscon-mod-unifont package; its generator genunifont is packaged as a
host build, and a patch lets meson use that one. The init script
passes --font-engine only when one is configured, so kmscon falls
through to unifont when the module is installed. GNU Unifont is
dual-licensed under GPL-2.0-or-later with a font embedding exception
and OFL-1.1; kmscon takes the font under OFL-1.1, so the module
package carries that licence besides MIT. Depend on kmod-input-evdev.

Fixes: 3c8ebee ("kmscon: depend on input-support for the evdev nodes")
Signed-off-by: Daniel Golle <[email protected]>
@dangowrt
dangowrt merged commit 8d4551c into openwrt:master Oct 7, 2026
14 checks passed
@dangowrt
dangowrt deleted the kmscon-wait-and-unifont branch October 7, 2026 07:23
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

Successfully merging this pull request may close these issues.

1 participant