Tracking down reasons for segvaulting applications

2009-12-28 Thread Ivo van den Maagdenberg
My python app ends regularly with a segmentation fault and offers to
save a log by means of a gtk dialog. The actual log contains very
little helpful info. I'd like to know how to catch more fish.


Error Signal Information:
/usr/bin/xyz was interrupted by a Segmentation Fault.

Output Data:
There was no output

Error Logs:
There was no error message


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


Re: Tracking down reasons for segvaulting applications

2009-12-28 Thread Ivo van den Maagdenberg
2009/12/28 hab keen oh ne baba_mel...@yahoo.de:
 How do I develop software?
 Could you please not ask stupid much too frequently asked questions?
 strace your program?
 debug it?

Thanks for you friendly reply.

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


Re: Tracking down reasons for segvaulting applications

2009-12-28 Thread Ivo van den Maagdenberg
2009/12/28 Ivo van den Maagdenberg ivo.vdmaagdenb...@gmail.com:
 2009/12/28 hab keen oh ne baba_mel...@yahoo.de:
 How do I develop software?
 Could you please not ask stupid much too frequently asked questions?
 strace your program?
 debug it?

 Thanks for you friendly reply.

Ah no, it's a 4-point multiple-choice anwser! I guess strace is my
friend... troll posts are riddle sometimes =)

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


Re: Tracking down reasons for segvaulting applications

2009-12-28 Thread Ivo van den Maagdenberg
2009/12/28 Patrick Beck pb...@yourse.de:
 Hi,

 is that not a normal enlightenment (window manager) error message? I
 think it will be useful to start the script from the command line. Then
 you get the error output directly from the python interpreter.


Ok, all irony aside, I will start with a test session from the command
line and see what I can find. Then after that I'll throw some strace
at it.

The downside of this all is that I will have to have a GPS fix, which
will force me to go outside in wintertime :/

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


Re: How to make a screenshot

2009-12-09 Thread Ivo van den Maagdenberg
2009/12/9 William Kenworthy bi...@iinet.net.au:
 On Wed, 2009-12-09 at 00:16 +0100, Thomas Zimmermann wrote:
 Am Mittwoch 09 Dezember 2009 00:02:38 schrieb Ivo van den Maagdenberg:
  Forgive me for asking one of those silly questions:
 
  How do I make a screenshot of an openmoko screen, without a photo camera?
 
 Alternative courtesy of Lowell Higley on Nov 28th:

 To make a poor man's screenshot from FR's terminal:

        sleep 5 ; cp /dev/fb0 screen.dump

        The sleep 5 gives you time to switch to the screen you want to
        shoot (or do remotely from an ssh session). You get a 4 MB
        screen dump, I use the following command on the
        desktop-PC to convert it to a png:

        fbgrab -f screen.dump -b 16 -h 640 -w 480 screen.png


The poor mans method has worked for me! Thanks.

The Gpe-scap method sounds appealing, but currently suffering from a
routing problem over wifi from gta02 to my network has held me back to
actually install it. Will try later.

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


How to make a screenshot

2009-12-08 Thread Ivo van den Maagdenberg
Forgive me for asking one of those silly questions:

How do I make a screenshot of an openmoko screen, without a photo camera?

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


How to publish a piece of software in python?

2009-11-29 Thread Ivo van den Maagdenberg
I have a rather simple request: what is the procedure to publish a set
of python script files, into a distributable package for releasing it
to the opkg feeds?

http://wiki.openmoko.org/wiki/Toolchain posed me some challanges. After reaching
How to create your own project from the sample project it seems this
whole method is for a c-programs... this turns me down, sorry.

So, where is the simple 5-10 step procedure for average joes like me?

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


Re: How to publish a piece of software in python?

2009-11-29 Thread Ivo van den Maagdenberg
2009/11/29 Joseph Reeves iknowjos...@gmail.com:
 An ipk file is just a load of files packaged together. These are
 distributed as you see fit, then opkg installs your application by
 extracting the relevant files to the places you want them. All very
 easy (said, literally, as an average Joe) if you use the ipkg-build
 script. More info:

 http://www.oesf.org/index.php?title=IPKG_Howto

That link truly helped. Currently I have deploy an ipkg package on my
moko, which lands things as intended in /usr/bin and
/usr/lib/python2.6/site-packages/. Great! Another step further into
public availability of my tinkering :)

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


Re: [SHR] Accelerometers

2009-10-25 Thread Ivo van den Maagdenberg
2009/10/25 Frederik Sdun frederik.s...@googlemail.com

 * Iain B. Findleton ifindle...@videotron.ca [25.10.2009 13:19]:
  Where is the device control for the accelerometers on SHR? Was
  /sys/bus/platform/devices/ls302dl.1/2 or some such on the OM distros.
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community
 here's an overview of the sysfs paths:
 http://wiki.openmoko.org/wiki/GTA02_sysfs#Accelerometers


No luck. The paths specified on the page you refer to do not exits on the
SHR release.
r...@om-gta02 ~ $ ls -a /sys/devices/platform/
.physmap-flash.0  s3c2440-sdi  s3c-ohci
..   powers3c2440-uart.0   soc-audio
gta02-led.0  s3c2410-iis  s3c2440-uart.1   uevent
gta02-pm-wlan.0  s3c2410-wdt  s3c2440-uart.2
neo1973-memconfig.0  s3c2440-i2c  s3c2440-usbgadget
neo1973-version.0s3c2440-nand s3c24xx_pwm.0

http://wiki.openmoko.org/wiki/Accelerometer_data_retrieval#The_.2Fsys_interfacedoes
neither point to the right direction in the SHR case.

Any other suggestions how to manipulate the accelerometers?
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Dbus api for gta2 accelerometers

2009-09-12 Thread Ivo van den Maagdenberg
Anyone able to show how to read out the accelerometers through d-bus? I
tried looking it up on http://wiki.openmoko.org/wiki/Dbus_device_API but did
not find references to the accelerometers.

http://wiki.openmoko.org/wiki/Accelerometer_data_retrieval is of course
valuable, but I'd like to learn the FSO way of doing things.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Dbus api for gta2 accelerometers

2009-09-12 Thread Ivo van den Maagdenberg
2009/9/12 Michael 'Mickey' Lauer mic...@vanille-media.de

 On Saturday 12 September 2009 09:56:08 Ivo van den Maagdenberg wrote:
  Anyone able to show how to read out the accelerometers through d-bus? I
  tried looking it up on http://wiki.openmoko.org/wiki/Dbus_device_API but
  did not find references to the accelerometers.

 What's your usecase? Since very recently, we provide

 http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Device.Orientation.html;hb=HEAD

 The use case is as follows: take the openmoko and make it a cycleway shock
measuring platform, utilizing the accelerometers. So, direct reads from the
are going to be needed. The gps unit is of course of interest to make the
measurements location-based.

I am not yet up to speed with the fso stack. Is it possible to explain why
the fso direction to read out data from the accelerometers was abandoned? I
could understand the argument that constantly reading out the accelerometers
would hog the cpu and probably would also drain the battery very easily too.
Switching the readout on and off through by fso interface command and
reading them out would be a natural thing to have, but as said, I have not
implemented a single line of code in the fso domain :)
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [2008.12] Editing numbers, in contacts for instance

2008-12-25 Thread Ivo van den Maagdenberg
2008/12/25 Wendy wendy_h...@openmoko.com

 Hi,

 try to scroll up and down on the keyboard, then you will have numbers or
 symbols.
 check here:http://wiki.openmoko.org/wiki/Om_2008.8_Keyboard

 Thanks, this is a bit embarrassing from my side, but I got so used to the
way FDOM has offered keyboard interactivity the last months, that I never
really looked into the working of the original OM keyboard, which I thought
really unuseful without the tab-key (think of tapping things in the
terminal...)

I will try to live with the default way of keyboard interaction now.
Although I also managed to experiment with the matchbox keyboard in the
meantime.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


[2008.12] Editing numbers, in contacts for instance

2008-12-24 Thread Ivo van den Maagdenberg
Just flashed to 2008.12. Fast booting and responsive user interaction,
great!

However, I noticed there is only a simple keyboard available. While I was
trying to edit data in the Contacts app there is no way to enter numbers...
only 26 characters (a-z) are available.

Any hints are welcome to get this keyboard puzzle resolved.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community