Bug #2782

xdm service from OpenRC overrides consolefont

nona - over 2 years ago - . Updated 12 months ago.

% Done:



If the xdm service starts, the console font is changed (tested with lxdm and lightdm).

  1. Enable the consolefont service
    rc-update add consolefont boot
  2. Change the font to test
    sed -i 's%^\(consolefont=.*\)%\1"lat4-19"%g' /etc/conf.d/consolefont
  3. Make sure that lightdm or lxdm are part of /etc/conf.d/xdm
    sed -i 's%^\(DISPLAYMANAGER=\).*%\1"lightdm" /etc/conf.d/xdm
  4. Enable the xdm service
    rc-update add xdm
  5. Restart

Related issues

Related to Packages - Bug #2781: small change to /etc/conf.d/consolefontconfirmed




Updated by bill-auger about 2 years ago

is this a bug - does it cause any problem ?


Updated by nona about 2 years ago

If one has many dpi, and cannot see what one types because the font is so very small, I would say it is. There is no zoom-in in tty.


Updated by freemor about 2 years ago

Tiny font on highDPI displays in not a bug. There is a large section on the Arch wiki on how to deal with the issue.
One work around would be adding a setfont command to your .bashrc

That way even if the login prompt is tiny the console font will be corrected one you login.

If you set the consolefont after xdm in installed and enabled does the setting stick or does xdm constantly clobber it?
Is the actual setting getting undone? Or is xdm just setting framebuffer ttys to some default state?


Updated by nona about 2 years ago

Thank you, Bill. I had checked that [documentation] . Over there you will have three ways to change the font:

1. setfont: I cannot use `setfont' in .bashrc, because it asks me for super-user permissions
2. vconsole.conf: this only works with systemD (or was not working with OpenRC, and that is why I had to work with /etc/conf.d/consolefont)
3. fbcon: /etc/conf.d/consolefont and xdm override the configuration


Or is xdm just setting framebuffer ttys to some default state?

I don’t know if it brings the font to a default state, but it certainly looks like that. If you let me know how to check it, I will.

One more thing. Since my video card does not play well with free software, I have to add `nomodeset' to the kernel line (on the boot
loader). I don’t think that this has anything to do with it, but who knows…

And just to make sure:

openrc 0.42.1-5
linux-libre 5.6.12-gnu-1
lightdm 1:1.30.0-3
xdm 0.5.3-6



Updated by bill-auger about 2 years ago

  • Related to Bug #2781: small change to /etc/conf.d/consolefont added

Updated by nona 12 months ago

  • % Done changed from 0 to 100
  • Status changed from unconfirmed to not-a-bug

Hello. I want to apologise, first of all. I had a file in /etc/profile.d/ which was changing the terminal font. Sorry, and thank you.

Also available in: Atom PDF