Re: [maemo-developers] Asterisk 1.2.0 - successfully run on Nokia 770

2005-12-06 Thread Eero Tamminen
Hi,

> looks like it was a crash after all, it's dumping core in chan_sip.c
> (the SIP engine). I found the place where it's doing that, I'm working
> on fixing that bug, should have a working version in a few days. Does
> anyone know a way to display the stack backtrace from a Nokia770
> -generated core file? I don't have gdb on the device and if I move
> the file to the PC, it tells me there is no backtrace to display.
> Do I have to do this within Scratchbox (didn't try that yet)?

To get a backtrace from a core file, you need exactly the same binary
and libraries with which the core file was generated.  To get function
names to core files, the bin/libs need to have been compiled with -g
option and not to be stripped (the bin/libs on the target may be
stripped, but not the ones with which you check the core).

I'm not sure whether the product libs match 100% the ones in the ARM
SDK though, or are they just API/ABI compatible.


Another (maybe easier solution) is to copy ARM version of the
'gdbserver' from the SDK (in /scratchbox/device_tools/ dir) to
the target, attach that to the debugged program and connect to
that from Gdb running in the SDK (you cannot run full GDB in
the device, there's not enough memory for that unless the debugged
program is really simple). There are instruction on how to do this
on the scratchbox.org site.


- Eero

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Glib main loop behavior

2005-12-06 Thread Samuel Abels
Hello,

I am trying to hook a callback into the glib mainloop using g_idle_add()
and have noticed that the behaviour appears to differ from (what I
believe is) the way Gtk does this outside of Maemo. For example, in the
following code:

-
gboolean my_callback_in_the_glib_loop(gpointer data)
{
  g_print("Joe was here\n");
  return FALSE;
}

gpointer my_thread(gpointer data)
{
  while (running) {
g_idle_add(my_callback_in_the_glib_loop, NULL);
do_something();
  }
  return NULL;
}

void on_button_pressed(...) {
  ...
  g_thread_create(my_thread, NULL, FALSE, NULL);
}
-

The problem is that my_callback_in_the_glib_loop() is only called when
there is activity on the screen, such as the mouse pointer moving over
the Xephyr window in the scratchbox environment.

What is the reason for this behaviour, and is there a way around it? I
would like to use the mechanism to work around Gtk not being thread
safe.

-Samuel
-- 
 --
|  Samuel Abels   |   http://www.debain.org|
| spam2 ad debain dod org | knipknap ad jabber dod org |
 --
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] developing home-page-plugins

2005-12-06 Thread Florian Boor
Hi,

Collin R. Mulliner wrote:
> so I'm trying to develop a home-page plugin (like date-time or radio). I
> wounder how to test these in the development environment (on my PC). I
> tryed putting the files (.so and .conf) into /usr/lib/hildon-home but
> nohting happens when I run it (af-sb-init.sh start). I also tryed
> running it on the device, my plugin shows up in the list, but doesn't
> show when I select it (I guess it's crashing).

if you install them to /var/lib/install/ (like installed with the AI) they show
up correctly but fail to start with an error message. The example home plugin
seems to suffer from this effect too, so i guess that problem is releated to the
loading application or the documentation and not to the plugin itself. See bug
#297 in bugzilla.

Greetings

Florian

-- 
The dream of yesterday  Florian Boor
is the hope of todayTel: 0271-771091-14
and the reality of tomorrow.Fax: 0271-771091-19
[Robert Hutchings Goddard, 1904][EMAIL PROTECTED]

6C 44 30 4C 43 20 6B 61  16 07 0F AA E6 97 70 A8
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Shell scripting with GUI?

2005-12-06 Thread Frantisek Dufka
Yes zenity or gdialod is what I wanted. Thanks for the link. By binary I 
mean executable you can run from shell with arguments and parse its 
output or check return code. One can do a lot with this quickly.


Python is too heavy. Shell is already on the device and is enough for 
most of the 'glue' not worth of writing in C.


I though this solution would be enough for making UI for kbdd. Just make 
a dialog from output of 'hcitool scan' allow user to select the device, 
bind rfcomm port and start kbdd deamon.


Frantisek

Kalle Vahlman wrote:


I'm not sure what you mean with "providing as a binary", but I assume
that zenity[1] would work on maemo too.

[1] http://freshmeat.net/projects/zenity



___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Shell scripting with GUI?

2005-12-06 Thread Vidar Madsen
Actually, a hildon-enhanced version of gtk-server might be useful for
a number of things.

Put short, gtk-server a daemon that listens to a fifo or a tcp socket
and takes commands (e.g. widget creation) from a client application
and sends back events and result codes.

See http://www.gtk-server.org/ , and note the "Example" section.

Vidar
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Re: Shell scripting with GUI?

2005-12-06 Thread Ross Burton
On Tue, 2005-12-06 at 12:29 +0200, Kalle Vahlman wrote:
> Spoke too soon, it seems to depend on libgnomecanvas (don't know why
> and no option to disable it in configure at least).

I'm guessing that is for the easter egg, so you should be able to patch
it out easily.

Ross
-- 
Ross Burton mail: [EMAIL PROTECTED]
  jabber: [EMAIL PROTECTED]
 www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Shell scripting with GUI?

2005-12-06 Thread Kalle Vahlman
2005/12/6, Kalle Vahlman <[EMAIL PROTECTED]>:
> 2005/12/6, Frantisek Dufka <[EMAIL PROTECTED]>:
> > Hello,
> >
> > is there some binary on N770 that would just pop up a dialog of specific
> > type and returned result to standard output? It would great for simple
> > shell scripting. Or is there some project that already provides gtk
> > 'shell bindings' as a binary?
>
> I'm not sure what you mean with "providing as a binary", but I assume
> that zenity[1] would work on maemo too.

Spoke too soon, it seems to depend on libgnomecanvas (don't know why
and no option to disable it in configure at least).

--
Kalle Vahlman, [EMAIL PROTECTED]
Powered by http://movial.fi
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Shell scripting with GUI?

2005-12-06 Thread Kalle Vahlman
2005/12/6, Frantisek Dufka <[EMAIL PROTECTED]>:
> Hello,
>
> is there some binary on N770 that would just pop up a dialog of specific
> type and returned result to standard output? It would great for simple
> shell scripting. Or is there some project that already provides gtk
> 'shell bindings' as a binary?

I'm not sure what you mean with "providing as a binary", but I assume
that zenity[1] would work on maemo too.

[1] http://freshmeat.net/projects/zenity

--
Kalle Vahlman, [EMAIL PROTECTED]
Powered by http://movial.fi
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] bluetooth keyboard

2005-12-06 Thread Koen Kooi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Frantisek Dufka wrote:
> Hello,
> 
> just to let you know. I've got uinput.ko module compiled and got kbdd
> working with my iPAQ bluetooth foldable keyboard. Now I need to add some
> gui. Either to integrate in into existing keyboard applet or create new
> one.

You could use the gui gpe uses as a start:
http://handhelds.org/cgi-bin/cvsweb.cgi/gpe/base/gpe-conf/keys/keyboard.c?rev=1.10&content-type=text/x-cvsweb-markup

regards,

Koen


> 
> kbdd + uinput module binary is here
> http://fanoush.webpark.cz/maemo/kbdd.tgz
> 
> diff to kbdd for btfoldable type is here
> http://fanoush.webpark.cz/maemo/btfoldable.diff
> 
> No README, description how to make it working is here
> http://handhelds.org/moin/moin.cgi/kbdd
> but you need to insmod the uinput.ko module first (as root). It would be
> great if Nokia could add uinput module to standard N770 kernel.
> 
> Regards,
> Frantisek
> 
> 
> Frantisek Dufka wrote:
> 
>> Tomas Junnonen wrote:
>>
>>> However, the kbdd program (http://handhelds.org/moin/moin.cgi/kbdd)
>>> mentions supporting your keyboard, and I can't think of any immediate
>>> reasons why this would not work on the 770 with a bit of hacking.
>>
>>
>>
>> Just tried binary from
>> http://familiar.handhelds.org/releases/v0.8.2/feed/base/kbdd_0.8+cvs-20050331-r3_arm.ipk
>> and it need uinput kernel driver.
>>
>> Nokia770-43:~# ./kbdd -p /dev/rfcomm0 -t foldable
>> failed to open uinput device: No such file or directory
>> init uinput failed
>>
>> If someone has nokia kernel source lying on his/her computer and would
>> compile module from
>> http://handhelds.org/cgi-bin/cvsweb.cgi/linux/kernel26/drivers/input/misc/uinput.c
>>
>> for me, that would be great. If not, I'll try this as soon as possible
>> (probably this weekend).
>>
>> BTW, I managed to pair the keyboard, connect to it and got some
>> garbage from /dev/rfcomm when typing on keyboard so it definitely
>> works and hopefully needs only kbdd running with proper kernel module.
>>
>> Frantisek
>>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDlVJtMkyGM64RGpERAoGnAJwP03XYWwV8FboXbwSFWKUcs/fYhQCeMpXN
Xfo+8zKWHugfZjof/Wndq/g=
=P8Wm
-END PGP SIGNATURE-
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Shell scripting with GUI?

2005-12-06 Thread Frantisek Dufka

Hello,

is there some binary on N770 that would just pop up a dialog of specific 
type and returned result to standard output? It would great for simple 
shell scripting. Or is there some project that already provides gtk 
'shell bindings' as a binary?


Frantisek
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] bluetooth keyboard

2005-12-06 Thread Frantisek Dufka

Hello,

just to let you know. I've got uinput.ko module compiled and got kbdd 
working with my iPAQ bluetooth foldable keyboard. Now I need to add some 
gui. Either to integrate in into existing keyboard applet or create new one.


kbdd + uinput module binary is here
http://fanoush.webpark.cz/maemo/kbdd.tgz

diff to kbdd for btfoldable type is here
http://fanoush.webpark.cz/maemo/btfoldable.diff

No README, description how to make it working is here
http://handhelds.org/moin/moin.cgi/kbdd
but you need to insmod the uinput.ko module first (as root). It would be 
great if Nokia could add uinput module to standard N770 kernel.


Regards,
Frantisek


Frantisek Dufka wrote:

Tomas Junnonen wrote:

However, the kbdd program (http://handhelds.org/moin/moin.cgi/kbdd) 
mentions supporting your keyboard, and I can't think of any immediate 
reasons why this would not work on the 770 with a bit of hacking.



Just tried binary from
http://familiar.handhelds.org/releases/v0.8.2/feed/base/kbdd_0.8+cvs-20050331-r3_arm.ipk 
and it need uinput kernel driver.


Nokia770-43:~# ./kbdd -p /dev/rfcomm0 -t foldable
failed to open uinput device: No such file or directory
init uinput failed

If someone has nokia kernel source lying on his/her computer and would 
compile module from 
http://handhelds.org/cgi-bin/cvsweb.cgi/linux/kernel26/drivers/input/misc/uinput.c 

for me, that would be great. If not, I'll try this as soon as possible 
(probably this weekend).


BTW, I managed to pair the keyboard, connect to it and got some garbage 
from /dev/rfcomm when typing on keyboard so it definitely works and 
hopefully needs only kbdd running with proper kernel module.


Frantisek


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers