Liam83
Posts: 10
Joined: Mon Oct 01, 2012 5:19 pm

Config.txt not working

Fri Oct 26, 2012 6:24 pm

Hi all

I have just set my Rasp Pi up using my 32" HD tv. Howeve I am finding the text to be too small.
I have found a command line to increase the font size in Linux and a solution to increase the size in X by opening config.txt.
However config.txt does not open. If I open it in the text editor and change the HDMI from 1 to a different number it does not save and makes the whole process a waste of time. Apparantley the file is not open to be saved. Very annoyed as I gavce been looking forward to programming and I cant see the text. Also I do not have another screen to view it on.

Many Thanks

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Config.txt not working

Fri Oct 26, 2012 6:48 pm

You need root privilege to write to config.txt from the pi.
Open lxterminal and type

Code: Select all

sudo nano /boot/config.txt
(sudo gives you root privilege)
Alternatively edit the config.txt file on a PC.

Liam83
Posts: 10
Joined: Mon Oct 01, 2012 5:19 pm

Re: Config.txt not working

Fri Oct 26, 2012 9:58 pm

Thank you dom. I am using my laptop to edit the details of the file as my Raspberry Pi (which I am disliking by the minute!) isn't having it.
I have tried changing the framebuffer, hdmi mode (I am using a HDMI TV) and ensured the HDMI group is set to 1 (CEA) and the font size hasn't changed one bit in X. Am I doing something wrong?

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: Config.txt not working

Fri Oct 26, 2012 11:03 pm

There are no options in config.txt to change the font size. The config.txt file just changes the screen resolution.

Liam83
Posts: 10
Joined: Mon Oct 01, 2012 5:19 pm

Re: Config.txt not working

Sat Oct 27, 2012 8:49 am

Thanks Bredman I know config.txt only changes the resolution but when I change the above detials the resolution is the same.
I need to lower the resolution so I can see the text on my tv without sitting too close to the screen. I have seen this can be done (by looking at other forum posts) but I can't get it to work.

thsBavR10
Posts: 233
Joined: Sat Jul 21, 2012 3:11 pm

Re: Config.txt not working

Sat Oct 27, 2012 9:18 am

Hi Liam,
have a look at http://www.raspberrypi.org/phpBB3/viewt ... 30#p129362
there is the hint:

Code: Select all

sudo nano /etc/default/console-setup
Find the lines

Code: Select all

FONTFACE=""
FONTSIZE=""
Change it to somthing like

Code: Select all

FONTFACE="Terminus"
FONTSIZE="12x24"
to choose a large font

Liam83
Posts: 10
Joined: Mon Oct 01, 2012 5:19 pm

Re: Config.txt not working

Sat Oct 27, 2012 4:32 pm

Thanks theBay. I have followed these instructions which has made using Linux a lot easier. I found a similar code to do this before but I didn't know how to save it.

However I still can not change the resolution of the Operating System - X.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13009
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Config.txt not working

Sat Oct 27, 2012 5:57 pm

Stupid question, but it has been the cause of "config.txt not working" before.

You do realise that a line in config.txt is only activated if you remove the comment sign"#" before it do yo ?!

Its obvious for anybody that has done any kind of programming, but it seems not for everybody.

Liam83
Posts: 10
Joined: Mon Oct 01, 2012 5:19 pm

Re: Config.txt not working

Sat Oct 27, 2012 7:49 pm

Hi mahjong

I have done a little bit of programming and know the # is a comment line which the computer does not read. But I did not want to mess around with this coding too much. I will try it now though, thank you :)

thsBavR10
Posts: 233
Joined: Sat Jul 21, 2012 3:11 pm

Re: Config.txt not working

Sun Oct 28, 2012 9:38 am

Liam83 wrote:However I still can not change the resolution of the Operating System - X.
I gooooogled a little and found this: http://forum.lxde.org/viewtopic.php?f=8&t=31153
Didn't try it yet, give it a chance. Maybe it helps a little ;-)

Liam83
Posts: 10
Joined: Mon Oct 01, 2012 5:19 pm

Re: Config.txt not working

Sun Oct 28, 2012 6:28 pm

Thank you everyone for your help. My R-Pi is now running at a suitable size which I can see :)

TheBay - Thank you for sending me that link. The font that you can change through this method is the font for the programmes themselves and not the OS font size on the Desktop.

Now to get the sound to work in X...

lordoxford
Posts: 11
Joined: Wed Oct 17, 2012 11:42 pm

Re: Config.txt not working

Mon Nov 05, 2012 9:17 pm

OK, Mahjongg - you are a moderator - tell me, yes or no, is the config.txt file on the SD card read and acted upon? It's no good telling me to edit the config.txt file on the running RPi if I cannot read the tiny text on my monitor! Anyway - I cannot even get to the "Console" prompt, let alone run an editor.
I need to do something on the PC at "SD card" level before I can interact with the Pi unix.
lox.

itimpi
Posts: 1090
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: Config.txt not working

Mon Nov 05, 2012 9:21 pm

The config.txt file IS acted on if in the correct format. As it is on the FAT partition it visible to Windows so can be edited on a PC or Mac. However you need an editor that knows how to use unix/Linux end-of-line characters (e.g. WordPad, notepad+).

lordoxford
Posts: 11
Joined: Wed Oct 17, 2012 11:42 pm

Re: Config.txt not working

Tue Nov 06, 2012 3:37 pm

Please specify this format!!
Coy remarks from the cognoscenti are of no use to we tyros.
I've "Edited" the config.txt file and this has no evident effect.
lox.

itimpi
Posts: 1090
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: Config.txt not working

Tue Nov 06, 2012 3:46 pm

lordoxford wrote:Please specify this format!!
A text file with unix style end-of-line characters.

Details of specific entries that can be included are laid out in the wiki at http://elinux.org/RPi_config.txt
Coy remarks from the cognoscenti are of no use to we tyros.
I've "Edited" the config.txt file and this has no evident effect.
lox.
You have given no information as far as I can see in terms of what you are trying to achieve and what you have tried in the config.txt file. Without that sort of information it is rather difficult to help you.

itimpi
Posts: 1090
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: Config.txt not working

Tue Nov 06, 2012 3:48 pm

lordoxford wrote:Please specify this format!!
A text file with unix style end-of-line characters.

Details of specific entries that can be included are laid out in the wiki at http://elinux.org/RPi_config.txt
Coy remarks from the cognoscenti are of no use to we tyros.
I've "Edited" the config.txt file and this has no evident effect.
lox.
You have given no information as far as I can see in terms of what you are trying to achieve and what you have tried in the config.txt file. Without that sort of information it is rather difficult to help you.

User avatar
Vindicator
Posts: 314
Joined: Sat Sep 17, 2011 11:10 pm
Location: Susanville Ca USA
Contact: Website

Re: Config.txt not working

Wed Nov 07, 2012 3:53 am

Your post is rather vague and therefore it is difficult to answer your question with any degree of accuracy.
Depending on what you are trying to accomplish with the config.txt file this may or may not be the file you need to edit.
The format is a text editor like notepad or wordpad.

For a specific answer to your problem it would be helpful to have specific information as to what you may be trying to achieve.
If you are more worried about ,spelling, punctuation or grammar you have probably already missed the point so please just move on.

Return to “Beginners”