I am currently running a Raspberry Pi on a television and the text size is too small to read. So I was wondering if there is a way to resize the text.

  • Use HDMI if at all possible, this allows the raspberry to detect the actual size of a pixel – Thorbjørn Ravn Andersen Aug 5 '12 at 12:50



sudo dpkg-reconfigure console-setup

and follow the on screen instructions.

|improve this answer|||||

If it's the console, you can change the framebuffer_width and framebuffer_height values in /boot/config.txt. Similarly, for X, you can set the hdmi_group and hdmi_mode, though they aren't so obviously easy to change.

|improve this answer|||||
  • It's a horrible idea to set the resolution via /boot/config.txt. – user46 Aug 5 '12 at 2:58
  • @BryanDunsmore Why do you say that? Its how it's supposed to be done on the Pi. – Jivings Aug 5 '12 at 8:51
  • 2
    Raspbian comes with an exquisitely-commented /boot/config.txt for that very purpose. The method is also described in Halfacree and Upton's book Meet the Raspberry Pi. So I think it's legit ... – scruss Aug 5 '12 at 13:56
  • @Jivings Sorry about that. I confused /boot/config.txt with something else. =/ – user46 Aug 5 '12 at 14:35

You can use variations of the setfont command to change the font and the size of text:

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

And you can obviously see what fonts are available by doing:

ls /usr/share/consolefonts
|improve this answer|||||

Sorry about just giving a link before to my site. Didn't mean to offend. Anyway to write a permanent script that can be run at boot-up on large-screen T.V.s, I did the following: However, there are probably a million ways to do this. The above should work too, this is just a different approach. Also, it's fun to write scripts, right?

1)The first step is to log in

2)If your in the terminal already, great. bonus points for bravery. If not, press CTRL+ALT+F1 to get there.

3)create a directory to put your scripts in:
sudo mkdir /home/pi/scrpits

4) Navigate to that directory:
cd /home/pi/scripts/

5) Using either vim or nano, or pico, or whatever your favorite terminal text editor is, create a new file for the script. For convenience sake and because it’s already installed, we’ll use nano here, however I prefer vim. If you want to install vim, type:
sudo apt-get install vim

Otherwise, use nano:
sudo nano largefont

6) Write this in the file:
#!/bin/bash echo changing font size to 32x16 setfont /usr/share/consolefonts/Lat15-TerminusBold32x16.psf.gz

7) Make it executable:
sudo chmod 775 largefont

8) Now, we need to alter some files in /etc/rc.local, where Raspberry Pi goes to look for scripts or commands for start-up, and type the following: sudo nano /etc/rc.local

9) Go yo the bottom and type the following:
sudo /home/pi/scripts/largefont

If you want to make it sleep until your log in appears, and run it in the background you can adjust the sleep like this. The ampersand makes it run in the background BTW:
sudo (sleep 3; sudo /home/pi/scripts/largefont) &

10) When you reboot, the text size should be much larger than factory settings:
sudo reboot

Hope this tutorial helped with something! :)

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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