Skip to content
/ lights Public

Work In Progress - Linux drivers for (A)RGB peripherals

Notifications You must be signed in to change notification settings

twifty/lights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WARNING

This project is a work in progress. There may be, and probably are, a few bugs. I would advise NOT installing in it's current form, and instead wait for a stable release. However, if you are interested in collaborating/testing, please open an issue. While I have tried to make the code work for all, I can only test on my limited set of available devices.

Some files contain paths which are hard coded for my personal system. Trying to build may result in errors. File paths and names may change from one push to the next, as may function prototypes.

I will state this again, this is a work in progress. I've pushed the code for the benefit of testers, issue tracking and version control.

Installation

If you don't know how to install build dependencies or run a makefile, then this module in its current form, is not ready for you.

Kernel headers a required to be installed at /lib/modules/$(shell uname -r)/build. If your distro places them in a different directory, either create a symlink or adjust the makefile(s). Available make command are build, clean, install, uninstall. NOTE, the install command only uses insmod from within the build directory. Your Current kernel is not changed.

structure

The code is a collection of kernel modules.

  • lights
    This is the main module, which all others depend upon. It exports an interface for creating files within the /dev/lights/ and /sys/class/lights/ directories.
  • lights-aura
    A module for interacting with ASUS AURA devices, including:
    • Motherboard (including headers)
    • RAM
    • GPU
  • more to follow

sysfs

Each module creates one or more directories within the systems /dev/lights/ folder. Each of these directories maps to an RGB zone available on the hardware. Each zone may contain the files:

  • color A read/write hex string color code.
  • effect A read/write string which specifies the zones effect.
  • leds A write only binary string. The enables setting of individual LEDs on ARGB peripherals.
  • speed A read/write numeric string (between 1 and 5).
  • sync A write only single byte value. (Future use).
  • direction A read/write value of 1 or 0. The actual value is dependent on fan/ring/glowy thing installation and current hemisphere.
  • update A write only method of updating multiple properties. This is intended for future programmatic use.

Each zone also has a directory available in /sys/class/lights/. Here, device specific settings can be found. For example the caps file lists all the available color modes of a device.

permissions

Two udev rules exists in the udev/ sub-directory (copy them to /etc/udev/rules.d). The first simply applies the 'lights' group to all device files. Users need only create a 'lights' group on their system and add permitted users to that group. The second is to unbind the AURA ARGB headers from the default kernel driver.

future

Once the modules are working without problems, I intend to create a system service and GUI application. The service will be able to handle creating extra effects which are not natively supported, and handle synchronizing colors between devices which may cycle at differing speeds.

Known Issues

  • Navi GPU's have changed the i2c bus. I am having a difficult time trying to figure out the new registers. It may be a while before they are supported.
  • VEGA GPU's are reportedly not working. I do not have access to these cards, so it may take a while. disclaimer

Neither I nor any contributer take responsibility for hardware issues or damage resulting from the use of this package. The package is provided AS IS.

About

Work In Progress - Linux drivers for (A)RGB peripherals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages