LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2021, 08:43 AM   #1
pepperslq
LQ Newbie
 
Registered: Feb 2018
Posts: 18

Rep: Reputation: Disabled
Where is the console (TTY) font set?


Running Debian testing (systemd) - after upgrading my Nvidia drivers, xorg wouldn't start, so I purged everything nvidia related and installed an older version of the Nvidia driver. That fixed the xorg starting problem.

But when I rebooted, the console font had changed (the TTY console, not terminal run in a window inside xorg). Now it's a different font, and much sharper than the earlier console font.

So that got me wondering how downgrading a driver would change the console font. Where is the actual console font set, and how can I see the font name and size?
 
Old 10-06-2021, 08:57 AM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Rep: Reputation: 271Reputation: 271Reputation: 271
/usr/share/kbd/consolefonts . setfont sets the font; showfont shows what the character set looks like in that font.
 
Old 10-06-2021, 01:54 PM   #3
pepperslq
LQ Newbie
 
Registered: Feb 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thanks RandomTroll!

In Debian apparently it's /usr/share/consolefonts

But that dir just contains a bunch of fonts - do you know what config file (or systemd setting?) actually shows what is being set at console startup?

If it's doing it with setfont, the manpage of setfont doesn't say where it's used during startup.
 
Old 10-06-2021, 02:47 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
See this article, chapter "Changing Fonts".

However, this:
Quote:
Originally Posted by pepperslq View Post
Now it's a different font, and much sharper than the earlier console font.
has me wondering if the font has changed at all; what you decribe sounds like the console was running on a lower resolution before.
 
Old 10-07-2021, 12:14 AM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by pepperslq View Post
In Debian apparently it's /usr/share/consolefonts
What do those Debianistas know?


Quote:
Originally Posted by pepperslq View Post
But that dir just contains a bunch of fonts - do you know what config file (or systemd setting?) actually shows what is being set at console startup?
In Slackware it's set by /etc/rc.d/rc.font. Slackware has fonts named Default in its fonts directory; perhaps those get used by default.
 
Old 10-07-2021, 12:18 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

on Debian it's /etc/default/console-setup

Evo2.
 
Old 10-09-2021, 08:49 AM   #7
pepperslq
LQ Newbie
 
Registered: Feb 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post

has me wondering if the font has changed at all; what you decribe sounds like the console was running on a lower resolution before.
That is possible, the text is much smaller now. But I don't know where the console resolution is set, either. Back to the drawing board, lol.
 
Old 10-10-2021, 12:01 AM   #8
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by pepperslq View Post
I don't know where the console resolution is set
If you use lilo, it's set in /etc/lilo.conf. The same resolution can have different numbers of columns and rows with fonts of different sizes. Change to a different then run showconsolefont.
 
Old 10-10-2021, 01:25 AM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by pepperslq View Post
I don't know where the console resolution is set, either.
The Debian kernel will automatically set the framebuffers to a 16X9 font and use the display's native mode. As touched on by evo2, Debian has it's own idea which font should be used via /etc/default/console-setup, but that doesn't ever mess with resolution AFAIK. When I want a different mode, I include it on the linu line(s) in Grub, e.g. video=1440x900.
 
Old 10-10-2021, 02:23 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by pepperslq View Post
That is possible, the text is much smaller now. But I don't know where the console resolution is set, either. Back to the drawing board, lol.
It's good if it's high res & sharp, don't change it.
You probably just need a larger font.
You have been given several suggestions on how to do that on Debian now. Try them and report back in full detail, thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to set font and font size for console in debian8? luofeiyu Linux - Newbie 3 03-06-2016 09:15 AM
[SOLVED] Change font size in tty console Gremlin022 Linux - Newbie 5 07-02-2014 09:15 PM
Set console locale, font, and font size? penyuan Debian 3 12-09-2011 07:54 PM
How to print a message from kernel module to terminal console or tty console yogesh_bansal Linux - Newbie 2 02-27-2009 09:10 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration