>For my Harmattan project I am looking for a way to access the acceleration
>sensor natively.
>There is a way through the QSensor API as described here:
>http://developer.qt.nokia.com/wiki/Using_QtMobility_sensors_and_QML_fr
>om_PySide
>How ever it stops working when the display is off.

You can force the sensor to remain active when the screen blanks by setting the 
property "alwaysOn" to true. 
(http://doc.qt.nokia.com/qtmobility-1.2/sensors-api.html#meego). Not familiar 
with PySide, but I'm sure there's a way to set it. This is the preferred way.

>For my application it is essential to have access to the acceleration sensor
>all the time.
>In Memo5 it was posible with reading out
>/sys/class/i2c-adapter/i2c-3/3-001d/coord
>Is there a similar way for Harmattan?
>(I looked quickly in /sys/class/i2c-adapter but could find the sensor there)

You can listen to /dev/input/accelerometer, but note that sensord will adjust 
the driver properties based on client requests through its API. So the rate 
that you are getting samples with may vary depending on other applications.

There is also a debug handle /sys/devices/platform/lis3lv02d/coord which you 
can use to get the current reading, but using the mobility API is preferable.

// Timo
_______________________________________________
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to