显示HN:通过环境光传感器自动调节键盘和LCD亮度[Linux]
Show HN: Auto-Adjust Keyboard and LCD Brightness via Ambient Light Sensor[Linux]

原始链接: https://github.com/donjajo/als-led-backlight

Linux系统通过环境光传感器自动控制键盘和LCD背光(可视区域)。 该程序如果检测到笔记本电脑上存在环境光传感器,则读取传感器数据,并自动调整键盘灯光及其亮度。未来计划也集成LCD背光控制。 # ./build/als-led-backlight 使用root权限运行以下命令将此软件包安装为服务: 使用systemctl status als-led-backlight检查服务状态。 目前,它从/etc/als-led-backlight.conf读取配置文件。您可以通过此配置调整基础读取阈值。 使用root权限卸载:

一位Linux用户和底层程序员“donjajo”开发了一个C程序,可以根据设备传感器检测到的环境光自动调整键盘背光亮度。该项目在Hacker News上分享,目前专注于键盘控制,但设计目标是未来能与LCD背光调整无缝集成。 开发者通过遵循Linux内核中的iio实现,并通过sysfs接口,优先考虑了与各种设备的兼容性。Donjajo正在寻求关于该项目在GitHub上的反馈,希望完善和扩展其功能。这是一个出于对Linux操作系统增强功能需求而产生的个人项目。
相关文章

原文

Auto control of keyboard and LCD backlight (in-view) through Ambient Light Sensor in Linux

This program takes in data from the Ambient Light Sensor if found present on your laptop, and automatically adjust the light and its intensity on your keyboard if detected.

There is future plan to integrate LCD backlight too.

# ./build/als-led-backlight

Install the this package as a service by running with root privilege:

Check the status of the service with systemctl status als-led-backlight

Currently, it reads config file from /etc/als-led-backlight.conf. You can adjust the base reading threshold with this configuration

Uninstall with root privilege using:

联系我们 contact @ memedata.com