Additional sensors (magnetic field, gyroscope)
-
Hi,
The Ubuntu Touch OTA-19 Release states that Halium 5.1/7.1 devices have access to magnetic field and gyroscope sensors.
I remembered @Flohack demoing rough compass support (with erratic values) on a device (don't know which one) in a Q&A session some months ago.
On [PRO5] "SensorStatus" does not display any value but "test_sensors" seems to show lots of sensors [1].
I'd like to dig this out... I searched for "sensor" throughout the forum, read couple of posts, but no clue how to move forward... Does some of you have hints or docs to read ?
BR,
Nauvpp[1]
Hardware module ID: sensors
Hardware module Name: CyWee SENSORS Module
Hardware module Author: CyWee Group Ltd.
Hardware module API version: 0x1
Hardware HAL API version: 0x0
Poll device version: 0x1030001
API VERSION 0.1 (legacy): 0x1
API VERSION 0.1: 0x65537
API VERSION 1.0: 0x16777217
API VERSION 1.1: 0x16842753
API VERSION 1.2: 0x16908289
API VERSION 1.3: 0x16973825
API VERSION 1.4: 0x17039361
Got 36 sensors=== Sensor 0 ==
Name: Accelerometer Sensor
Vendor: CyWee Group Ltd.
Version: 0x1
Handle: 0x0
Type: 1
maxRange: 78.453201
resolution: 0.9999
power: 0.170000 mA
minDelay: 10000=== Sensor 1 ==
Name: Magnetic field Sensor
Vendor: CyWee Group Ltd.
Version: 0x1
Handle: 0x1
Type: 2
maxRange: 200.0
resolution: 0.9999
power: 5.0 mA
minDelay: 10000=== Sensor 2 ==
Name: Gyroscope Sensor
Vendor: CyWee Group Ltd.
Version: 0x1
Handle: 0x2
Type: 4
maxRange: 40.0
resolution: 0.9999
power: 6.99999 mA
minDelay: 10000=== Sensor 32 ==
Name: Geomagnetic Rotation Vector (WAKE_UP)
Vendor: CyWee Group Ltd.
Version: 0x1
Handle: 0x23
Type: 20
maxRange: 1.0
resolution: 0.99
power: 11.270000 mA
minDelay: 10000 -
Unfortunately the Meizu Pro 5 is not a Halium device, but a legacy port which we cannot rebuild (closed sources), so we cannot inject the missing sensor glue code. Its the same on the BQs...
-
Hi @nauvpp
As it turns out it's device specific, I moved the thread to the corresponding subforum. -
@flohack
Problem with accessing sources is on Canonical side or Meizu/BQ one ? -
@flohack ok thank you for the clarification
- Legacy means closed source, so very few chance to have additional sensors supported. Moreover, these devices are becoming βoldβ (as I do
) - Halium means additional sensors may be supported, depending on Halium availability
How to consider a GSI device? Is it halium too?
- Legacy means closed source, so very few chance to have additional sensors supported. Moreover, these devices are becoming βoldβ (as I do
-
@applee thanks! Status changed to βtopicβ
-
@nauvpp said in Additional sensors (magnetic field, gyroscope):
Moreover, these devices are becoming βoldβ (as I do )
But old is not dead.
I can assure you that my MX4 is still kicking a**es
-
@keneda said in Additional sensors (magnetic field, gyroscope):
@nauvpp said in Additional sensors (magnetic field, gyroscope):
Moreover, these devices are becoming βoldβ (as I do )
But old is not dead.
Exactly. It's good for the planet to keep using existing devices, instead of getting new ones every two years and creating tons of e-waste!


-
@keneda Sure it does !
I also own a MX4 (Ubuntu edition). I can't make the GPS to work since a while. It can't fix my position even after let it try for 1 hour... -
@moem I totally agree and that's a benefit among many other with UBp. I learned with this post that βlegacyβ devices will likely not have such sensors working. IMHO, that's a drawback to me cause compass is so convenient combined to GPS when navigating by foot
-
@nauvpp said in Additional sensors (magnetic field, gyroscope):
compass is so convenient combined to GPS when navigating by foot
Get yourself a Pebble smartwatch (yes, that is legacy too)... you can connect it with your UT phone and it's a compass too!

οΈ -
@flohack one more question I you don't mind: I also own a N5 hammerhead, is it legacy or halium 5.1?
Thank you -
@nauvpp
IIRC the official port is a legacy one.
There is also a work in progress about an halium 7.1 port. -
@applee thanks
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login