Re: accellerometer test

2008-04-03 Thread Andy Green

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| Hi guys,
|
| just got around to testing one (the 2nd one seems broken or unaccessible
| on my prototypes) of the Neo FreeRunner accellerometers.
|
| Apart from a bit of jitter, I think its pretty accurate -- I'm very
| satisfied with the performance. We can detect lots of different
| orientations, including (the boring) landscape and portrait, but also
| up-side-down (which comes in handy for autosleeping). I'd love to have
| wake-up as well eventually (Andy, Werner?).

We can wake up from one of the accelerometers and not the other -- which
is likely okay for real use -- but there is no driver support or API to
enable or disable it yet.  I guess it can just expose something in /sys.

| The attached python program displays the three axis on the console and
| calls xrandr to mimick the usual (yes, boring) autoswitch from landscape
| to portrait and back.
|
| I'm looking forward to when we start doing gesture recognition (GSoC
| 2008). In the meantime, I'll come up with a simple graphical testing
| program.

Sounds good.  I am curious about what happens if you take that app for a
ride in your car.  What does it show after you accelerated to cruising
speed and just go constantly along with it sat on the passenger seat?
Same as if it was at rest?

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkf0m/sACgkQOjLpvpq7dMpXXgCfaNfCpndOnR21/ireBskGu5tg
8gsAn1V6otjnx66XypsUYCkNCv+K9hOw
=uG4J
-END PGP SIGNATURE-

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


Re: accellerometer test

2008-04-03 Thread Andy Green

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| Am Donnerstag, den 03.04.2008, 09:57 +0100 schrieb Andy Green:
| We can wake up from one of the accelerometers and not the other -- which
| is likely okay for real use -- but there is no driver support or API to
| enable or disable it yet.  I guess it can just expose something in /sys.
|
| Agreed. Can we program the threshold for the three axis individually? If
| so, I'd like to have something like
|
| echo 600 -1 -1
| /sys/class/accellerometer/gta02-lis302dl/wakeup_threshold
|
| before falling asleep.
|
| The -1 would mean ignore this axis, the 600 would refer a change of
| 0.6G irrespectively of sign.

For reference the datasheet is freely available here:

http://www.st.com/stonline/products/literature/ds/12726.pdf

It seems to me there is basically one number you can set, and then you
can decide if X, Y and/or Z go above or below that number makes an
interrupt.  It looks like this number is absolute, ie, if you set it to
5 then going above or below 5 x 18mG in + or - will trigger it.

So you can almost get what you are looking for, just that there is only
one number allowed.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkf04AAACgkQOjLpvpq7dMoCywCeOAvQiWYOZ8xuEHQbQ6o4X4Mr
vA0AnRJxuAmCnLcpItcfYp6Nx6R8hDg1
=5W3y
-END PGP SIGNATURE-

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


Re: accellerometer test

2008-04-03 Thread Michael 'Mickey' Lauer
Am Donnerstag, den 03.04.2008, 09:57 +0100 schrieb Andy Green:
 We can wake up from one of the accelerometers and not the other -- which
 is likely okay for real use -- but there is no driver support or API to
 enable or disable it yet.  I guess it can just expose something in /sys.

Agreed. Can we program the threshold for the three axis individually? If
so, I'd like to have something like

echo 600 -1 -1
/sys/class/accellerometer/gta02-lis302dl/wakeup_threshold

before falling asleep.

The -1 would mean ignore this axis, the 600 would refer a change of
0.6G irrespectively of sign.

:M:


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


Re: accellerometer test

2008-04-03 Thread Michael 'Mickey' Lauer
Am Donnerstag, den 03.04.2008, 09:57 +0100 schrieb Andy Green:
 Sounds good.  I am curious about what happens if you take that app for a
 ride in your car.  What does it show after you accelerated to cruising
 speed and just go constantly along with it sat on the passenger seat?

If it stops to snow here in austria, I will be in a car heading back
towards Frankfurt on Saturday and will do this test.

:M:



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


Re: accellerometer test

2008-04-03 Thread Michael 'Mickey' Lauer
 It seems to me there is basically one number you can set, and then you
 can decide if X, Y and/or Z go above or below that number makes an
 interrupt.  It looks like this number is absolute, ie, if you set it to
 5 then going above or below 5 x 18mG in + or - will trigger it.
 
 So you can almost get what you are looking for, just that there is only
 one number allowed.

Excellent! When do you have time to give that a go? :)

Thanks,

:M:


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


Re: accellerometer test

2008-04-03 Thread Michael 'Mickey' Lauer
 | So you can almost get what you are looking for, just that there is only
 | one number allowed.
 |
 | Excellent! When do you have time to give that a go? :)
 
 Right now... to be clear we talk about wake CPU from suspend with this?

100%, yeah.

 Also is
 
 http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=1277

 okay now?

I don't have sane internet here, so I can't build a current kernel.
Please give me until Sunday and I'll do more tests.

Thanks,

Mickey.



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


Re: accellerometer test

2008-04-03 Thread Andy Green

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| It seems to me there is basically one number you can set, and then you
| can decide if X, Y and/or Z go above or below that number makes an
| interrupt.  It looks like this number is absolute, ie, if you set it to
| 5 then going above or below 5 x 18mG in + or - will trigger it.
|
| So you can almost get what you are looking for, just that there is only
| one number allowed.
|
| Excellent! When do you have time to give that a go? :)

Right now... to be clear we talk about wake CPU from suspend with this?

Also is

http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=1277

okay now?

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkf05sIACgkQOjLpvpq7dMpIHwCffQdZeu/qeEERIUc/GkkujivF
TzoAnRcjBz1gTGLYzEm7hlJMfOp8P6mg
=zBcJ
-END PGP SIGNATURE-

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


RE: accellerometer test

2008-04-03 Thread Crane, Matthew

I notice you mention only one chip is currently working as isr source.
But isn't there two independently configurable pins connected to irqs
from that one chip?  I didn't dig into the schematic, not sure.  

Matt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
'Mickey' Lauer
Sent: Thursday, April 03, 2008 10:08 AM
To: Andy Green
Cc: List for Openmoko community discussion;
[EMAIL PROTECTED]
Subject: Re: accellerometer test


 It seems to me there is basically one number you can set, and then you
 can decide if X, Y and/or Z go above or below that number makes an
 interrupt.  It looks like this number is absolute, ie, if you set it
to
 5 then going above or below 5 x 18mG in + or - will trigger it.
 
 So you can almost get what you are looking for, just that there is
only
 one number allowed.

Excellent! When do you have time to give that a go? :)

Thanks,

:M:



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


Re: accellerometer test

2008-04-03 Thread Thomas Wood
On Tue, 2008-04-01 at 21:37 +0200, Michael 'Mickey' Lauer wrote:
 Hi guys,
 
 just got around to testing one (the 2nd one seems broken or unaccessible
 on my prototypes) of the Neo FreeRunner accellerometers.

Both seem to work on my prototype (GTA02v5), as long as X isn't running.
If I start my X session, event3 is no longer accessible, so I imagine
something else is reading it already? Does neod open either of them?


Regards,

Thomas


-- 
OpenedHand Ltd.

Unit R Homesdale Business Center / 216-218 Homesdale Road /
Bromley / BR1 2QZ / UK Tel: +44 (0)20 8819 6559

Expert Open Source For Consumer Devices - http://o-hand.com/



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


Re: accellerometer test

2008-04-03 Thread Andy Green

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| On Tue, 2008-04-01 at 21:37 +0200, Michael 'Mickey' Lauer wrote:
| Hi guys,
|
| just got around to testing one (the 2nd one seems broken or unaccessible
| on my prototypes) of the Neo FreeRunner accellerometers.
|
| Both seem to work on my prototype (GTA02v5), as long as X isn't running.
| If I start my X session, event3 is no longer accessible, so I imagine
| something else is reading it already? Does neod open either of them?

neod has them both open, but the input subsystem should be okay with
that and you having them too.  I think you need to make sure you have a
real recent kernel with the patch to improve locking for the service
routine.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkf1DMIACgkQOjLpvpq7dMpm3wCfaESLPI5HZ11hI2lKcOad+RSY
KFEAn0Xu4JhMRm46gWGjWSznXPWBjOdT
=9JUy
-END PGP SIGNATURE-

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


Re: accellerometer test

2008-04-03 Thread Thomas Wood


On 3 Apr 2008, at 17:58, Andy Green wrote:


neod has them both open, but the input subsystem should be okay with
that and you having them too.  I think you need to make sure you have a
real recent kernel with the patch to improve locking for the service
routine.


Before I tried the test, I re-flashed with a new kernel I built today.

Let me know if there is anything I can do to debug the problem.

Regards,

Thomas


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