Monday, 18 January 2010

Desktop / Application icon

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=application_name
Exec=/usr/bin/osso-xterm 'sudo gainroot'
Icon=
X-Osso-Type=application/x-executable

put this into a file called /usr/share/applications/hildon/application_name.desktop

See http://talk.maemo.org/showpost.php?p=423380&postcount=26

Monday, 11 January 2010

Dump n900 Addressbook ...

import evolution

addresses = evolution.ebook.open_addressbook('default')
contacts = addresses.get_all_contacts()
for contact in contacts:
print contact.get_name()
for property in contact.props:
if contact.get_property(property.name)!=None:
print property.name,": ",contact.get_property(property.name)

N900 Addressbook from python

Checked the hermes source ...

Installed python-evolution bindings to the address book (which is basically a packaged version of this ...http://live.gnome.org/Conduit/evolution-python)

Using SSH to develop on device gave problems as you log in as root, and to use the
evolution stuff you need to be the user.

su user

import evolution

addresses = evolution.ebook.open_addressbook('default')
contacts = addresses.get_all_contacts()
for contact in contacts:
print contact.get_name()

Remapping hardware keys ...

http://wiki.maemo.org/Remapping_keyboard

/usr/share/X11/xkb/symbols/nokia_vndr/rx-51

Wednesday, 6 January 2010

audio feedback loop ... from src to sink

gst-launch pulsesrc ! pulsesink

Install gstreamer tools ...

apt-get install gstreamer-tools

Play an A note ...

gst-launch audiotestsrc freq=440 ! audioconvert ! audio/x-raw-int,channels=2 ! pulsesink

Generally found alsasink to used more regularly ... in this case pulsesink (for the n900)