LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 05-20-2015, 02:48 PM   #1
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 440

Rep: Reputation: 46
Centos 7 command line fonts


I just moved from the nouveau driver which used to crash all X sessions to the Nvidia proprietary driver which is working perfectly in X. Unfortunately much of my work is done at the command line, where the fonts are now ugly, probably the built in original font. How can I reset my configuration to use the nvidia drivers while I am at the command line?

Thank you.
 
Old 05-21-2015, 02:22 AM   #2
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
do you mean the font is much bigger now, and slightly fuzzy/distorted?

most probably means that the nvidia driver does not support native console resolution for this card (nouveau however does).

please post output of
Code:
lspci -vk | grep -iA11 vga
inside code tags.

thank you.

btw, nouveau should not be crashing your X-session, but if you are running an extremely heavy desktop environment (unity, kde...) it could refuse to start without hardware accel.
 
Old 05-21-2015, 07:44 PM   #3
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 440

Original Poster
Rep: Reputation: 46
It has taken awhile to get more information. I've reverted back to the nouveau driver with the most recently release kernel, the 4.2 version. Invoking 'startx' hangs and you have to hard boot the machine. If I choose the prior version, 4.1, the X session will start up, but invoking a menu option will once more freeze the machine and a hard boot is require. All prioor versions of the kernel work properly in both X and at the command line. Using the lspci with the nvidia drivers installed on the most recent (4.2) version gives no vga found. The machine is an HP Proliant computer.
 
Old 05-21-2015, 07:52 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
using the nvidia driver so you are using the gui

to set the fonts
open a terminal
click on "edit"
and edit profile

the terminal gui has the normal set of gui tools
font
size
color
if the background is solid or transparent
and so on
 
1 members found this post helpful.
Old 05-21-2015, 07:58 PM   #5
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 440

Original Poster
Rep: Reputation: 46
John:

Thanks for your suggestion, but setting the fonts in 'terminal' would imply that I was already in an X session, which I normally am not. I use X only when I want to go on the internet.
 
Old 05-22-2015, 04:51 AM   #6
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You can use 'setconsole' command to set bigger fonts in console (VT). Also what Nvidia card you are using?
 
Old 05-22-2015, 02:00 PM   #7
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 veerain View Post
Also what Nvidia card you are using?
which is why i requested the lspci output.
 
Old 05-27-2015, 06:14 PM   #8
ohmster
Member
 
Registered: May 2005
Location: South Florida
Distribution: CentOS 7
Posts: 39

Rep: Reputation: 2
Hey I get apolinsky's question and need the exact same help and am in the exact same situation. I can supply the information you need/want to assist. I too have an nVidia card and am using the kmod-nvidia drivers. "nouveau" is blacklisted for the nVidia kernel. We both run our machines in run level 3 and only use startx to get to desktop for things like Firefox, etc. But the default is NOT to run x and the normal CLI font is huge and ugly. None of the nice, tight vga fonts we used to have in previous versions of CentOS like 6. "vga=773" does not work anymore in grub.conf.

Code:
[paul@ohmster ~]$ sudo lspci -vk | grep -iA11 vga
04:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce 9500 GT] (rev a1) (prog-if 00 [VGA controller])
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at cf000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at cc000000 (64-bit, non-prefetchable) [size=32M]
        I/O ports at e800 [size=128]
        Expansion ROM at cef80000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
[paul@ohmster ~]$
I have tried various "tricks" posted to add to /etc/default/grub to get this to work, none of them do anything at all. See /etc/default/grub file below:

/etc/default/grub file:

Code:
[paul@ohmster ~]$ cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=centos_linux-server/swap crashkernel=auto rd.lvm.lv=centos_linux-server/root rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau"
GRUB_DISABLE_RECOVERY=true
GRUB_GFXMODE=1024x768x24

# Hack to force higher framebuffer resolution
GRUB_GFXPAYLOAD_LINUX=1024x768
[paul@ohmster ~]$
After changes are made, to make them "take" I rebuild the grub file and reboot:

Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
Doesn't work. Also taking the word "quiet" out of grub fills the screen with so much junk that is annoying. All I want is the old bootup screen that shows things like "Starting NTP - OKAY", "Starting httpd - FAILED", and those kind of messages. NOT constant screens at all times of white numerical junk!

Help me and you help the OP because this is what he wants. To run his machine ast "multi-user.target" and only go to "graphical.target" when he manually runs startx. Thanks if you can help!

Last edited by ohmster; 05-27-2015 at 06:23 PM.
 
Old 05-28-2015, 01:39 AM   #9
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
ohmster, in your case (geforce 9500) i can be fairly sure that the nvidia driver (legacy 304xx or 340xx?) simply does not support all non-GUI resolutions, and probably not the one native to your screen.
because i had a similar (or roughly same age) card. no amount of driver/framebuffer tweaking could change that.
the only thing that helped was an ugly hack that would first load the nouveau driver, and change to the nvidia driver when starting X (because i needed the nvidia driver for some games).

changing to a newer card (geforce 610) solved the problem, using only nvidia driver now.

you can always try to switch to a command line when grub starts, and issue
Code:
> vbeinfo
to get the available resolutions.
strangely, they often still didn't work for me.

if all that applies to your situation, all you can do is use some smaller font for your ttys.
like ohsnap maybe.
 
1 members found this post helpful.
Old 05-29-2015, 12:14 AM   #10
ohmster
Member
 
Registered: May 2005
Location: South Florida
Distribution: CentOS 7
Posts: 39

Rep: Reputation: 2
Quote:
Originally Posted by ondoho View Post
ohmster, in your case (geforce 9500) i can be fairly sure that the nvidia driver (legacy 304xx or 340xx?) simply does not support all non-GUI resolutions, and probably not the one native to your screen.
because i had a similar (or roughly same age) card. no amount of driver/framebuffer tweaking could change that.
the only thing that helped was an ugly hack that would first load the nouveau driver, and change to the nvidia driver when starting X (because i needed the nvidia driver for some games).

changing to a newer card (geforce 610) solved the problem, using only nvidia driver now.

you can always try to switch to a command line when grub starts, and issue
Code:
> vbeinfo
to get the available resolutions.
strangely, they often still didn't work for me.

if all that applies to your situation, all you can do is use some smaller font for your ttys.
like ohsnap maybe.
Okay, that makes good sense. I believe you, old card, no supported graphic modes but for x.

Code:
[paul@ohmster ~]$ rpm -qa |grep nvidia
kmod-nvidia-304xx-304.125-2.el7.elrepo.x86_64
nvidia-x11-drv-304xx-304.125-1.el7.elrepo.x86_64
nvidia-detect-346.59-1.el7.elrepo.x86_64
Compiz Cube rotates great. glxgears is 60 FPS.

The only thing that worked, sort of, is a .bashrc hack. This really did change your level 3 font as soon as you logged in.

# Change font when on a TTY
# Find fonts in /usr/lib/kbd/consolefonts/
if [ $TERM = linux ]; then
setfont Lat2-Terminus16
fi

This actually works but the font is still large. A bit nicer, but large. I tried some of the size 8 fonts like lat4-08.psfu.gz but all of them are very bold and too hard to read. I got a huge font list to choose from and none of them are really good.

Okay, your explanation is excellent. I need a new nvidia card. Need not be terribly expensive but a much newer card I guess. Thanks!
 
Old 05-30-2015, 05:24 AM   #11
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 ohmster View Post
This actually works but the font is still large. A bit nicer, but large.
when i had the same problem, i used ohsnap for the console. i also adjusted console resolution to be 800x600 or 1024x768, iirc. via grub.

Last edited by ondoho; 05-30-2015 at 05:27 AM.
 
  


Reply

Tags
fonts command line


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable Apache Modules in CentOS by command line unclesamcrazy Linux - Server 5 09-24-2013 07:48 AM
CentOS and command line Mercury305 Linux - Newbie 15 07-19-2012 10:55 AM
Manipulating fonts from the command line selie Linux - General 1 07-31-2010 08:50 AM
Mount VBoxGuestAddition from command line in Centos nerak99 Linux - Newbie 1 10-18-2009 02:49 PM
Command line/tools in CentOS/RHEL ? tuxuser19 Red Hat 5 10-01-2006 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 09:08 PM.

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