Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I have a Raspberry pi B, using Debian, just rigged up with a 3.5 inch TFT-LCD monitor via VGA. The text size in command line mode is too small to read, so I would like to increase its size, and one method says "edit /boot/config.txt". However the command ls /boot shows no config.txt -- the only .txt file is cmdline.txt.

Another method ref: http://www.raspberrypi-spy.co.uk/2012/11/cheap-miniature-lcd-screen which says use sudo dpkg-reconfigure console-setup doesn't seem to make any difference.

Have I done something wrong? I'd appreciate any help in progressing forward from here.

share|improve this question

4 Answers 4

up vote 10 down vote accepted

I have this problem, too, when I'm using my huge TV. Try this:

setfont /usr/share/consolefonts/Lat15-TerminusBold20x10.psf.gz

To see a list of available fonts: ls /usr/share/consolefonts/

The numbers at the end indicate width and height (though not always that exact!)

No idea why config.txt is missing. However, you can use this:

https://raw.github.com/Evilpaul/RPi-config/master/config.txt

as a template for creating a new one.

My guess would be that a) it's been deleted accidentally or b) has been corrupted in some way in the file system and has disappeared. (a is more likely)

share|improve this answer
    
Thank you recantha, that worked very well. That problem solved nicely, but I still don't understand why config.txt is missing. Looking this gift horse straight in the mouth, the font now is a bit too big, so: is there a way to see other available fonts? –  Harry Weston Nov 9 '12 at 19:09
    
Edited my original to answer additional question. –  recantha Nov 10 '12 at 4:57

You can use setfont from a terminal to set the current console font to one of the fonts found in /usr/share/consolefonts/. You don't need to specify the full path or the .psf.gz suffix. Just something like:

setfont Lat15-Fixed18

will do the trick. You can play around until you find a font you like, and then to make it systemwide and default, you can specify it in /etc/kbd/config as the kbd package/service takes it upon itself to monkey with the console font during startup.

As a side note, you may find the you have to create a custom entry in /etc/fb.modes to get a native resolution on the small screen so the display looks nice and crisp.

share|improve this answer

Here's the simplest solution: When you log in to Linux (or Unix) a file named .profile is executed by the shell. I recently got a 7" LCD, 1024x600 monitor. For the last 2 years I've communicated with my Rpi through ssh, but now I needed a system with a small monitor. So I edited the .profile file and added the following line at the end:

setfont /usr/share/consolefonts/Uni3-Terminus28x14.pst.gz

A 14x28 pixel font that works for me. There many (hundreds of) fonts. If you like a bit smaller try 24x12 or bigger 32x16.

share|improve this answer
    
I suppose "command line mode" in the OP was referring to LXTerminal, but I took it as console mode with no GUI. –  bobstro Jul 24 at 3:21

Clicking on the "edit" tab in LXTerminal --> Go to preferences --> Click on "Style" tab --> Here you can change your font, size, color & background

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.