06-23-2021, 10:54 AM
(This post was last modified: 07-17-2021, 09:21 AM by lgtrombetta.
Edit Reason: added changelog
)
Hi everyone,
My name is Leonardo and working together with my brother Marco we wrote a very rudimentary Compass app for the Pinephone with Python. To our knowledge, there is no such app available to date. Check the screenshot at the bottom.
We have tested the app in Phosh (Manjaro, Mobian and postmarketOS) and Plasma Mobile (Manjaro). For the moment it only works with "old" (a.k.a. pre-beta edition) Pinephones, which have the original magnetometer chip LIS3MDL. If it is not found, it will just display randomly generated values.
Currently the app is a proof of concept and not intended for daily-driving. That being said, you can get it and try it from
https://gitlab.com/lgtrombetta/pinephone-compass/
For best results, follow the suggestion in the Readme about changing the Sampling Frequency of the magnetometer. Take also into consideration the issue of calibration. We will try to come up with a tool to automatize these tweaks in the future.
We hope the app can be useful to some people. We intend to improve it over time, and of course, we are open to constructive criticism and contributions! Keep in mind though, that this is our first open source project, so please be kind.
Enjoy!
Changelog:
v0.3.1
* Preliminary support for the AF8133J magnetometer (Pinephone Beta edition). Needs custom kernel driver and patches.
* Advertise the app to Phosh as adaptive.
v0.3
* Complete project refactoring:
- Installation now handled by meson build system
* Complete GUI overhaul in GTK3 with:
- Magnetic field readings now shown under the compass card.
- Settings window with graphical calibration tool
- Dark/light theme switch
- About window
v0.2
* Automatic changing of the sampling frequency
* Calibration tool
* Major code refactoring
v0.1
*Initial Release
My name is Leonardo and working together with my brother Marco we wrote a very rudimentary Compass app for the Pinephone with Python. To our knowledge, there is no such app available to date. Check the screenshot at the bottom.
We have tested the app in Phosh (Manjaro, Mobian and postmarketOS) and Plasma Mobile (Manjaro). For the moment it only works with "old" (a.k.a. pre-beta edition) Pinephones, which have the original magnetometer chip LIS3MDL. If it is not found, it will just display randomly generated values.
Currently the app is a proof of concept and not intended for daily-driving. That being said, you can get it and try it from
https://gitlab.com/lgtrombetta/pinephone-compass/
For best results, follow the suggestion in the Readme about changing the Sampling Frequency of the magnetometer. Take also into consideration the issue of calibration. We will try to come up with a tool to automatize these tweaks in the future.
We hope the app can be useful to some people. We intend to improve it over time, and of course, we are open to constructive criticism and contributions! Keep in mind though, that this is our first open source project, so please be kind.
Enjoy!
Changelog:
v0.3.1
* Preliminary support for the AF8133J magnetometer (Pinephone Beta edition). Needs custom kernel driver and patches.
* Advertise the app to Phosh as adaptive.
v0.3
* Complete project refactoring:
- Installation now handled by meson build system
* Complete GUI overhaul in GTK3 with:
- Magnetic field readings now shown under the compass card.
- Settings window with graphical calibration tool
- Dark/light theme switch
- About window
v0.2
* Automatic changing of the sampling frequency
* Calibration tool
* Major code refactoring
v0.1
*Initial Release