CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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:
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!
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.
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.