Re: [b2g] Orientation sensor not working.

2014-01-17 Thread Luis Cuervo
In geeksphone we only compile the sources from mozilla, so if it's was working 
in 1.2 it should be working in 1.4, because we didnt change any internal data 
from 1.2 to 1.4.

So i'm not sure that is a geeksphone problem. And more when you are using 1.4 
that is the master branch that is the less stable.

Test it in 1.3 and 1.2 and if you get the same results, contact me and will 
search for a fix.

Luis Cuervo.

El miércoles, 15 de enero de 2014 03:32:22 UTC+1, Viral Wang  escribió:
 Hi,
 
 
 
 the value we capture from acceleration sensor is the gravity of earth (9.8 
 m/s^2 in normal)
 
 if we get the 20 m/s^2, that means a volatile movement to us.
 
 we can not detect the correct orientation in the unstable status.
 
 
 
 So, yes, it's a geekphone problem.
 
 
 
 Regards,
 
 viral
 
 
 
 - Original Message -
 
 From: A. Crespo madrid.cre...@gmail.com
 
 To: Viral Wang vw...@mozilla.com
 
 Cc: Dev B2G List dev-b2g@lists.mozilla.org
 
 Sent: Tuesday, January 14, 2014 5:43:26 PM
 
 Subject: Re: [b2g] Orientation sensor not working.
 
 
 
 Hi,
 
 
 
 You are right, z is almost 20. But If it were using that, It would mean
 
 that FxOS that when it is flipped to the right, X would come Z and would be
 
 almost 20 too.
 
 
 
 It should be detected as an orientation change, despite it's values.
 
 
 
 Anyways, how to fix it? Is it a geeksphone problem?
 
 
 
 Regards.
 
 
 
 
 
 2014/1/14 Viral Wang vw...@mozilla.com
 
 
 
  Hi,
 
 
 
  We still use acceleration sensor to calculate the orientation in 1.4
 
  I check the Keon phone and find the data from acceleration sensor seems
 
  not correct.
 
  One easy test is to put device on the desk, we expect the x,y are close to
 
  0, and z is close to 9.8.
 
  However, z is almost 20 now.
 
  If the acceleration data didn't report correctly, we can not get the
 
  correct orientation.
 
 
 
  Regards,
 
  viral
 
 
 
  - Original Message -
 
  From: A. Crespo madrid.cre...@gmail.com
 
  To: Viral Wang vw...@mozilla.com
 
  Cc: Dev B2G List dev-b2g@lists.mozilla.org
 
  Sent: Monday, January 13, 2014 7:38:22 PM
 
  Subject: Re: [b2g] Orientation sensor not working.
 
 
 
  Hi,
 
 
 
  I'm using also 1.4, I think it worked with 1.2, but I don't use 1.2 since
 
  long time ago.
 
 
 
  When you say that you did use the accel sensor do you mean that you don't
 
  use it anymore?
 
 
 
  Regards.
 
 
 
 
 
  2014/1/13 Viral Wang vw...@mozilla.com
 
 
 
   Hi,
 
  
 
   We did use the acceleration sensor for orientation detection.
 
   I'm guessing you didn't change any setting in your device.
 
  
 
   I take one reference phone with 1.4, the orientation looks good to me.
 
   Any version information we can have? like which gecko/gaia version your
 
   orientation sensor ever works.
 
   or which version it didn't work.
 
  
 
   Regards,
 
   viral
 
  
 
   - Original Message -
 
   From: A. Crespo madrid.cre...@gmail.com
 
   To: Viral Wang vw...@mozilla.com
 
   Cc: Dev B2G List dev-b2g@lists.mozilla.org
 
   Sent: Monday, January 13, 2014 6:44:34 PM
 
   Subject: Re: [b2g] Orientation sensor not working.
 
  
 
   Hi,
 
  
 
   The accelerationIncludingGravity property seems to work okay, but the
 
   rotationRate doesn't.
 
  
 
   Does the orientation detection use the same sensor, the acceleration
 
   sensor?
 
  
 
   If it works, I can't understand why I can't set my browser, camera,
 
  gallery
 
   or video to landscape mode :(
 
  
 
   Thanks you!
 
  
 
  
 
   2014/1/13 Viral Wang vw...@mozilla.com
 
  
 
Hi,
 
   
 
Here's one quick method to verified your sensor is to check the sensor
 
data in your device.
 
Here's a website using standard API to read the data from orientation
 
sensor.
 
   
 
   
 
  
 
  http://www.html5rocks.com/en/tutorials/device/orientation/devicemotionsample.html
 
   
 
Regards,
 
viral
 
   
 
- Original Message -
 
From: A. Crespo madrid.cre...@gmail.com
 
To: Dev B2G List dev-b2g@lists.mozilla.org
 
Sent: Saturday, January 11, 2014 9:47:03 PM
 
Subject: [b2g] Orientation sensor not working.
 
   
 
Hi,
 
   
 
My screen orientation doesn't change even when I have disabled lock
 
orientation. Have you ever seen anything like that? I am wondering if
 
  the
 
orientation sensor is broken, is there any way to debug it? Could I
 
  test
 
   it
 
using any tool from the dogfood apps, perhaps?
 
   
 
I'm using FxOS 1.4 in a GP Keon device.
 
   
 
Regards.
 
___
 
dev-b2g mailing list
 
dev-b2g@lists.mozilla.org
 
https://lists.mozilla.org/listinfo/dev-b2g
 
   
 
  
 
 

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Performance results for Leo device (v1-train)

2013-08-22 Thread Luis Cuervo
El miércoles, 21 de agosto de 2013 16:14:14 UTC+2, Julien Wajsberg  escribió:
 Le 21/08/2013 16:07, Hubert Figuière a écrit :
 
  What apps did you use to take this data? Are they public?
 
 
 
  thanks
 
 
 
  The performance is measured using b2gperf.
 
 
 
  Source code is here:
 
https://github.com/mozilla/b2gperf
 
 
 
 We also have a performance test framework in Gaia to developer more
 
 focused tests, see
 
 https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Platform/Testing/Gaia_performance_tests

Thank you both...
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Keon build error! (Mac OS)

2013-07-10 Thread Luis Cuervo
El miércoles, 22 de mayo de 2013 22:51:59 UTC+2, Jed Davis  escribió:
 On Wed, May 22, 2013 at 12:14:14PM -0700,  wrote:
 
  It builds just fine, if you follow the instructions on 
  developer.mozilla.org (especially the case sensitive filesystem parts)
 
  
 
  I had to do 3 extra things (For the record, i'm using OSX 10.8.3):
 
  - elf.h  was not on the build path. I symlinked 
  external/elfutils/libelf/elf.h to /usr/local/include
 
  - incorrect arm-eabi-gcc is selected. I symlinked B2G/prebuilt/linux-* to 
  B2G/prebuilt/darwin-*
 
  - gnu-sed is needed. brew install gnu-sed. Make sure /usr/local/bin is on 
  your path before /usr/bin.
 
 
 
 Please file bug reports about at least the first two items there, if you
 
 haven't already.  People shouldn't need to symlink target headers into
 
 the host's /usr/local/include, and it certainly shouldn't be the case
 
 that `setpaths` in build/envsetup.sh sets $prebuiltdir (which I think is
 
 where that part of $PATH should be coming from) to a linux-* tree when
 
 run on a Mac.
 
 
 
 --Jed

The prebuild problem is fixed now in keon and peak:

https://github.com/gp-b2g/gp-keon-kernel/commit/2ca8e9deafa63b0f9a839860e9a3f835e6f5e3a6

https://github.com/gp-b2g/gp-peak-kernel/commit/e53ce64297565ce05cf665f5a320da241b3ba21a

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g