1
0
Fork
You've already forked libssc
0
Library for exposing Qualcomm Sensor Core sensors to Linux.
  • C 73.7%
  • Python 20.8%
  • Meson 5.5%
2026年05月31日 09:55:07 +02:00
data mocking: ssc_server: fix protobuf path for Python 2026年05月31日 09:55:07 +02:00
docs docs: document mount matrix configuration 2026年02月01日 17:02:25 +01:00
mocking mocking: ssc_server: fix protobuf path for Python 2026年05月31日 09:55:07 +02:00
src treewide: correct GPLv3 header 2026年05月25日 14:59:15 +02:00
tests mocking: move ssc-server to separate directory 2026年05月30日 19:47:05 +02:00
utils treewide: correct GPLv3 header 2026年05月25日 14:59:15 +02:00
.gitmodules mocking: add SSC Server for emulating DSP 2024年09月27日 18:43:27 +02:00
CHANGELOG.md CHANGELOG: release v0.4.3 2026年05月30日 19:53:58 +02:00
libssc.map meson.build: add libssc.map symbols 2026年01月08日 20:36:06 +01:00
LICENSE LICENSE: fix GPLv3 document 2024年05月25日 08:01:17 +02:00
meson.build mocking: ssc_server: fix protobuf path for Python 2026年05月31日 09:55:07 +02:00
README.md treewide: bump copyright year 2026年02月10日 20:23:12 +01:00
RELEASE.md mocking: ssc-server: inject version 2026年05月25日 20:23:45 +02:00

libssc

libssc is a library to expose the sensors managed by the Qualcomm Sensor Core found in many Qualcomm System-on-Chips (SoCs) from 2018 and onwards.

Qualcomm SoCs feature a Sensor Lower Power Island (SLPI) to offload sensors to a dedicated Digital Signal Processor (DSP) for optimizing power consumption and reducing the tasks of the main CPU. This way, the main CPU may enter full suspend while the DSP can detect proximity from the proximity sensor and wake up the main CPU. Direct access to the sensors is prohibited by the hypervisor, thus the only way to access sensors on these SoCs is by talking to the DSP managing these sensors. Libssc performs this task and exposes the sensors as a GLib-based library which allows seamless integration with the existing Linux ecosystem.

Qualcomm, Sensor Low Power Island (SLPI), and Qualcomm Sensor Core are registed trademarks of QUALCOMM Incorporated. Any rights therein are reserved to QUALCOMM Incorporated. Any use by the libssc project is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between QUALCOMM Incorporated and the libssc project.

Documentation

General information about libssc, documentation, and other information can be found at https://libssc.dylanvanassche.be.

Building

libssc uses the Meson build system with a minimal list of external dependencies:

  • libqmi >=1.33.4
  • glib >= 2.56
  • protobuf-c

libssc tests requires an additional dependency to compile the ProtoBuf messages for simulating the DSP QMI responses:

  • protobuf
  • python-gobject3
  • qrtr-libs
meson setup _build
meson compile -C _build

Tests can be executed with:

meson test -C _build

Linking against libssc

Use pkg-config in your favorite build system to link against libssc. The library is called libssc, in Meson it looks like this:

libssc_dep = dependency('libssc')

Lockdown

Systemd features a lockdown feature to reduce access to resources for services. If libssc is used in a service such as iio-sensor-proxy, make sure access to the address family AF_QIPCRTR otherwise access to the QRTR bus is prohibited.

Tests

Libssc has tests with and without the SSC mocking server to verify also the behavior of libssc when the QMI service is not present.

License

Available under the GPLv3 license.
Copyright (c) by libssc Authors (2022-2026)