On Tuesday, April 14, 2015 at 1:58:15 PM UTC+2, Felix E. Klee wrote: > When updating the Keon to [certain versions][1], then things break. > For example, after updating from 1.2 to 1.3, automatic detection of > phone orientation stopped working. The phone does not detect landscape > orientation anymore. > > I wonder why that happens. After all, at least for the same major > release, new features of Firefox OS don't require a new kernel and > HAL, or do they? > > Yes, I know I could have asked this in the [Keon forum][2], but that > looks orphaned. Also this is more of a general question about Firefox > OS. I am not looking for a solution. For the Flame, I assume that only > the [base images][3] include Gonk, and there indeed aren't many > versions of those. > > [1]: http://downloads.geeksphone.com/ > [2]: http://forum.geeksphone.com/index.php?board=45.0 > [3]: > https://developer.mozilla.org/en-US/Firefox_OS/Phone_guide/Flame/Updating_your_Flame
Keon's libhardware is on GitHub https://github.com/gp-b2g/hardware_libhardware and you can read the raw sensor values from a file descriptor over adb (see consuming code here https://github.com/gp-b2g/hardware_libhardware/blob/master/modules/sensors/BmaSensor.cpp). So if you see that the driver gives out the wrong values you could normalize them, change it in libhardware, and recompile Firefox OS with modified libhardware to get proper behavior back. _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
