I can confirm AmbientLightSensor.onReadingChanged is not called when the light sensor reading is changed. Affects both my test devices: Aquaris E5 HD and Aquaris M10 FHD, both running OTA-12. Affected app is AIDA64 (Sensors page in there) for example.
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to qtubuntu-sensors in Ubuntu. https://bugs.launchpad.net/bugs/1349231 Title: Sensor APIs do not work Status in qtcreator-plugin-ubuntu package in Ubuntu: Invalid Status in qtubuntu-sensors package in Ubuntu: Confirmed Bug description: OrientationSensor { onReadingChanged: { if ( reading.orientation === OrientationReading.TopUp) { console.log("TopUp") } else if ( reading.orientation === OrientationReading.TopDown) { console.log("TopDown") } else if ( reading.orientation === OrientationReading.LeftUp) { console.log("LeftUp") } else if ( reading.orientation === OrientationReading.RightUp) { console.log("RightUp") } else if ( reading.orientation === OrientationReading.FaceDown) { console.log("FaceDown") } else if ( reading.orientation === OrientationReading.FaceUp) { console.log("FaceUp") } } } The "FaceDown" and "FaceUp" events are never fired. Also AmbientLightSensor { active: true onReadingChanged: { if (reading.lightLevel === AmbientLightReading.Dark) { console.log("It is dark") } else if ( reading.lightLevel === AmbientLightReading.Twilight) { console.log("It is moderately dark") } else if ( reading.lightLevel === AmbientLightReading.Light) { console.log("It is light (eg. internal lights)") } else if ( reading.lightLevel === AmbientLightReading.Bright) { console.log("It is bright (eg. shade)") } else if ( reading.lightLevel === AmbientLightReading.Sunny) { console.log("It is very bright (eg. direct sunlight)") }else if ( reading.lightLevel === AmbientLightReading.Undefined) { console.log("It is unknown") } } } Only "AmbientLightReading.Light" is fired no matter how the ambient light environment is changed. Thanks & best regards, XiaoGuo To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1349231/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp