Re: [Qi - SHR-U/All?] Pink line of death

2009-10-03 Thread Stuart Pullinger
 Has anyone seen the 'pink line of death' at any time?
 
Yes. I've seen it.
 My FR sometimes does not suspend, but instead shows a black screen
 with a pink/purple line at about 33% from the bottom of the screen.
 The backlight is fully on. Also, the screen is whining.
 
 I haven't been able to reproduce it with a known procedure, but it may
 have to do with rotating the phone during suspend.
 
I've seen this bug but I also cannot reproduce it right now. I think it
happens when I change orientation whilst suspending or whilst waking up
from suspend (using current SHR-unstable and OMNewRotate). 
 I also haven't had it in this state on such times that it was possible
 to SSH into it to see if it was still alive or not.
 
 Shall I file a bug report with this meager information?
 
I'm suspending and waking rotating my phone right now and cannot
reproduce it. Maybe it's been fixed ;^)

Stuart

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Tangogps or navit with prepackaged Europe map

2009-05-28 Thread Stuart Pullinger
others have put together more or less regularyl updated  
 binary map files of several regions of the world.

You could try downloads.cloudmade.com - they have a europe map in navit
format to download. It's 631M zipped so it may be too big for your SD
card once unzipped.

Stuart


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Looking for a app similar to the Dog Whistle for the iPhone

2009-04-24 Thread Stuart Pullinger
Adam Jimerson wrote:
 Thanks that is what I was looking for, 
No probs.

 to bad there isn't a UI or anything for it.

Tadaaa! Hope pasting it into an email doesn't ruin the formatting. This
is my first pygtk/pygst program and it has been cobbled together from
various code examples on the web. I hope you like it.

Stuart

#!/usr/bin/env python

##
# testtone.py
# Hacked together by Stuart Pullinger (s dot pullinger at elec dot gla
dot ac dot uk) from the following sources:
# http://www.pygtk.org/pygtk2tutorial/index.html
# http://pygstdocs.berlios.de/pygst-tutorial/index.html
#
http://www.jonobacon.org/2006/08/28/getting-started-with-gstreamer-with-python/
##

import pygtk
pygtk.require('2.0')
import gtk
import pygst
pygst.require(0.10)
import gst

class TestTone:

def startstop(self, widget, data=None):
if self.playing:
#we are playing so stop
self.pipeline.set_state(gst.STATE_NULL)
self.playing = False
else:
#we are stopped so start playing
self.pipeline.set_state(gst.STATE_PLAYING)
self.playing = True

def change_freq(self, adj):
self.audiotestsrc.set_property('freq', adj.value)

def change_vol(self, adj):
self.audiotestsrc.set_property('volume', adj.value)

def delete_event(self, widget, event, data=None):
print delete event occurred
return False

def destroy(self, widget, data=None):
print destroy signal occurred
gtk.main_quit()

def __init__(self):
# create a new window
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
   
self.window.connect(delete_event, self.delete_event)
self.window.connect(destroy, self.destroy)
   
self.window.set_border_width(10)
   
self.button = gtk.Button(Start / Stop)
self.button.connect(clicked, self.startstop, None)

self.adjustfreq = gtk.Adjustment(440, 20, 2, 10, 100, 0)

self.freq_button = gtk.SpinButton(adjustment=self.adjustfreq,
climb_rate=0.5, digits=2)
self.adjustfreq.connect('value_changed', self.change_freq)
   
self.adjustvol = gtk.Adjustment(0.4, 0, 1, 0.01, 0.1, 0)
self.vol_button = gtk.SpinButton(adjustment=self.adjustvol,
climb_rate=0.5, digits=2)
self.adjustvol.connect('value_changed', self.change_vol)
   
self.pipeline = gst.Pipeline(mypipeline)
self.audiotestsrc = gst.element_factory_make(audiotestsrc,
audio)
self.audiotestsrc.set_property('freq', 440)
self.audiotestsrc.set_property('volume', 0.4)
self.pipeline.add(self.audiotestsrc)
self.sink = gst.element_factory_make(alsasink, sink)
self.pipeline.add(self.sink)
self.audiotestsrc.link(self.sink)
   
self.playing = False
   
self.vbox = gtk.VBox(False, 0)
self.vbox.pack_start(self.freq_button)
self.vbox.pack_start(self.vol_button)
self.vbox.pack_start(self.button)
self.window.add(self.vbox)
self.button.show()
self.freq_button.show()
self.vol_button.show()
self.vbox.show()
self.window.show()

def main(self):
# All PyGTK applications must have a gtk.main(). Control ends here
# and waits for an event to occur (like a key press or mouse event).
gtk.main()

# If the program is run directly or passed as an argument to the python
# interpreter then create a HelloWorld instance and show it
if __name__ == __main__:
testtone = TestTone()
testtone.main()



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Looking for a app similar to the Dog Whistle for the iPhone

2009-04-23 Thread Stuart Pullinger
Adam Jimerson wrote:
 I mean like playing a tone, the same tone, but at different pitch like
 67Hz as an example

It can be done from the command-line with gstreamer:

gst-launch audiotestsrc freq=67 volume=0.8 ! alsasink

(It's very quiet!)

You may have to install a few extra packages via opkg eg:

opkg install gst-plugin-audiotestsrc
on shr-testing or using the direct address:
http://build.shr-project.org/shr-testing/ipk/armv4t/gst-plugin-audiotestsrc_0.10.17-r5_armv4t.ipk

Use:
gst-inspect audiotestsrc
fo more info.

Stuart

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: ReMoko on SHR - python error

2009-04-06 Thread Stuart Pullinger
noo wrote:
 I got it running through:

 1. /usr/bin/remoko 
 39-41 changing remoko.remoko_server in remoko_server (and so on)
   
Do you mean changing:
from remoko.remoko_server import *
to
from remoko_server import *
in /usr/bin/remoko?

Didn't work for me (using shr-testing). I get
r...@om-gta02 ~ $ DISPLAY=:0 remoko
Traceback (most recent call last):
  File /usr/bin/remoko, line 39, in module
from remoko_server import *
ImportError: No module named remoko_server
r...@om-gta02 ~ $ echo $PYTHONPATH
/usr/lib/python2.6/:/usr/lib/python2.6/site-packages/
r...@om-gta02 ~ $ ls /usr/lib/python2.6/site-packages/remoko
remoko_conf.py remoko_key_mapper.py   remoko_server.py
remoko_conf.pyoremoko_key_mapper.pyo  remoko_server.pyo

Any ideas?

Thanks,
Stuart

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community