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
https://github.com/Huulivoide/rpiconf
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.
rpiconf – config.txt editor
5 posts
- Posts: 26
- Joined: Fri Aug 19, 2011 8:24 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?
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
I think doing
subprocess.call(['sync'])
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
subprocess.call(['sync'])
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
- Posts: 26
- Joined: Fri Aug 19, 2011 8:24 pm
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!
May the best tool win!
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
.
Here are a couple screen shots of it running and a sample configfile produced by it
Video output settings:
Performance tuning settings (overclocking/volting)

And finally a sample config file generated by Rpiconf
http://huulivoide.pp.fi/public/rpiconf/config.txt
Sourcecode can be fetched from https://github.com/Huulivoide/rpiconf
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
Here are a couple screen shots of it running and a sample configfile produced by it
Video output settings:
Performance tuning settings (overclocking/volting)
And finally a sample config file generated by Rpiconf
http://huulivoide.pp.fi/public/rpiconf/config.txt
Sourcecode can be fetched from https://github.com/Huulivoide/rpiconf
- Posts: 26
- Joined: Fri Aug 19, 2011 8:24 pm