Vescrity / G15kblight-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

G15kblight-cli

Overview

G15kblight-cli is a command-line utility designed for controlling the keyboard backlight effects on Dell G15 laptops under Linux. This project is forked from cemkaya-mpi/Dell-G15-Controller.

The core code is consistent with the original project.

Untested on any other laptop, but keyboard part can most likely be used with models that have the Bus *** Device ***: ID 187c:0550 Alienware Corporation LED controller.

By default, leds will flash red on low battery, and have half brightness on battery.

Only static color and morph is supported at this time.

Use at your own risk.

Installation

Arch Linux

pkg/PKGBUILD

cd pkg
makepkg -si

Others

No installation necessary, besides installing python dependencies, and creating the udev rule /etc/udev/rules.d/00-aw-elc.rules, and rebooting. Make sure the user is part of the plugdev group. Alternatively, run the script as root (not recommended).

/etc/udev/rules.d/00-aw-elc.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="187c", ATTRS{idProduct}=="0550", MODE="0660", GROUP="plugdev", SYMLINK+="awelc"

Dependencies

  • python-pyusb

Usage

G15kblight-cli -h

Example

# set static color
G15kblight-cli -s 0x7733FF
# set morth color
G15kblight-cli -m 0x7733FF
# set static and morth color and duration
G15kblight-cli -s 0x7733FF -m 0x7733FF -t 555

License

GNU GENERAL PUBLIC LICENSE v3

Contributions

Written using the information and code from trackmastersteve/alienfx#41.

Many thanks to @AlexIII and @T-Troll for their help with the ACPI calls.

About

License:GNU General Public License v3.0


Languages

Language:Python 96.4%Language:Shell 3.6%