Thank you very much for your input!

> >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.

Thanks, I never saw that. This might be because I always studied 
qtmobility-1.0 instead qtmobility-1.2 :(
Nevertheless, this sadly seems not to work on Harmattan (Python code):
$ print accel.property("alwaysOn")
None
$ accel.setProperty("alwaysOn", True)
$ print accel.property("alwaysOn")
True
$ accel.setProperty("alwaysOn", False)
$ print accel.property("alwaysOn")
False

It looks to me as if this property is not existing, but can be created, but 
still will be ignored. 
Also I couldn't find a list with al available properties.

> >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.

Thank you very much. This is what I was looking for.
I will pool it manually at a high rate, so I hope it will not interfere with 
other apps. Also I am mostly interested in the changes, not in the absolute 
values.

Just a note: On my N950, the path is as following: 
/sys/devices/platform/lis3lv02d/position

Thank you very much for your hints!

George

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to