GithubHelp home page GithubHelp logo

tliu526 / agan_brightness_x230_x330 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xy-tech/agan_brightness_x230_x330

0.0 0.0 0.0 30 KB

agan X230 FHD/2K kit brightness adjustment

License: GNU General Public License v3.0

Makefile 1.79% C 98.21%

agan_brightness_x230_x330's Introduction

X330 X230 agan FHD/2K Linux brightness adjustment

X330 X230 FHD/2K 阿甘套件 亮度调节linux程序

GPL licensed

A work-in-progress. Planning to implement this with a simple script and install as a systemd service. As such, other systemd-less init distros will not be supported. Then again if you're running without systemd you'll know what you're doing ;)

Programme is written using native USB HID library so no driver is needed. All modern distros should be able to compile normally (macOS probably works as well, not sure how well it runs though).

Simple explanation: Programme interfaces with the onboard USB HID device. Commands are sent to the USB HID device to adjust brightness.

一个非常简单的亮度调节程序,基于系统自带library。只在linux测试,黑苹果应该也可以,但本人没测试过不知道能不能用。以后还会加入systemd自动生成脚本,以及inotify来实现快捷键调节。 使用非常简单:

To use 使用:

make
./script //change brightness to 15 (max) 亮度调至最高
./script 0 //change brightness to 0 (lowest brightness level) 亮度调至0(最低亮度)
./script 15 //change brightness to 15 (highest brightness level) 亮度调至15(最高亮度)

To-do:

  • Implement inotify to listen for changes in brightness
  • Write an installation script to install this as a systemd service

agan_brightness_x230_x330's People

Contributors

xy-tech avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.