SettingsGUI

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m (Environment)
m (Error on execution)
Line 59: Line 59:
 
  python SettingsGUI-x.x/SettingsGUI.py &
 
  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.
 
 
--ok, thank you. After I installed python-pygtk-dev:
 
 
root@fic-gta01:/media/card$ SettingsGUI.py
 
Executes subprocess
 
Done
 
Traceback (most recent call last):
 
  File "/usr/bin/SettingsGUI.py", line 79, in <module>
 
    SettingGUI = SettingsGUI()
 
  File "/usr/bin/SettingsGUI.py", line 61, in __init__
 
    self.add_notebook_page(GSMPanel(), "moko-call-redial")
 
  File "/media/card/root/usr/lib/python2.5/site-packages/SettingsGUI/GSMPanel.py", line 46, in __init__
 
    self.start_gsm_tool()
 
  File "/media/card/root/usr/lib/python2.5/site-packages/SettingsGUI/GSMPanel.py", line 75, in start_gsm_tool
 
    self.gsm_tool.write_to_process("O")
 
  File "/media/card/root/usr/lib/python2.5/site-packages/SettingsGUI/ProcessInterface.py", line 163, in write_to_process
 
    self.process.process.stdin.write("%s\n" % string)
 
IOError: [Errno 32] Broken pipe
 
  
 
[[Category:Applications]]
 
[[Category:Applications]]
 
[[Category:In_progress]]
 
[[Category:In_progress]]

Revision as of 02:30, 1 September 2007

In progress: This article or section documents one or more features whose implementation are in progress.
File:Screen-0 4.png
SettingsGUI - Screen Settings
SettingsGUI - Audio Settings
SettingsGUI - GSM Settings

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

SettingsGUI-0.5.tar.gz

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-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 &
Personal tools
In progress: This article or section documents one or more features whose implementation are in progress.
File:Screen-0 4.png
SettingsGUI - Screen Settings
SettingsGUI - Audio Settings
SettingsGUI - GSM Settings

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

SettingsGUI-0.5.tar.gz

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-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 &