1. 28 May, 2018 1 commit
    • spiiroin's avatar
      [mce-sensorfw] Refactor mce - sensorfwd IPC. JB#41369 · 17104348
      spiiroin authored
      So far MCE has utilized only three sensors - all of which report a single
      unsigned integer value. This has allowed code to organically grow in to a
      form that requires numerous glue functions for each sensor type and is
      ill-prepared for handling sensors that report vector form data.
      
      Reduce the amount of glue functions that needs to be implemented for each
      supported sensor type and stop assuming sensor data will be a single integer
      value.
      
      Handle situations where the standby-override attribute is not supported for
      an otherwise functioning sensor.
      
      Do not attempt to start mce-starting-up exceptional situation before the
      objects required by such operation have been created.
      
      Also fix spelling of some constants from SWF_xxx to SFW_xxx.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      17104348
  2. 25 May, 2018 1 commit
    • spiiroin's avatar
      [mce-sensorfw] Do not retry loading of unavailable sensors. JB#41369 · c1fb3a29
      spiiroin authored
      Now that it is possible for sensorfwd to refuse loading a sensor plugin
      (due to the device not having such sensor), this can trigger MCE into
      perpetual retry-in-N-seconds D-Bus IPC loop.
      
      Differentiate between "sensor was not loaded" replies and "there were
      issues while requesting sensor load" error replies - so that former
      is taken to mean that the sensor is not available, and the latter as
      something that might be helped with retrying a bit later.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      c1fb3a29
  3. 15 Feb, 2017 1 commit
  4. 07 Jul, 2015 1 commit
    • spiiroin's avatar
      Handle invalid session id from sensorfwd correctly · 88d3b4b4
      spiiroin authored
      MCE is assuming sensorfwd uses 0 for invalid session id while it
      is actually -1. This causes unwanted retries for sensor activation
      on devices where some sensors mce wants to use are not available.
      
      Use -1 for invalid session id.
      
      Differentiate between failure to obtain session id from sensorfwd
      (=retry) and getting invalid session id (=give up on failing sensor).
      
      [mce] Handle invalid session id from sensorfwd correctly. Fixes JB#30488
      88d3b4b4
  5. 16 Jun, 2015 1 commit
    • spiiroin's avatar
      Improve handling of sensorfw related ipc failures · 7a20456c
      spiiroin authored
      If sensord gets blocked for some reason and is not able to send replies
      to D-Bus method calls mce is making in time, mce sees the request timeout
      and sensor state machines get stuck to error states until whole sensord
      service is restarted.
      
      Reattempt the failed ipc after brief delay until it succeeds. This should
      allow mce sensor tracking to recover from temporary scheduling problems
      that cause D-Bus method call timeouts.
      
      [mce] Improve handling of sensorfw related ipc failures. Fixes JB#29283
      7a20456c
  6. 25 Aug, 2014 1 commit