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.
sudo dpkg-reconfigure console-setup
and follow the on screen instructions.
If it's the console, you can change the
framebuffer_height values in
/boot/config.txt. Similarly, for X, you can set the
hdmi_mode, though they aren't so obviously easy to change.
You can use variations of the setfont command to change the font and the size of text:
And you can obviously see what fonts are available by doing:
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:
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:
echo changing font size to 32x16
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:
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:
Hope this tutorial helped with something! :)