SettingsGUI
From Openmoko
In progress: This article or section documents one or more features whose implementation are in progress. |
Contents |
Overview
Until OpenMoko releases an official GUI-Tool to change settings, SettingsGUI allows you to set various settings of the gta01.
This programm is written in Python using pygtk. It can be used only if those are present in your environment.
(see SettingsGUI#Environment)
Current Features
- Screen (Backlight enable/disable, Backlight brightness, Screen Orientation)
- Audio (profile selection, volume)
- GSM (Restart gsmd, signal strength, provider, status)
Planned Features
- GSM (Provider selection)
- Bluetooth (device scanning, connection, signal strength)
- GPRS (select APN, display transfer rate)
- Battery (show capacity, voltage, charger-status)
Comment on GSM-Support
- As there are no gsmd python bindings available at the time, SettingGUI uses python-subprocess and threads to communicate to the commandline of libgsmd-tool for the time being.
Download
Thanks to Alessandro there also is an .ipk and a .bb file. Have a look at his user site.
Environment
The following archives will have to be installed:
- python-core
- python-misc
- python-lang
- python-pygtk
- python-pygtk-dev
- python-subprocess
- python-threading (should be a dependency of python-subprocess... ?)
- python-pygtk-dev (should not be needed... ?)
- python-pycairo-dev (should be a dependency of python-pygtk-dev and not be needed... ?)
If you want to test this and do not have a build environment, you can 'ipkg install' the python components from the ScaredyCat repositories.
NOTE: These packages take up a considerable amout of space, make sure that you have enough free space or install the packages to the media card. |
Installation / Execution
- download file to Neo (e.g. using wget)
- Uncompress tar.gz file (e.g. gzip -d file.tar.gz, then tar -xvf file.tar)
- run:
export DISPLAY=:0.0 python SettingsGUI-x.x/SettingsGUI.py &
Error on execution
root@fic-gta01:/media/card/SettingsGUI-0.5$ Traceback (most recent call last): File "SettingsGUI.py", line 23, in <module> import gtk ImportError: No module named gtk
root@fic-gta01:/media/card/SettingsGUI-0.5$ ipkg list_installed |grep python libpython2.5-1.0 - 2.5.1-ml1 - Python Programming Language python-codecs - 2.5.1-ml1 - Python Codecs, Encodings & i18n Support python-core - 2.5.1-ml3 - Python Interpreter and core modules (needed!) python-fcntl - 2.5.1-ml1 - Python's fcntl Interface python-io - 2.5.1-ml1 - Python Low-Level I/O python-lang - 2.5.1-ml1 - Python Low-Level Language Support python-math - 2.5.1-ml1 - Python Math Support python-misc - 2.5.1-ml1 - Python Programming Language python-pickle - 2.5.1-ml1 - Python Persistence Support python-pycairo - 1.4.0-ml0 - Python Bindings for the Cairo canvas library python-pycairo-dev - 1.4.0-ml0 - Python Bindings for the Cairo canvas library python-pygobject-dev - 2.12.3-r2 - Python GObject bindings python-pygtk - 2.10.4-ml1 - Python GTK+ 2.10.x Bindings python-re - 2.5.1-ml1 - Python Regular Expression APIs python-shell - 2.5.1-ml1 - Python Shell-Like Functionality python-subprocess - 2.5.1-ml1 - Python Subprocess Support python-threading - 2.5.1-ml1 - Python Threading & Synchronization Support
This means you'll have to install python-pygtk-dev. For some reason python-pygtk does not allow "import gtk" in the current openembedded environment.