SettingsGUI

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m (Environment: added python-pygtk-dev)
m (Error on execution: new problem)
Line 88: Line 88:
  
 
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.
 
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
 +
Traceback (most recent call last):
 +
  File "/usr/bin/SettingsGUI.py", line 27, in <module>
 +
    from GSMPanel import GSMPanel
 +
  File "/media/card/root/usr/lib/python2.5/site-packages/SettingsGUI/GSMPanel.py", line 31, in <module>
 +
    import ProcessInterface
 +
  File "/media/card/root/usr/lib/python2.5/site-packages/SettingsGUI/ProcessInterface.py", line 28, in <module>
 +
    import subprocess
 +
  File "/usr/lib/python2.5/subprocess.py", line 403, in <module>
 +
    import pickle
 +
  File "/usr/lib/python2.5/pickle.py", line 34, in <module>
 +
    import struct
 +
ImportError: No module named struct
  
 
[[Category:Applications]]
 
[[Category:Applications]]
 
[[Category:In_progress]]
 
[[Category:In_progress]]

Revision as of 01:15, 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-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.

--ok, thank you. After I installed python-pygtk-dev:

root@fic-gta01:/media/card$ SettingsGUI.py 
Traceback (most recent call last):
 File "/usr/bin/SettingsGUI.py", line 27, in <module>
   from GSMPanel import GSMPanel
 File "/media/card/root/usr/lib/python2.5/site-packages/SettingsGUI/GSMPanel.py", line 31, in <module>
   import ProcessInterface
 File "/media/card/root/usr/lib/python2.5/site-packages/SettingsGUI/ProcessInterface.py", line 28, in <module>
   import subprocess
 File "/usr/lib/python2.5/subprocess.py", line 403, in <module>
   import pickle
 File "/usr/lib/python2.5/pickle.py", line 34, in <module>
   import struct
ImportError: No module named struct
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-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.

--ok, thank you. After I installed python-pygtk-dev:

root@fic-gta01:/media/card$ SettingsGUI.py 
Traceback (most recent call last):
 File "/usr/bin/SettingsGUI.py", line 27, in <module>
   from GSMPanel import GSMPanel
 File "/media/card/root/usr/lib/python2.5/site-packages/SettingsGUI/GSMPanel.py", line 31, in <module>
   import ProcessInterface
 File "/media/card/root/usr/lib/python2.5/site-packages/SettingsGUI/ProcessInterface.py", line 28, in <module>
   import subprocess
 File "/usr/lib/python2.5/subprocess.py", line 403, in <module>
   import pickle
 File "/usr/lib/python2.5/pickle.py", line 34, in <module>
   import struct
ImportError: No module named struct