Skip to content

Vescrity/G15kblight-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.4%
  • Shell 3.6%