{"id":29638111,"url":"https://github.com/bcanozter/capslock_notifier","last_synced_at":"2026-04-15T16:31:42.317Z","repository":{"id":305220595,"uuid":"1019666902","full_name":"bcanozter/capslock_notifier","owner":"bcanozter","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-18T19:55:18.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-10T14:36:36.734Z","etag":null,"topics":["linux-kernel","linux-kernel-module","linux-kernel-modules","procfs"],"latest_commit_sha":null,"homepage":"","language":"C","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/bcanozter.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}},"created_at":"2025-07-14T17:21:01.000Z","updated_at":"2025-07-18T20:17:11.000Z","dependencies_parsed_at":"2025-07-19T00:28:12.194Z","dependency_job_id":"2ee89ff3-908c-4c1d-afb5-7cc37085bda6","html_url":"https://github.com/bcanozter/capslock_notifier","commit_stats":null,"previous_names":["bcanozter/capslock_notifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bcanozter/capslock_notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcanozter%2Fcapslock_notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcanozter%2Fcapslock_notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcanozter%2Fcapslock_notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcanozter%2Fcapslock_notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcanozter","download_url":"https://codeload.github.com/bcanozter/capslock_notifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcanozter%2Fcapslock_notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31849705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["linux-kernel","linux-kernel-module","linux-kernel-modules","procfs"],"created_at":"2025-07-21T19:05:03.847Z","updated_at":"2026-04-15T16:31:42.301Z","avatar_url":"https://github.com/bcanozter.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caps Lock Notifier Kernel Module\n\nThis Linux kernel module is written for learning purposes. It registers an input handler to capture keyboard events and monitors the Caps Lock LED state. The current state is exposed via the proc file system for user-space access.\n\n## Features\n\n- Registers an input handler to listen for keyboard events\n- Detects and reports the Caps Lock LED state (ON/OFF)\n- Exposes the state via `/proc/capslock_state`\n\n## Environment Details\n\n- Linux kernel headers: `linux-headers-6.8.0-64-generic`\n- GCC: `12.3.0-1ubuntu1~22.04`\n\n## Build\n\n```\nmake\n```\n\n## Load the Module\n\n```\nsudo insmod capslock_notifier.ko\n```\n\n## Usage\n\nRead the current Caps Lock LED state:\n\n```\ncat /proc/capslock_state\n```\n\n- Output is `1` if Caps Lock is ON, `0` if OFF.\n\n## Example Output\n\n```bash\n[12747.354555] Init capslock_notifier module\n[12747.354563] Connected input device: AT Translated Set 2 keyboard\n[12747.354564] (AT Translated Set 2 keyboard): Initial Caps Lock state: OFF \n[12747.354569] Connected input device: Corsair Corsair Gaming K95 RGB PLATINUM Keyboard\n[12747.354571] (Corsair Corsair Gaming K95 RGB PLATINUM Keyboard): Initial Caps Lock state: OFF\n[12748.564202] (Corsair Corsair Gaming K95 RGB PLATINUM Keyboard): Caps Lock LED state: ON\n[12749.356137] (Corsair Corsair Gaming K95 RGB PLATINUM Keyboard): Caps Lock LED state: OFF\n```\n\n## Unload the Module\n\n```\nsudo rmmod capslock_notifier\n```\n\n---\n\n**Author:** Burak Ozter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcanozter%2Fcapslock_notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcanozter%2Fcapslock_notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcanozter%2Fcapslock_notifier/lists"}