{"id":21541819,"url":"https://github.com/alexmohr/keyboard-backlight","last_synced_at":"2025-04-10T04:24:07.515Z","repository":{"id":44736035,"uuid":"257693906","full_name":"alexmohr/keyboard-backlight","owner":"alexmohr","description":"Controls the keyboard backlight of notebooks to conserve power by turning keyboard backlight off when not in use","archived":false,"fork":false,"pushed_at":"2023-10-20T20:03:30.000Z","size":35,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T17:21:20.531Z","etag":null,"topics":["backlight","cpp17","keyboard","linux","thinkpad"],"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/alexmohr.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}},"created_at":"2020-04-21T19:20:48.000Z","updated_at":"2024-01-19T16:16:57.000Z","dependencies_parsed_at":"2022-09-11T04:52:33.714Z","dependency_job_id":null,"html_url":"https://github.com/alexmohr/keyboard-backlight","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmohr%2Fkeyboard-backlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmohr%2Fkeyboard-backlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmohr%2Fkeyboard-backlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmohr%2Fkeyboard-backlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexmohr","download_url":"https://codeload.github.com/alexmohr/keyboard-backlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248155817,"owners_count":21056711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["backlight","cpp17","keyboard","linux","thinkpad"],"created_at":"2024-11-24T05:07:45.121Z","updated_at":"2025-04-10T04:24:07.491Z","avatar_url":"https://github.com/alexmohr.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keyboard backlight service\n[![Build Status](https://travis-ci.com/alexmohr/keyboard-backlight.svg?branch=master)](https://travis-ci.com/alexmohr/keyboard-backlight)\n\nThis repo provides an application and a systemd service which controls the \nbacklight of a keyboard. It's only tested for thinkpads but may work on \nother devices as well\n\n## Installation\n\n### Arch Linux\nThe package is in the AUR and called  ``tp-kb-backlight-git``\n\n### Build from source\nRequirements to build the software from source are:\n* Compiler with C++17 suppport\n* CMake\n\nTo build the binary run:\n````\nmkdir build\ncd build\ncmake ../\nmake\n```` \n\nUse ``make install`` to install the application and ``make service`` \nto install the service and enable the systemd service. \n\nMake sure to run ``make install`` BEFORE ``make service`` \n\n### Binary (not recommended)\nDownload the latest package from github. Extract it an run the following commands.\n\n````\nsudo cp keyboard_backlight /usr/bin\nsudo cp keyboard_backlight.service /etc/systemd/sytem\nsudo systemctl enable --now keyboard_backlight.service\n```` \n\n\n# Uninstall\nFor automated removal run the command below in the cmake folder\n````\nmake uninstall\n````\n\nTo manually delete the files \n````\nsudo systemctl disable --now keyboard_backlight.service\nsudo rm /etc/systemd/system/keyboard_backlight.service\nsudo rm /usr/bin/keyboard_backlight\n````\n\n\n\n\n## Configuration\n````\nkeyboard_backlight 1.4.0 \n    -h show this help\n    -i ignore an input device\n       This device does not re enable keyboard backlight.\n       Separate multiple device by space.\n       Default: use all mice and keyboard.\n    -t configure timeout in seconds after which the backlight will be turned off\n       Defaults to 30s \n    -m configure mouse mode (0..2)\n       0 use all mice (default)\n       1 use all internal mice only\n       2 ignore mice\n    -b set keyboard backlight device path\n       defaults to /sys/class/leds/tpacpi::kbd_backlight/brightness\n    -f stay in foreground and do not start daemon\n    -s Set a brightness value and exit\n    -k (key code) Ignore key code\n       You can get the values using -d option.\n       Separate multiple values by comma, e.g. '10,20,30'.\n    -d Show pressed key codes\n````\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmohr%2Fkeyboard-backlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexmohr%2Fkeyboard-backlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmohr%2Fkeyboard-backlight/lists"}