Skip to content

Compass on linux mobile #103

Open
Open

Description

@donihalim

Hi, my linux mobile has working compass and the heading direction can be read by geoclue, is there any way to make the compass available on osmin?

Activity

  1. janbar commented on May 25, 2025

    @janbar
    Owner

    The app uses the Qt framework and its positioning and sensor modules. Therefore it should work if you have installed the requirements it needs.

    The app gathers magnetic and accel data to compute the current orientation. I guess geoclue doesn't provide these data.

  2. magdesign commented on Jul 27, 2026

    @magdesign

    in osmin v.1.15.1 the compass still does not work under linuxmobile.
    when running monitor-sensor i get realtime compass data. question is:
    how can we pipe this info to osmin?

    its available via dbus

    ~
    ~ $ gdbus introspect \
    >   --system \
    >   --dest net.hadess.SensorProxy \
    >   --object-path /net/hadess/SensorProxy
    node /net/hadess/SensorProxy {
      interface org.freedesktop.DBus.Properties {
        methods:
          Get(in  s interface_name,
              in  s property_name,
              out v value);
          GetAll(in  s interface_name,
                 out a{sv} properties);
          Set(in  s interface_name,
              in  s property_name,
              in  v value);
        signals:
          PropertiesChanged(s interface_name,
                            a{sv} changed_properties,
                            as invalidated_properties);
        properties:
      };
      interface org.freedesktop.DBus.Introspectable {
        methods:
          Introspect(out s xml_data);
    NAME                                TYPE      SIG
    net.hadess.SensorProxy.Compass      interface -  
    .ClaimCompass                       method    -  
    .ReleaseCompass                     method    -  
    .CompassHeading                     property  d  
    .HasCompass                         property  b  
    org.freedesktop.DBus.Introspectable interface -  
    .Introspect                         method    -  
    org.freedesktop.DBus.Peer           interface -  
    .GetMachineId                       method    -  
    .Ping                               method    -  
    org.freedesktop.DBus.Properties     interface -  
    .Get                                method    ss 
    .GetAll                             method    s  
    .Set                                method    ssv
    .PropertiesChanged                  signal    sa{
    
  3. magdesign commented on Jul 28, 2026

    @magdesign

    on the way to trail it down, i note my findings here:

    looking at the genericcompass.cpp file, it depends on:

    QAccelerometer
    QMagnetometer
    QCompass
    

    after testing with a little tool, i get compass data via

    QCompass
    

    so i guess there is something wrong with the logic if no magnetometer exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions