All Projects → saibotd → Tp Auto Kbbl

saibotd / Tp Auto Kbbl

Licence: mit
Auto toggle keyboard back-lighting on Thinkpads (and maybe other laptops) for Linux

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to Tp Auto Kbbl

Fund
Fund是一个方便在终端环境下追踪基金趋势的小工具
Stars: ✭ 15 (-66.67%)
Mutual labels:  tool
Plantuml Styler
Online tool to make your PlantUML diagrams look great.
Stars: ✭ 35 (-22.22%)
Mutual labels:  tool
Zwerg
Distance Field Editor (experimental)
Stars: ✭ 41 (-8.89%)
Mutual labels:  tool
Durt
Command line tool for calculating the size of files and directories
Stars: ✭ 27 (-40%)
Mutual labels:  tool
Wait4x
Wait4X is a cli tool to wait for everything! It can be wait for a port to open or enter to rquested state.
Stars: ✭ 30 (-33.33%)
Mutual labels:  tool
Kafka Specs
Tool to ease and automate Apache Kafka cluster configuration management
Stars: ✭ 36 (-20%)
Mutual labels:  tool
Create Component App
Tool to generate different types of React components from the terminal. 💻
Stars: ✭ 879 (+1853.33%)
Mutual labels:  tool
Loot
A load order optimisation tool for the Elder Scrolls (Morrowind and later) and Fallout (3 and later) games.
Stars: ✭ 1,016 (+2157.78%)
Mutual labels:  tool
Pixelannotationtool
Annotate quickly images.
Stars: ✭ 962 (+2037.78%)
Mutual labels:  tool
Depressurizer
A Steam library categorizing tool.
Stars: ✭ 1,008 (+2140%)
Mutual labels:  tool
Catchart
Pipe something from command line to a chart in the browser
Stars: ✭ 27 (-40%)
Mutual labels:  tool
Usefonts
A tool to help designers and developers select their perfect fonts. It uses Google Fonts API to fetch the fonts.
Stars: ✭ 29 (-35.56%)
Mutual labels:  tool
Lldebugtoolswift
LLDebugTool is a debugging tool for developers and testers that can help you analyze and manipulate data in non-xcode situations.
Stars: ✭ 40 (-11.11%)
Mutual labels:  tool
Skyrat
SkyRAT - Powershell Remote Administration Tool
Stars: ✭ 21 (-53.33%)
Mutual labels:  tool
Github Review Filter
Chrome extension to filter files in GitHub code review using glob
Stars: ✭ 42 (-6.67%)
Mutual labels:  tool
Alfred Iconfinder Search
Alfred 3 workflow for Iconfinder instant search
Stars: ✭ 14 (-68.89%)
Mutual labels:  tool
Multitube
Watch multiple YouTube videos by providing video links or playlist links or channel links or maybe a mix of them! All without opening a single extra tab.
Stars: ✭ 36 (-20%)
Mutual labels:  tool
Smersh
Smersh is a pentest oriented collaborative tool used to track the progress of your company's missions.
Stars: ✭ 43 (-4.44%)
Mutual labels:  tool
Goloc
A flexible tool for application localization using Google Sheets.
Stars: ✭ 42 (-6.67%)
Mutual labels:  tool
Dnsbrute
DNS Sub-domain brute forcer, in Python + gevent
Stars: ✭ 40 (-11.11%)
Mutual labels:  tool

⌨️💡 tp-auto-kbbl

ThinkPad Auto Keyboard Backlight

tp-auto-kbbl enables keyboard backlighting whenever you start typing. After typing ends (+ timeout), the backlight turns off automatically. It runs in the background on your Linux laptop and checks for keyboard events (default /dev/input/event3).

It should work on any ThinkPad (tested on a 470s) and probably other laptops as well. Let me know if it runs on your device.

To keep CPU/RAM usage low and portability high, I've used Rust for development. This is my first project with it, so if spot anything weird – or plain wrong – let me know! I'm thankful for any advice.

Warning

tp-auto-kbbl works similar to a keylogger (requires root to capture keyboard events system-wide). Always be sure to check the source code.

Usage

Usage: tp-auto-kbbl [options]

Options:
    -h, --help          prints this help message
    -v, --version       prints the version
    -n, --no-dim        don't dim before bg turns off
    -l, --lazy          don't check actual hw brightness state
    -d, --device        specify the device file
    -b, --brightness    target keyboard brightness (1-2)
    -t, --timeout       time before the bg light turns off

Installation

Download the latest release, or clone and build it yourself.

Copy the binary

sudo cp tp-auto-kbbl /usr/bin/

Try it out

tp-auto-kbbl

# You'll probably get an error like this
thread 'main' panicked at 'Permission denied (os error 13)', src/main.rs:44:74

# Once more as root
sudo tp-auto-kbbl

Input device ID: bus 0x11 vendor 0x1 product 0x1
Evdev version: 10001
Input device name: "AT Translated Set 2 keyboard"
Phys location: isa0060/serio0/input0
Setting brightness to 0

Your backlight should turn off immediately. Try if it turns on when you press any button. If not, check if the input device is correct, you may adjust it via the -d parameter.

Systemd service

# Copy the [unit file](https://raw.githubusercontent.com/saibotd/tp-auto-kbbl/master/tp-auto-kbbl.service)
sudo cp tp-auto-kbbl.service /etc/systemd/system/

# (optional) Check if the parameters are correct
sudo nano /etc/systemd/system/tp-auto-kbbl.service

# Reload daemons
sudo systemctl daemon-reload

# Start the service
sudo systemctl start tp-auto-kbbl

# Check if the service runs fine
sudo systemctl status tp-auto-kbbl

Mär 04 14:02:06 Huffer systemd[1]: Started Auto toggle keyboard back-lighting.
Mär 04 14:02:06 Huffer tp-auto-kbbl[343]: Input device ID: bus 0x11 vendor 0x1 p
Mär 04 14:02:06 Huffer tp-auto-kbbl[343]: Evdev version: 10001
Mär 04 14:02:06 Huffer tp-auto-kbbl[343]: Input device name: "AT Translated Set
Mär 04 14:02:06 Huffer tp-auto-kbbl[343]: Phys location: isa0060/serio0/input0
Mär 04 14:02:07 Huffer tp-auto-kbbl[343]: Setting brightness to 0
Mär 04 14:02:09 Huffer tp-auto-kbbl[343]: Setting brightness to 2
Mär 04 14:02:25 Huffer tp-auto-kbbl[343]: Setting brightness to 0

# Finally enable the service
sudo systemctl enable tp-auto-kbbl

Copyright © 2020 Tobias Duehr

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].