Re: help for newbie, and some python

2009-06-03 Thread Anthony Winter
On Wed, 03 Jun 2009, Robin Paulson wrote:
 2009/6/3 Anthony Winter aw...@sayne.org:
  OK, good start. But - assuming that it does run from a command line (and I
  still haven't found a terminal yet, but there must be one somewhere), what
  are the steps in getting it run by 'clicking' on an icon, in 
paroli/illume?
  That's the missing bit...
 
 i assumed you were connected via ssh, and could get at a terminal that way

er no, I want to write apps that will be used on the phone. In the field. In a 
hurry, sometimes.

 i can't remember if there is a terminal in om2009 or not - i think
 there is, and it's pretty good. have you discovered illume ie the
 desktop yet? if not, you might want to go to
 http://wiki.openmoko.org/wiki/Paroli#FAQ
 specifically, how do i get illume?

I have discovered it, and while the initial frustration level has receded, I 
still haven't got the hang of it yet. I'm beginning to see why Apple have 
captured the non-geek market. 

 where all your questions will be answered

Not really. For example, the OM2009 link is to Elementary, which looks neat, 
but a) it's not gtk, and b) it's in C, and life (and in particular, the 
possible life of a Neo) is too short to write apps in C. So I need something 
with python bindings.
 
 the wiki is great, have search - there's mountains of useful info there

Weel, there is a lot there, but I haven't yet found the key to doing what 
I want...

-- 
Ant

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: help for newbie, and some python

2009-06-03 Thread Ovidiu Gavril
 Hi,

 I have some similar problems too.

 1. First, if I make opkg update, I receive a lot of Signature check 
failed messages. I know these are only warnings, but in the end I also receive 
this:

Collected errors:
 * Failed to download 
http://downloads.openmoko.org/repository/Multiverse/Packages.gz, error 404
 * Failed to download 
http://downloads.openmoko.org/repository/Multiverse/Packages.sig, error 404
 * Failed to download 
http://downloads.openmoko.org/repository/Om2008.8/all/Packages.sig, error 404
 * Failed to download 
http://downloads.openmoko.org/repository/Om2008.8/armv4t/Packages.sig, error 404
 * Failed to download 
http://downloads.openmoko.org/repository/Om2008.8/om-gta02/Packages.sig, error 
404
 * Failed to download 
http://buildhost.automated.it/OM2007.2/packages/all/Packages.sig, error 404
 * Failed to download 
http://buildhost.automated.it/OM2007.2/packages/armv4t/Packages.sig, error 404
 * Failed to download 
http://buildhost.automated.it/OM2007.2/packages/neo1973/Packages.sig, error 404
 * Failed to download 
http://buildhost.automated.it/OM2007.2/packages/om-gta01/Packages.sig, error 404

     This makes me think the updates don't work. Because of this, I can't 
install some packages, because I receive: 
Package package_name md5sum mismatch. Either the opkg or the package index are 
corrupt. Try 'opkg update'
 I've read this may be a DNS problem, but my /etc/resolv.conf file is 
similar with that from my local machine, so I can't clear this up.

 2. The second problem and the more important one is about using Python 
with Dbus. I have this little program which should make a phone call on a 
number:
#!/usr/bin/env python
import dbus
bus = dbus.SessionBus()
proxy = bus.get_object(org.openmoko.Dialer, /org/openmoko/Dialer)
interface = dbus.Interface(object, org.openmoko.Dialer)
interface.Dial(12345)
 But when I make dbus-launch python my_program or simply python 
my_program, I receive this:

Traceback (most recent call last):  
  File test.py, line 2, in module   
    import dbus 
  File /usr/lib/python2.6/site-packages/dbus/__init__.py, line 100, in 
module
    from dbus._dbus import Bus, SystemBus, SessionBus, 
StarterBus    
  File /usr/lib/python2.6/site-packages/dbus/_dbus.py, line 46, in 
module    
    from dbus.bus import 
BusConnection   
  File /usr/lib/python2.6/site-packages/dbus/bus.py, line 26, in 
module  
    import 
logging   
ImportError: No module named logging

 If I try a simple command line which also makes a phone call:
dbus-send --print-reply --dest=org.openmoko.Dialer /org/openmoko/Dialer 
org.openmoko.Dialer.Dial string:12345
or a simple dbus-monitor command, I receive this: 
Failed to open connection to session message bus: dbus-launch failed to 
autolaunch D-Bus session: Autolaunch error: X11 initialization failed.

 I'm kind of stuck in these problems. Thank you in advance.

 Best regards,
  Ovidiu



--- On Wed, 6/3/09, Anthony Winter aw...@sayne.org wrote:

From: Anthony Winter aw...@sayne.org
Subject: Re: help for newbie, and some python
To: Support for Openmoko Device Owners support@lists.openmoko.org
Date: Wednesday, June 3, 2009, 9:55 AM

On Wed, 03 Jun 2009, Robin Paulson wrote:
 2009/6/3 Anthony Winter aw...@sayne.org:
  OK, good start. But - assuming that it does run from a command line (and I
  still haven't found a terminal yet, but there must be one somewhere), what
  are the steps in getting it run by 'clicking' on an icon, in 
paroli/illume?
  That's the missing bit...
 
 i assumed you were connected via ssh, and could get at a terminal that way

er no, I want to write apps that will be used on the phone. In the field. In a 
hurry, sometimes.

 i can't remember if there is a terminal in om2009 or not - i think
 there is, and it's pretty good. have you discovered illume ie the
 desktop yet? if not, you might want to go to
 http://wiki.openmoko.org/wiki/Paroli#FAQ
 specifically, how do i get illume?

I have discovered it, and while the initial frustration level has receded, I 
still haven't got the hang of it yet. I'm beginning to see why Apple have 
captured the non-geek market. 

 where all your questions will be answered

Not really. For example, the OM2009 link is to Elementary, which looks neat, 
but a) it's not gtk, and b) it's in C, and life (and in particular, the 
possible life of a Neo) is too short to write apps in C. So I need something 
with python bindings.
 
 the wiki is great, have search - there's mountains of useful info there

Weel, there is a lot there, but I haven't yet found the key to doing what 
I want...

-- 
Ant

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support



  

Re: help for newbie, and some python

2009-06-03 Thread halbtaxabo-om


--- On Wed, 6/3/09, Ovidiu Gavril ovidiu_gav...@yahoo.com wrote:

  Sorry, I
 forgot to say that I'm using om2008.12 release.

I have the impression that most active development recently has
gone into the om2009 release:

http://wiki.openmoko.org/wiki/Om2009#Installing

I think the om2008.12 release is a bit of a dead end.


___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: help for newbie, and some python

2009-06-03 Thread Risto H. Kurppa
 I have the impression that most active development recently has
 gone into the om2009 release:

 http://wiki.openmoko.org/wiki/Om2009#Installing

 I think the om2008.12 release is a bit of a dead end.

yes, OM009 is a good direction to go to and the link above (also check
the Paroli wiki page) will tell you a lot you need to know.

Also have a look at http://etherpad.com/zt3x1x7ERX to get some tips of
things you might want to install/run there.


r

-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: help for newbie, and some python

2009-06-03 Thread Al Johnson
On Wednesday 03 June 2009, Anthony Winter wrote:
 On Wed, 03 Jun 2009, Robin Paulson wrote:
  2009/6/3 Anthony Winter aw...@sayne.org:
   OK, good start. But - assuming that it does run from a command line
   (and I still haven't found a terminal yet, but there must be one
   somewhere), what are the steps in getting it run by 'clicking' on an
   icon, in

 paroli/illume?

   That's the missing bit...
 
  i assumed you were connected via ssh, and could get at a terminal that
  way

 er no, I want to write apps that will be used on the phone. In the field.
 In a hurry, sometimes.

Create a .desktop file in /usr/share/applications, in this case probably 
called /usr/share/applications/base.desktop. The easiest way to do this is 
probably to copy and modify one of the other files in that directory, but the 
format itself is standard:
http://standards.freedesktop.org/desktop-entry-spec/latest/

For the icon to appear in the illume launcher the Categories entry has to 
include Applications.

  i can't remember if there is a terminal in om2009 or not - i think
  there is, and it's pretty good. have you discovered illume ie the
  desktop yet? if not, you might want to go to
  http://wiki.openmoko.org/wiki/Paroli#FAQ
  specifically, how do i get illume?

 I have discovered it, and while the initial frustration level has receded,
 I still haven't got the hang of it yet. I'm beginning to see why Apple have
 captured the non-geek market.

  where all your questions will be answered

 Not really. For example, the OM2009 link is to Elementary, which looks
 neat, but a) it's not gtk, and b) it's in C, and life (and in particular,
 the possible life of a Neo) is too short to write apps in C. So I need
 something with python bindings.

Elementary also has python bindings, but if you prefer to stick to gtk you 
can. You may need to install gtk and its python bindings if they aren't in 
Om2009 by default. Installing the bindings should pull in the required gtk 
packages:
opkg install python-pygtk
Depending on what you're doing you may need other packages as opkg is more 
granular than most package managers. You can check what's available with 
something like:
opkg list |grep gtk
opkg list |grep python

  the wiki is great, have search - there's mountains of useful info there

 Weel, there is a lot there, but I haven't yet found the key to doing
 what I want...



___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Stylus replacement button cells

2009-06-03 Thread Joachim Ott
The original cells are labeled GP192, searching the web I found
equivalent cells labeled LR41 AG3. But when I put 4 of them into the
stylus, the laser beam was very weak and became weaker very fast. Is
this cell type not suitable for the stylus?

I bought this button cells in a set, 6 different types with 6 cells
each for just € 3.00, and I tried 3 cells of type LR754 AG5, they work
great and the laser beam is as if the stylus was new.

Should I put this to the FAQ, and if yes, to which section? Hardware?
Misc? A new section Accessoires?

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: Om2009 testing release 4

2009-06-03 Thread Kevin Day
On Tue, Jun 2, 2009 at 9:50 AM, Al Johnson
openm...@mazikeen.demon.co.uk wrote:
 On Tuesday 02 June 2009, Robin Paulson wrote:
 2009/6/2 Al Johnson openm...@mazikeen.demon.co.uk:
  On Tuesday 26 May 2009, Robin Paulson wrote:
  there's no incentive i can see to stay with uboot
 
  You probably don't have 4 different distros on your SD then ;-)

 no, i don't.

 but it doesn't look like it will be long before qi can do multi-boot

 http://wiki.openmoko.org/wiki/Qi#Boot_Menu

 It's been done already - there was a thread about building the minimal kernel
 and rootfs, and using it to kexec into the one you really want to boot.
 Unfortunately that takes up another partition that I just don't have spare due
 to the kernel limitation on partitions in mmcblk devices, and android's thirst
 for partitions. This could be worked around too, but as I already have  a
 working uboot setup there doesn't seem much point. I've nothing against Qi,
 but in my case uboot is the better tool for the job.



What one could do is create an initramfs and build it directly into the kernel.
The small rootfs would exist with the boot kernel on any desired
partition (say partition 0), taking up no more partitions than already
used.

The initramfs must be pregenerated.
The command to create the initramfs is:
find . | cpio --quiet -H newc -o | gzip -9 -n  /usr/src/boot-initrd.cpio.gz

Place the initramfs into the kernel source tree, and then something
like this config option should be used:
CONFIG_INITRAMFS_SOURCE=boot-initrd.cpio.gz

It's relatively easy to tell when the initrd makes it into the kernel,
just look at its size!

-- 
Kevin Day

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: help for newbie, and some python

2009-06-03 Thread Ovidiu Gavril
 Ok, but if I install OM2009, is it a sure way to solve my problems? I'm 
more interested in Dbus problem than the opkg update problem.

 Thanks,
  Ovidiu


--- On Wed, 6/3/09, Risto H. Kurppa ri...@kurppa.fi wrote:

From: Risto H. Kurppa ri...@kurppa.fi
Subject: Re: help for newbie, and some python
To: halbtaxabo...@yahoo.com, Support for Openmoko Device Owners 
support@lists.openmoko.org
Date: Wednesday, June 3, 2009, 2:05 PM

 I have the impression that most active development recently has
 gone into the om2009 release:

 http://wiki.openmoko.org/wiki/Om2009#Installing

 I think the om2008.12 release is a bit of a dead end.

yes, OM009 is a good direction to go to and the link above (also check
the Paroli wiki page) will tell you a lot you need to know.

Also have a look at http://etherpad.com/zt3x1x7ERX to get some tips of
things you might want to install/run there.


r

-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support



  ___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: Om2009 testing release 4

2009-06-03 Thread Al Johnson
On Wednesday 03 June 2009, Kevin Day wrote:
 On Tue, Jun 2, 2009 at 9:50 AM, Al Johnson

 openm...@mazikeen.demon.co.uk wrote:
  On Tuesday 02 June 2009, Robin Paulson wrote:
  2009/6/2 Al Johnson openm...@mazikeen.demon.co.uk:
   On Tuesday 26 May 2009, Robin Paulson wrote:
   there's no incentive i can see to stay with uboot
  
   You probably don't have 4 different distros on your SD then ;-)
 
  no, i don't.
 
  but it doesn't look like it will be long before qi can do multi-boot
 
  http://wiki.openmoko.org/wiki/Qi#Boot_Menu
 
  It's been done already - there was a thread about building the minimal
  kernel and rootfs, and using it to kexec into the one you really want to
  boot. Unfortunately that takes up another partition that I just don't
  have spare due to the kernel limitation on partitions in mmcblk devices,
  and android's thirst for partitions. This could be worked around too, but
  as I already have  a working uboot setup there doesn't seem much point.
  I've nothing against Qi, but in my case uboot is the better tool for the
  job.

 What one could do is create an initramfs and build it directly into the
 kernel. The small rootfs would exist with the boot kernel on any desired
 partition (say partition 0), taking up no more partitions than already
 used.

That's one of several possible workarounds, but it's not very helpful given 
that the partitions tend to get reformatted and have a new tarball extracted 
over them fairly often. The workarounds all involve extra work for little 
gain.

One thing that would fix it would be if Qi would check the last partition, 
which may be a partition that is outside the kernel partition limit. 

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: help for newbie, and some python

2009-06-03 Thread Al Johnson
On Wednesday 03 June 2009, Ovidiu Gavril wrote:
  Ok, but if I install OM2009, is it a sure way to solve my problems?
 I'm more interested in Dbus problem than the opkg update problem.

Om2009 is using paroli and frameworkd, both of which are written in python, 
and communicate using dbus, so you shouldn't have any problems with it. I 
don't know anything about the org.openmoko.Dialer dbus interface you are 
using, but I guess it is now replaced by frameworkd.

I don't think I ever tried Om2008.12, but afaik it didn't make much use of 
dbus or python. I guess you would have had to install extra packages to get 
them working, but it looks like you are missing a python package, and the dbus 
session bus isn't started despite your use of dbus-launch.


___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


[om2009-r4] Warren's Settings Worked for Me (was Re: Om2009 testing release 4)

2009-06-03 Thread William Ray Yeager
A critical friend of mine who has mocked my purchase of an
unfinished phone just told me that our connection was as good as a
landline!  I followed Warren's advice below and lowered control.5 to
80 (I'm naturally conservative) which has (so far) completely removed
the previously unbearable buzz my friend had observed on the other end
of the conversation.  Wow.  Now I might not need to solder in a new
capacitor!

For the demi-newbie:

Open /usr/share/openmoko/scenarios/gsmhandset.state
Scroll down to control.5 and in that section change the line under
'Mono Playback Volume' from value 110 to value 80.
Save file.
Call OM skeptic.
Gloat.

Warren said:

I've always had people complain that they got a lot of static when
they called me - I thought I had the buzz problem in fact.   I just
spent the time to figure out how to use alsamixer to tweak things, and
if I set control.5 (Mono Playback Volume)  to 83 from above 100 like
I've seen in other gsmhandset.state files (ranging from 100 to 110
seems normal), I get a perfectly clear signal on the other end.

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support