Git Product home page Git Product logo

Comments (7)

anatol avatar anatol commented on July 19, 2024

Hi @andyrtr

Booster is looking for font files at /usr/share/kbd/consolefonts/ directory. Do you have 8859-2 or 8859-2.gz file there?

from booster.

andyrtr avatar andyrtr commented on July 19, 2024

No. There's only /usr/share/i18n/charmaps/ISO-8859-2.gz that looks related here.

from booster.

anatol avatar anatol commented on July 19, 2024

INteresting.

Currently booster picks /usr/share/kbd/consolefonts/$FONT_MAP.gz file and passes it to setfont -m $FILE during the boot.

I checked mkinitcpio and it seems to ignore the FONT_MAP part completely. @andyrtr which initramfs do you currently use? I want to check how FONT_MAP is handled there.

from booster.

andyrtr avatar andyrtr commented on July 19, 2024

I'm using booster as my main initcpio and some more critical systems still have dracut installed for fallback.

I'm just trying to add the font settings for the first time to try if I can workaround a bug introduced in 6.0 kernel. Up to 5.19 the vconsole.conf font setting is properly taken by the late kernel boot and is kept when switching to greetd-tui. From 6.0 release on I see the first boot msg page switching to my custom font setting but the font is then reset when a 2nd boot message page it written.

tpowa has doing some tests with mkinitcpio that is affected by the same. He found some workaround there to make the kernel reapply the custom font setting.

It would be nice when we could find a way to get the font working in inintrd to get a seemless boot output. The late userspace kernel issue is something different. Please tell me here or at IRC if I can do something for you.

It's not a serious issue but it would be nice to get booster working

from booster.

andyrtr avatar andyrtr commented on July 19, 2024

small note: I've found the console font workaround required for kernel 6.0 and up: it's written down at the Arch wiki (Linux_console/Persistent_configuration) - to avoid the resolution reset it's required to add the video module to the initrd to enable early kms.

But this is not an actual fix for this booster font adding issue.

from booster.

anatol avatar anatol commented on July 19, 2024

So booster should handle these parameters the same way as systems.

I am looking at systemd code and it essentially calls setfont -C NNN -m 8859-2 spleen-12x24.

Such call fails for me as it cannot find the font files at my computer. Nothing in /usr/share/kbd neither:

➜  kbd pwd
/usr/share/kbd
➜  kbd ls -R | grep spleen
➜  kbd

@andyrtr did you install any extra packages to get that map file? Could you please also call the setfont with strace -e file setfont .... so I can see where exactly setfont looks up for the fontmap file.

from booster.

logarrhythmic avatar logarrhythmic commented on July 19, 2024

strace -o strace.txt -e file setfont ter-v32n -m 8859-2
strace.txt
looks like it

  • looks for 8859-2 at the working directory,
  • doesn't find it
  • starts looking through /usr/share/kbd/consoletrans/
  • decides upon /usr/share/kbd/consoletrans/8859-2_to_uni.trans and opens that
  • the rest is other stuff including looking for the font at /usr/share/kbd/consolefonts/
    This is on Arch Linux with xanmod kernel 6.7.6, I think the general idea of the consoletrans directory is what you needed here

from booster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.