rpiconf – config.txt editor

5 posts
by Huulivoide » Tue May 01, 2012 6:51 pm
So I too am working on a GUI editor for the config.txt file.

I see there is alredy one in here written in QT in c++.

My application in the other hand is done with python and gtk+.

It is not yet ready and doesen't even save the config file yet,

but the logick to generate one is tarting to build up in there.

This is my 1st python project actually my 1st application that

does more than print "hello world", I've written in any language.

So the code might not be clean and might contain some errors

or wrong kind of use of stuff. Please give me tips and ideas on

what more to implemnt and how I should do something.

Dictionarys instead of lists? int instead of string and so on...

The Code/Homepage can be found here


I ask please do not "complete" this, as I said this is my 1st real

application and I would like to write it into end myself, fixes

to existing code in the other hand are welcome.
Posts: 26
Joined: Fri Aug 19, 2011 8:24 pm
by bredman » Tue May 01, 2012 8:45 pm
Excellent idea.

For some reason the parameter config_hdmi_boost is not documented. It is important for some long or weak HDMI cables. The range is 1 to 7, I think the default is 1. See http://elinux.org/R-Pi_Trouble.....VI_monitor

You will have problems writing to the file /boot/config.txt. You may find that changes are lost if the power is removed and reconnected. This is because of something strange in the way the boot partition is mounted. You must force a refresh of the boot partition before removing power. The easiest way is the system call   sudo reboot

Anybody know a better to force a refresh of the boot partition?
Posts: 1413
Joined: Tue Jan 17, 2012 2:38 pm
by Huulivoide » Tue May 01, 2012 8:53 pm
I think doing


after writing the file should do it.

sync command flushes all data into the disk from

the filesystem buffers.

And thanks for that config option too. Now just have to

find a way to cram it into the GUI XD the analog video

connectors resolution sets certain limits on the size

of theapp window :D
Posts: 26
Joined: Fri Aug 19, 2011 8:24 pm
by SN » Wed May 02, 2012 10:16 am
I also have one of these tools in development - albeit on an x86 box ready for transferring to QEMU and a real raspi

May the best tool win! ;-)
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?
User avatar
Posts: 1008
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
by Huulivoide » Wed May 16, 2012 11:36 am
Status update

Rpiconf is comming into pieces quite nicely alredy. Currently it should be in a state where it can be alredy used to generate a configfiles. There are still a lot to tune, Save as for example is not working. Also a lot of code need to be written to check the sanity of the values before and after saving, we dont want to load a config file with hdmi_mode=-56 XD or arm_freq=10800 :D.

Here are a couple screen shots of it running and a sample configfile produced by it :D

Video output settings:

Performance tuning settings (overclocking/volting)

And finally a sample config file generated by Rpiconf

Sourcecode can be fetched from https://github.com/Huulivoide/rpiconf
Posts: 26
Joined: Fri Aug 19, 2011 8:24 pm