{"id":51106685,"url":"https://github.com/gio3k/ssc-uinput","last_synced_at":"2026-06-24T14:31:04.353Z","repository":{"id":357091704,"uuid":"1235160695","full_name":"gio3k/ssc-uinput","owner":"gio3k","description":"Linux accelerometer \u0026 gyroscope support using Qualcomm Sensor Core data (libssc)","archived":false,"fork":false,"pushed_at":"2026-05-11T09:27:15.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T10:38:39.567Z","etag":null,"topics":["qcom","ssc"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gio3k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-11T04:17:17.000Z","updated_at":"2026-05-11T09:27:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gio3k/ssc-uinput","commit_stats":null,"previous_names":["gio3k/ssc-uinput"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gio3k/ssc-uinput","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gio3k%2Fssc-uinput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gio3k%2Fssc-uinput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gio3k%2Fssc-uinput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gio3k%2Fssc-uinput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gio3k","download_url":"https://codeload.github.com/gio3k/ssc-uinput/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gio3k%2Fssc-uinput/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34737397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["qcom","ssc"],"created_at":"2026-06-24T14:31:03.328Z","updated_at":"2026-06-24T14:31:04.331Z","avatar_url":"https://github.com/gio3k.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssc-uinput\n\nUses evdev to create a virtual IMU from [libssc](https://codeberg.org/DylanVanAssche/libssc) data\n\nHas some quirks in order to work with InputPlumber (like pretending to be Sunshine's virtual input device)\n\n## Config\n\nEverything is controlled by environment variable currently\n\n```\nSSCU_GYROSCOPE_MOUNT_MATRIX\nSSCU_ACCELEROMETER_MOUNT_MATRIX\nSSCU_IMU_OUTPUT_SCALE\n```\n\n### SSCU_\\*_MOUNT_MATRIX \n\nString of 9 float values, comma delimited\n\nExample: `export SSCU_GYROSCOPE_MOUNT_MATRIX=\"1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0\"`\n\n### SSCU_IMU_OUTPUT_SCALE (default 1.0)\n\nInputPlumber scales all incoming IMU data by 0.01f (see [here](https://github.com/ShadowBlip/InputPlumber/blob/32b5edb0f2163897c1b849338c8bc57b1aa0d229/src/input/event/evdev/translator.rs#L504))\n\nTo get around this, use the output scale env var\n\nExample: `export SSCU_IMU_OUTPUT_SCALE=100.0`\n\n## Usage\n\nThis tool is dependent on [hexagonrpcd](https://github.com/linux-msm/hexagonrpc) and [libssc](https://codeberg.org/DylanVanAssche/libssc)\n\nTry to get iio-sensor-proxy working first - if that runs on your device, you should be able to run this\n\n```\n# run it in the background\n./ssc-uinput \u0026\n\n# check evtest, should see the device\nevtest\n```\n\n## Compiling\n\nThis is a Rust project, you should be able to `cargo build` normally\n\nKeep in mind that this tool uses bindgen to generate Rust bindings for libssc\n\nThis is pretty host specific, but this is what I use for Rocknix:\n\n```\nexport RUSTFLAGS=\"-C link-arg=-lssc\"\n\nexport BINDGEN_EXTRA_CLANG_ARGS=\"--sysroot=${SYSROOT_PREFIX} --target=${TARGET_NAME} -I${SYSROOT_PREFIX}/usr/include/libssc -I${SYSROOT_PREFIX}/usr/include/glib-2.0 -I${SYSROOT_PREFIX}/usr/lib/glib-2.0/include -I${SYSROOT_PREFIX}/usr/include/glib-2.0/glib/**\"\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgio3k%2Fssc-uinput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgio3k%2Fssc-uinput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgio3k%2Fssc-uinput/lists"}