cemkaya-mpi / Dell-G15-Controller

GNU General Public License v3.0
36 stars 14 forks source link

Dell-G15-Controller

A simple GUI app written in PyQt to control keyboard backlight, power mode and fan speed on some Dell G15 and Alienware Laptops. 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. Power related functions are specific to the laptop models below, but might work on similar models.

Laptop Model Power Settings Keyboard Backlight
G15 5525 :white_check_mark: :white_check_mark:
G15 5520 :white_check_mark: :white_check_mark:
G15 5511 :white_check_mark: :white_check_mark:
G16 7620 :white_check_mark: :white_check_mark:
Alienware M16 R1 :white_check_mark: :grey_question:

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.

Dependencies

Installation

Create an udev rule /etc/udev/rules.d/00-aw-elc.rules.

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

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

Polkit is required for power and fan related functionality. If it is not already loaded, load the acpi_call module before launching this application.

modprobe acpi_call

Arch Linux

You can install from the AUR if on Arch Linux. For dependencies, see the AUR link.

Other distros

Install the dependencies, as well as libxcb-cursor0 if required.

Usage

python main.py

Screenshots

License

GNU GENERAL PUBLIC LICENSE v3

Contributions

Written using the information and code from https://github.com/trackmastersteve/alienfx/issues/41.

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