QML Accelerometer is always (useless) dummy.accelerometer

Bug #1131765 reported by Jonathan Booth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtsensors-opensource-src (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Tested on gnex, nex4 phones. Using QML to create the Accelerometer, the identified device is "dummy.accelerometer" and it returns no useful data (static x:0, y:g (aka 9.81m/s), z:0).

Snippet:

            Row {
                Label {
                    text: "Accel: "
                    fontSize: "large"
                }
                Label {
                    id: sensor
                    text: "..."
                    fontSize: "large"
                }
            }
            Accelerometer {
                id: accel
                onReadingChanged: { sensor.text = accel.identifier; stop() }
                active: true
            }

Changed in ubuntu-ui-toolkit:
assignee: nobody → Zoltan Balogh (bzoltan)
Zoltan Balogh (bzoltan)
affects: ubuntu-ui-toolkit → qtsensors-opensource-src (Ubuntu)
Zoltan Balogh (bzoltan)
Changed in qtsensors-opensource-src (Ubuntu):
assignee: Zoltan Balogh (bzoltan) → nobody
Revision history for this message
Lorn Potter (lorn-potter) wrote :

The dummy sensor plugin is useless by design, and emulates what an accelerometer would be like in a desktop computer.

Noted from source code:
   // Your average desktop computer doesn't move :)

It could probably be changed to provide some easy sine wave data, but I am not sure it's worth it.

Also note from the initial commit message (in qtmobility):

    Generic is for things like "orientation based on accelerometer".
    Dummy is for things like "give me an accelerometer on my desktop for testing".

Revision history for this message
Lorn Potter (lorn-potter) wrote :

This actually might be a packaging issue, if the device does not get a real /etc/xdg/QtProject/Sensors.conf that tells QtSensors to use the dummy sensor backend.

Bug is 3 years old, so I assume it has been fixed.

Changed in qtsensors-opensource-src (Ubuntu):
status: New → Invalid
status: Invalid → New
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.