{"id":50398924,"url":"https://github.com/codestation/ksystemstats-intel-npu","last_synced_at":"2026-05-30T22:02:24.636Z","repository":{"id":360520586,"uuid":"1250466636","full_name":"codestation/ksystemstats-intel-npu","owner":"codestation","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-26T18:19:51.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-26T20:13:43.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codestation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-26T16:55:03.000Z","updated_at":"2026-05-26T18:19:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/codestation/ksystemstats-intel-npu","commit_stats":null,"previous_names":["codestation/ksystemstats-intel-npu"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/codestation/ksystemstats-intel-npu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codestation%2Fksystemstats-intel-npu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codestation%2Fksystemstats-intel-npu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codestation%2Fksystemstats-intel-npu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codestation%2Fksystemstats-intel-npu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codestation","download_url":"https://codeload.github.com/codestation/ksystemstats-intel-npu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codestation%2Fksystemstats-intel-npu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33711018,"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-05-30T02:00:06.278Z","response_time":92,"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":[],"created_at":"2026-05-30T22:02:23.964Z","updated_at":"2026-05-30T22:02:24.630Z","avatar_url":"https://github.com/codestation.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KSystemStats Intel NPU Plugin\n\nExternal KSystemStats plugin that exposes an Intel NPU usage sensor in Plasma\nSystem Monitor.\n\nSensor path:\n\n```text\nnpu/intel/usage\n```\n\nVisible name:\n\n```text\n\u003cdetected Intel NPU\u003e Usage\n```\n\n## Detection\n\nThe plugin looks for an Intel NPU at:\n\n```text\n/sys/class/accel/accel0/device\n```\n\nIt reads:\n\n```text\n/sys/class/accel/accel0/device/uevent\n```\n\nThe device is considered valid when `uevent` contains `intel_vpu`.\n\nKnown models:\n\n```text\n8086:7D1D -\u003e Intel NPU (Meteor Lake)\n8086:643E -\u003e Intel NPU (Lunar Lake)\n8086:B03E -\u003e Intel NPU (Panther Lake)\n```\n\nThe preferred usage counter is:\n\n```text\n/sys/class/accel/accel0/device/npu_busy_time_us\n```\n\nIf that counter does not exist, the plugin falls back to this runtime PM\ncounter:\n\n```text\n/sys/devices/pci0000:00/\u003cPCI_SLOT_NAME\u003e/power/runtime_active_time\n```\n\n`npu_busy_time_us` represents real NPU busy time in microseconds.\n`runtime_active_time` represents runtime PM active time and can include activity\nthat is not effective NPU work, so it is only used as a fallback approximation.\n\n## Dependencies On Arch Linux\n\nInstall the build dependencies:\n\n```bash\nsudo pacman -S --needed base-devel cmake extra-cmake-modules qt6-base qt6-tools kcoreaddons ki18n libksysguard ksystemstats\n```\n\n## Build\n\nFrom the project directory:\n\n```bash\ncmake -S . -B build -DBUILD_TESTING=ON\ncmake --build build\nctest --test-dir build --output-on-failure\n```\n\n## Per-User Installation\n\nInstall under `~/.local`:\n\n```bash\ncmake --install build --prefix \"$HOME/.local\"\n```\n\nThe plugin will be installed at:\n\n```text\n~/.local/lib/qt6/plugins/ksystemstats/ksystemstats_plugin_intelnpu.so\n```\n\nRestart KSystemStats:\n\n```bash\nsystemctl --user restart plasma-ksystemstats.service\n```\n\nIf Plasma does not load plugins from `~/.local/lib/qt6/plugins`, log out and\nlog back in. To test it in the current session, export the path to the user\nsystemd environment and restart the service:\n\n```bash\nsystemctl --user set-environment QT_PLUGIN_PATH=\"$HOME/.local/lib/qt6/plugins:$QT_PLUGIN_PATH\"\nsystemctl --user restart plasma-ksystemstats.service\n```\n\nTo make it persistent, create:\n\n```text\n~/.config/environment.d/10-qt-plugin-path.conf\n```\n\nwith this content, replacing `/home/your_user` with your real home directory:\n\n```text\nQT_PLUGIN_PATH=/home/your_user/.local/lib/qt6/plugins\n```\n\nThen log out and log back in.\n\n## System-Wide Installation\n\nInstall under `/usr`:\n\n```bash\nsudo cmake --install build --prefix /usr\n```\n\nThe plugin will be installed at:\n\n```text\n/usr/lib/qt6/plugins/ksystemstats/ksystemstats_plugin_intelnpu.so\n```\n\nRestart KSystemStats:\n\n```bash\nsystemctl --user restart plasma-ksystemstats.service\n```\n\n## Verification\n\nCheck that the plugin is installed in the expected location:\n\n```bash\nfind \"$HOME/.local/lib/qt6/plugins/ksystemstats\" /usr/lib/qt6/plugins/ksystemstats -name 'ksystemstats_plugin_intelnpu.so' 2\u003e/dev/null\n```\n\nCheck whether your kernel exposes the NPU:\n\n```bash\ncat /sys/class/accel/accel0/device/uevent\n```\n\nIt should contain something related to:\n\n```text\nintel_vpu\n```\n\nIf the preferred counter exists, this should print a number:\n\n```bash\ncat /sys/class/accel/accel0/device/npu_busy_time_us\n```\n\nThe sensor should appear in Plasma System Monitor after restarting\n`plasma-ksystemstats.service`.\n\n## Uninstall\n\nPer-user installation:\n\n```bash\nrm -f \"$HOME/.local/lib/qt6/plugins/ksystemstats/ksystemstats_plugin_intelnpu.so\"\nsystemctl --user restart plasma-ksystemstats.service\n```\n\nSystem-wide installation:\n\n```bash\nsudo rm -f /usr/lib/qt6/plugins/ksystemstats/ksystemstats_plugin_intelnpu.so\nsystemctl --user restart plasma-ksystemstats.service\n```\n\n## Expected Behavior\n\nOn systems without an Intel NPU, without read permissions, or with incomplete\nsysfs data, the plugin fails silently and does not register sensors.\n\nUsage is calculated from two samples:\n\n```text\nusage_percent = delta_busy_time / delta_wall_time * 100\n```\n\nThe result is clamped to the `0..100` range.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodestation%2Fksystemstats-intel-npu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodestation%2Fksystemstats-intel-npu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodestation%2Fksystemstats-intel-npu/lists"}