On Friday, October 10, 2014 12:24:04 PM UTC+2, Alexandre Lissy wrote:
> Le 10/10/2014 12:22, Jan Jongboom a �crit :
> 
> > So if I want the value of proximity sensor on Flame I can do:
> 
> > 
> 
> > $ cd /sys/devices/virtual/input/input3
> 
> > $ echo 1 > enable && cat prx_raw && echo 0 > enable
> 
> > 
> 
> > But if I search for 'prx_raw' in the code base I cannot find a reference to 
> > it anywhere. Where does the device specific code for dealing with sensors 
> > live?
> 
> > _______________________________________________
> 
> > dev-b2g mailing list
> 
> > [email protected]
> 
> > https://lists.mozilla.org/listinfo/dev-b2g
> 
> > 
> 
> 
> 
> We are probably using Android's sensor API. You should have a look in
> 
> http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp

Nah, it lives in a separate repo actually, that is initialized by 
/b2g/config.sh. I had my repo configured for Peak.

F.e. proximity code for Peak lives at 
b2g/hardware/libhardware/modules/sensors/ProximitySensor.cpp
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to