Re: [maemo-developers] Question about intercepting the HOME button

2006-03-14 Thread Kalle Vahlman
On 3/15/06, Ramiro Estrugo <[EMAIL PROTECTED]> wrote: > So my question is where is the code in maemo_af_desktop that catches the > GDK_F5 and turns into some kind of message so that I can comment it out > ? The key snooper was installed in hildon-home/hildon-home-main.c:hildon_home_main(), but it

Re: [maemo-developers] Question about intercepting the HOME button

2006-03-14 Thread Tapani Pälli
ext Ramiro Estrugo wrote: > Yes I know thats how it works, which is why Im asking how to hack it. > > OK > And yes, I realize i want to do something evil, perhaps. But, its for > my own personal app and amusement. > > You are free to be evil :-) I was just making sure that if you want to de

Re: [maemo-developers] Question about intercepting the HOME button

2006-03-14 Thread Kalle Vahlman
On 3/15/06, Ramiro Estrugo <[EMAIL PROTECTED]> wrote: > I am using the 1.1 version of the maemo sdk release. > > Do I need something even newer, from svn ? No, but it appears that it is indeed handled differently than normal keypresses so basically you're out of luck without some deep hacking. Th

Re: [maemo-developers] Question about intercepting the HOME button

2006-03-14 Thread Ramiro Estrugo
Yes I know thats how it works, which is why Im asking how to hack it. And yes, I realize i want to do something evil, perhaps. But, its for my own personal app and amusement. -re Tapani Pälli wrote: >HOME-key is special. HOME button should always take you to home whatever >the situation is (ev

Re: [maemo-developers] Question about intercepting the HOME button

2006-03-14 Thread Ramiro Estrugo
I am using the 1.1 version of the maemo sdk release. Do I need something even newer, from svn ? -re Kalle Vahlman wrote: >The key snooper was installed in >hildon-home/hildon-home-main.c:hildon_home_main(), but it was removed >at > >2005-08-30 Karoliina Salminen <[EMAIL PROTECTED]> > >

Re: [maemo-developers] Question about intercepting the HOME button

2006-03-14 Thread Tapani Pälli
ext Ramiro Estrugo wrote: > Hi maemo hackers. > > I want to handle HOME button event and CONSUME it. > > I tried hacking HildonAppView to not register a gtk key event snooper > to handle the HOME key (which seems to be an alias for GDK_F5) > > This didnt work. The app no longer handles the HOME ke

Re: [maemo-developers] Question about intercepting the HOME button

2006-03-14 Thread Benjamin Zeller
You are right the maemo-af-desktop handles the key. I already written a patch where you can switch off the home button by sending a DBus Message to maemo-af-desktop. But you have to create a new rootfs and flash it to your nokia. If you need the patch send me a email. BTW the patch is for the cu

[maemo-developers] Question about intercepting the HOME button

2006-03-14 Thread Ramiro Estrugo
Hi maemo hackers. I want to handle HOME button event and CONSUME it. I tried hacking HildonAppView to not register a gtk key event snooper to handle the HOME key (which seems to be an alias for GDK_F5) This didnt work. The app no longer handles the HOME key event but some other process does

Re: [maemo-developers] Measuring power consumption of 770

2006-03-14 Thread Heike C. Zimmerer
Claudio Scordino <[EMAIL PROTECTED]> writes: > The voltage and the current provided by the battery is much > different from the values provided by an electric cable connected to > a socket (220V and 50Hz here in Italy). That's why our measurement > tools wouldn't work with such a small current...

[maemo-developers] CACAO

2006-03-14 Thread Philippe Laporte
Hi, The CACAO vm has executed the Knopflerfish OSGI (http://www.knopflerfish.org) test suite with one failure, the same as with Sable and Jam. All VMs use Classpath. No AWT tests were executed. It's nice that CACAO has so many JIT ports. We haven't done any perfomance benchmarks yet with

Re: [maemo-developers] Measuring power consumption of 770

2006-03-14 Thread Claudio Scordino
> > Does anybody have an idea about how to make the Nokia 770 work without > > the battery (just with the electric cable) or how to make such a > > measurement ? > > Why don't you just wire a battery to the battery pins and connect your > meters to these wires? The voltage and the current provided

Re: [maemo-developers] Measuring power consumption of 770

2006-03-14 Thread Claudio Scordino
On Tuesday 14 March 2006 16:31, Frantisek Dufka wrote: > Claudio Scordino wrote: > > Does anybody have an idea about how to make the Nokia 770 work without > > the battery (just with the electric cable) or how to make such a > > measurement ? > > When the battery is fully charged you can start meas

Re: [maemo-developers] Optimized memory copying functions for Nokia 770

2006-03-14 Thread Siarhei Siamashka
Siarhei Siamashka wrote: By the way, I tried to search for asm optimized versions of memcpy for ARM platforms. Did not do that before as my mistake was that I assumed glibc memcpy/memset implementations to be already optimized as much as posible. Appears that there is fast memcpy implementation

Re: [maemo-developers] How to keep app running indefinitely

2006-03-14 Thread Steven Hill
On Tue, 2006-14-03 at 09:04 +0200, Kalle Valo wrote: > "Steven Hill" <[EMAIL PROTECTED]> writes: > > >> Good. But actually disabling the idle timer is just a workaround. It > >> seems that the real problem is the application crashing whenever a > >> disconnect from a network happens. > > > > I ag

Re: [maemo-developers] Optimized memory copying functions for Nokia 770

2006-03-14 Thread Siarhei Siamashka
Eero Tamminen wrote: That makes the comparison with memcpy somewhat unfair, since you are not actually providing replacement functions, so this would only make difference for -O3 type optimatisation (where you trade speed for size); it would be interesting to see what the performance differen

Re: [maemo-developers] Optimized memory copying functions for Nokia 770

2006-03-14 Thread Siarhei Siamashka
Tomas Frydrych wrote: Like Dirk already replied, the implementation is in macros in the .h file. I see. That makes the comparison with memcpy somewhat unfair, since you are not actually providing replacement functions, so this would only make difference for -O3 type optimatisation (where you t

Re: [maemo-developers] Measuring power consumption of 770

2006-03-14 Thread Igor Stoppa
On Tue, 2006-03-14 at 14:53 +0100, ext Claudio Scordino wrote: > Hi all. > > We have a Nokia 770, and we want to study the effectiveness of some > algorithms > that reduce the number of transferred data in order to reduce the overall > energy consumption of the device. > > To make this study,

Re: [maemo-developers] Optimized memory copying functions for Nokia 770

2006-03-14 Thread Eero Tamminen
Hi, > That makes the comparison with memcpy somewhat unfair, since you > are not actually providing replacement functions, so this would only > make difference for -O3 type optimatisation (where you trade speed for > size); it would be interesting to see what the performance difference is > if you

Re: [maemo-developers] Measuring power consumption of 770

2006-03-14 Thread Frantisek Dufka
Claudio Scordino wrote: Does anybody have an idea about how to make the Nokia 770 work without the battery (just with the electric cable) or how to make such a measurement ? When the battery is fully charged you can start measuring current in the cable since the battery is probably not used

Re: [maemo-developers] Optimized memory copying functions for Nokia 770

2006-03-14 Thread Tomas Frydrych
> Like Dirk already replied, the implementation is in macros in the .h > file. I see. That makes the comparison with memcpy somewhat unfair, since you are not actually providing replacement functions, so this would only make difference for -O3 type optimatisation (where you trade speed for size);

Re: [maemo-developers] Optimized memory copying functions for Nokia 770

2006-03-14 Thread Siarhei Siamashka
Jack Jansen wrote: This looks very promising, especially if it could be used as a drop-in replacement! At least improved memset can be already used as a drop-in replacement, only a patch for glibc is neded. So we need to have a look at glibc sources and find a place to integrate it. But in or

[maemo-developers] Measuring power consumption of 770

2006-03-14 Thread Claudio Scordino
Hi all. We have a Nokia 770, and we want to study the effectiveness of some algorithms that reduce the number of transferred data in order to reduce the overall energy consumption of the device. To make this study, we need a way to measure the energy consumption of the device or, at least, an

Re: [maemo-developers] Optimized memory copying functions for Nokia 770

2006-03-14 Thread Siarhei Siamashka
Tomas Frydrych wrote: There seems to be no source for the functions in the tarball. Siarhei Siamashka wrote: Hello All, Here are the optimized memory copying functions for Nokia 770 (memset is more than twice faster, memcpy improves about 10-40% depending on relative data blocks alignment

RE: [maemo-developers] Optimized memory copying functions for Nokia770

2006-03-14 Thread Dirk-Jan.Binnema
T >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of ext >Tomas Frydrych >Sent: Tuesday, March 14, 2006 11:23 >To: maemo-developers@maemo.org >Subject: Re: [maemo-developers] Optimized memory copying >functions for Nokia770 > >There seems to be no sour

Re: [maemo-developers] Optimized memory copying functions for Nokia 770

2006-03-14 Thread Tomas Frydrych
There seems to be no source for the functions in the tarball. Tomas Siarhei Siamashka wrote: > Hello All, > > Here are the optimized memory copying functions for Nokia 770 (memset is > more than twice faster, memcpy improves about 10-40% depending on > relative data blocks alignment). > > http: