Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eruption-project/eruption

Realtime RGB LED Driver for Linux
https://github.com/eruption-project/eruption

aimo driver effects eruption led lighting linux rgb roccat vulcan

Last synced: 5 days ago
JSON representation

Realtime RGB LED Driver for Linux

Awesome Lists containing this project

README

        


Eruption on a ROCCAT Vulcan 12x  

![License](https://img.shields.io/github/license/X3n0m0rph59/eruption?style=flat-square)
![Stars](https://img.shields.io/github/stars/X3n0m0rph59/eruption?style=flat-square)
![Crates.io](https://img.shields.io/crates/v/eruption-sdk?style=flat-square)
![Downloads](https://img.shields.io/crates/d/eruption-sdk?style=flat-square)

[![Continuous integration](https://github.com/eruption-project/eruption/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/eruption-project/eruption/actions/workflows/rust.yml)
[![Copr build status](https://copr.fedorainfracloud.org/coprs/x3n0m0rph59/eruption/package/eruption/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/x3n0m0rph59/eruption/package/eruption/)





GPLv3 logo
  

Rustacean logo
  

Linux Tux



# Table of Contents

- [Table of Contents](#table-of-contents)
- [Eruption - Realtime RGB LED Software for Linux](#eruption---realtime-rgb-led-software-for-linux)
- [Image and Video Gallery](#image-and-video-gallery)
- [Device Compatibility](#device-compatibility)
- [Keyboards](#keyboards)
- [Mice](#mice)
- [Miscellaneous Devices](#miscellaneous-devices)
- [Important Information](#important-information)
- [Troubleshooting](#troubleshooting)
- [Design Overview](#design-overview)
- [Introduction](#introduction)
- [Systems Architecture](#systems-architecture)
- [Installation](#installation)
- [Arch Linux and derivatives like ArcoLinux or Manjaro](#arch-linux-and-derivatives-like-arcolinux-or-manjaro)
- [Fedora based](#fedora-based)
- [Ubuntu or Pop!\_OS](#ubuntu-or-pop_os)
- [From Source](#from-source)
- [After Setup](#after-setup)
- [Support for Audio Playback and Capture](#support-for-audio-playback-and-capture)
- [The `eruption-audio-proxy` Daemon](#the-eruption-audio-proxy-daemon)
- [Further Reading](#further-reading)
- [Features Overview (a.k.a The Eruption Handbook)](#features-overview-aka-the-eruption-handbook)
- [Other Documentation](#other-documentation)
- [HOWTOs](#howtos)
- [FAQs](#faqs)
- [Contributing](#contributing)

---

## Eruption - Realtime RGB LED Software for Linux

A Linux user-mode input and RGB LED driver for keyboards, mice and other devices

For a list of recent news and noteworthy changes, please refer to [CHANGES.md](CHANGES.md)

### Image and Video Gallery

[![Eruption Video](https://img.youtube.com/vi/ig_71zg14nQ/0.jpg)](https://www.youtube.com/watch?v=ig_71zg14nQ)

![Eruption GUI screenshot](docs/assets/screenshot-01.png)

![Eruption GUI screenshot](docs/assets/screenshot-02.png)

![Eruption GUI screenshot](docs/assets/screenshot-03.png)

---

## Device Compatibility

### Keyboards

- [ ] Wooting Two HE (ARM) series keyboard (work-in-progress, as of version `0.4.0`, experimental)
- [ ] ROCCAT Vulcan II Max series keyboard (work-in-progress, as of version `0.5.0`, experimental)
- [x] ROCCAT Vulcan 100/12x series keyboard (fully supported, stable)
- [x] ROCCAT Vulcan Pro TKL series keyboard (98% supported as of version `0.1.19`, testing)
- [ ] ROCCAT Vulcan TKL series keyboard (work-in-progress, as of version `0.1.20`, experimental, untested)
- [ ] ROCCAT Vulcan Pro series keyboard (work-in-progress, as of version `0.1.20`, experimental, untested)
- [ ] ROCCAT Magma series keyboard (work-in-progress, as of version `0.1.23`, experimental)
- [ ] ROCCAT Pyro series keyboard (work-in-progress, as of version `0.5.0`, experimental)
- [ ] Corsair Strafe Gaming Keyboard (non-RGB/monochrome only, as of version `0.1.20`, experimental)

### Mice

- [x] ROCCAT Kone Pure Ultra (stable)
- [x] ROCCAT Burst Pro (as of version `0.1.20`, testing)
- [ ] ROCCAT Kain 100 AIMO (as of version `0.2.0`, experimental)
- [x] ROCCAT Kain 2xx AIMO (as of version `0.1.23`, testing)
- [ ] ROCCAT Kone XP (work-in-progress, as of version `0.2.0`, experimental)
- [ ] ROCCAT Kone Pro (work-in-progress, as of version `0.2.0`, experimental)
- [x] ROCCAT Kone Pro Air (work-in-progress, as of version `0.2.0`, testing)
- [ ] ROCCAT Kone Aimo (experimental)
- [ ] ROCCAT Kone Aimo Remastered (experimental)
- [ ] ROCCAT Kova AIMO (testing)
- [ ] ROCCAT Kova 2016 (as of version `0.1.23`, testing)
- [ ] ROCCAT Kone XTD (as of version `0.1.20`, experimental)

### Miscellaneous Devices

- [x] ROCCAT/Turtle Beach Elo 7.1 Air Wireless Headset (work-in-progress, as of version `0.1.23`, testing)
- [x] ROCCAT Sense AIMO XXL (as of version `0.1.23`, stable)
- [x] Adalight/Custom serial LEDs (testing)

Please see [DEVICES.md](DEVICES.md) for further information

> **NOTE**
>
> **Experimental** drivers are `disabled` in the default configuration!
>
> To enable support for experimental drivers, please edit `/etc/eruption/eruption.conf` and set
>
> ```toml
> driver_maturity_level = "experimental"
> ```
>
> After that, please restart the eruption daemon
>
> ```shell
> sudo systemctl restart eruption.service
> ```

## Important Information

⚠️ This project is still in the early stages of development, and thus may contain some possibly serious bugs. ⚠️

**For a more mature RGB lighting solution please also consider the following alternatives**

**OpenRGB** - OPEN SOURCE RGB LIGHTING CONTROL THAT DOESN'T DEPEND ON MANUFACTURER SOFTWARE \
\

For configuring gaming mice you may want to consider:

**libratbag/piper** -
libratbag A DBus daemon to configure input devices, mainly gaming mice

**For key remapping without LED specific features**

If you are more interested in simply remapping your keys at the input level, or even require application-specific key remapping you should consider:

**Keyd** - A key remapping daemon for linux

### Troubleshooting

If you ever need to forcefully disable the Eruption daemon you may do so by adding
the following text snippet to the bootloader's (e.g. GRUB) kernel command line:

```shell
systemd.mask=eruption.service
```

Or with systemctl to mask the service:

```shell
sudo systemctl mask eruption.service
```

You can always re-enable the Eruption service with the command:

```shell
sudo systemctl unmask eruption.service
```

---

## Design Overview

### Introduction

Eruption is a Linux daemon written in the Rust programming language. Eruption consists of a core daemon providing an integrated
Lua interpreter, and additional plugin components. Its primary usage is to execute Lua scripts that may react to certain
events on the system like e.g. `Timer tick`, `Key press` or `Mouse move` and subsequently control the connected LED
devices and/or transform the user input via the integrated programmable macro feature.
Eruption plugins may export additional functionality to the Lua scripting engine. Multiple Lua scripts may be run in
parallel, each one in its own VM thread. A Lua script shall compute some kind of effect resulting in a 'color map'.
Each Lua scripts 'submitted color map' will be combined with all other scripts 'submitted color maps' using a compositor
that performs an alpha blending step on each 'color map' before it finally gets sent to the connected LED devices.

### Systems Architecture

Eruption is split into multiple independent processes: `eruption`, the core daemon that handles hardware access running
as the `root` user, and multiple session daemons, most notably `eruption-audio-proxy` that provides audio related
functionality to the core daemon, and `eruption-process-monitor` that is able to automatically switch profiles based
on system usage. Both of these session daemons run as the respective logged-in user.

---

## Installation

> To install the latest git snapshot please use the package named `eruption-git` instead of the stable package `eruption`

### Arch Linux and derivatives like ArcoLinux or Manjaro

```shell
paru -Syu aur/eruption

systemctl --user enable --now eruption-fx-proxy.service
systemctl --user enable --now eruption-audio-proxy.service
systemctl --user enable --now eruption-process-monitor.service

sudo systemctl enable --now eruption.service
```

### Fedora based

```shell
sudo dnf copr enable x3n0m0rph59/eruption
sudo dnf install eruption

systemctl --user enable --now eruption-fx-proxy.service
systemctl --user enable --now eruption-audio-proxy.service
systemctl --user enable --now eruption-process-monitor.service

sudo systemctl enable --now eruption.service
```

### Ubuntu or Pop!\_OS

```shell
sudo add-apt-repository ppa:x3n0m0rph59/eruption
sudo apt update
sudo apt install eruption

systemctl --user enable --now eruption-fx-proxy.service
systemctl --user enable --now eruption-audio-proxy.service
systemctl --user enable --now eruption-process-monitor.service

sudo systemctl enable --now eruption.service
```

### From Source

```shell
git clone https://github.com/eruption-project/eruption.git
cd eruption
make
sudo make install
make start
```

To remove Eruption from your system run:

```shell
make stop
sudo make uninstall
```

Please refer to [INSTALL.md](docs/INSTALL.md) for further information, e.g. the dependencies you need to install to be
able to successfully build Eruption from source.

---

## After Setup

> You may want to try the
> [Eruption Profile Switcher](https://extensions.gnome.org/extension/2621/eruption-profile-switcher/)
> GNOME Shell extension that enables easy switching of profiles on the fly

![eruption-profile-switcher screenshot](docs/assets/screenshot-profile-switcher-01.jpg)

![eruption-profile-switcher screenshot](docs/assets/screenshot-profile-switcher-02.jpg)

### Support for Audio Playback and Capture

Eruption currently has built-in support for the following audio APIs:

- `PipeWire` (via the `PulseAudio` interface of `PipeWire`)
- `PulseAudio`

Audio support is provided by `eruption-audio-proxy.service`.

## The `eruption-audio-proxy` Daemon

As of Eruption `0.1.23` it is no longer necessary to grant the `root` user full access to the `PipeWire` or `PulseAudio`
session instance. Therefore, it is no longer required to edit configuration files. Just enable the `eruption-audio-proxy`
session daemon and assign a device monitor to listen on, e.g. by using `pavucontrol`.

```shell
systemctl --user enable --now eruption-audio-proxy.service
```

> NOTE: Please _do not use `sudo`_ in front of the command since it has to act on the session instance of systemd

Next, switch to a profile that utilizes the audio API of Eruption:

```shell
eruptionctl switch profile spectrum-analyzer-swirl.profile
```

Then use `pavucontrol` to assign a monitor of an audio device to the Eruption audio grabber.

![audio-grabber pavucontrol](docs/assets/screenshot-audio-grabber-pavucontrol.png)

> NOTE: You have to select a profile that makes use auf the audio grabber first, otherwise the
> `eruption-audio-proxy` will not open an audio device for recording, and therefore will not be listed

## Further Reading

### Features Overview (a.k.a The Eruption Handbook)

A general overview over the features of Eruption and how to use them

[FEATURES.md](docs/FEATURES.md)

### Other Documentation

Please see [DOCUMENTATION.md](docs/DOCUMENTATION.md) for a more thorough explanation of what Eruption is, and how to use
and customize it properly.

For further information about the supported Lua functions and libraries, please refer to the developer documentation
[LIBRARY.md](docs/LIBRARY.md).

For a detailed documentation on how to write your own macros, please refer to [MACROS.md](docs/MACROS.md)

## HOWTOs

Please find a list of HOWTOs at [HOWTO.md](docs/HOWTO.md)

## FAQs

Please find a list of frequently asked questions and their respective answers at [FAQs.md](docs/FAQs.md)

## Contributing

Contributions are always welcome!
Please find information on how to contribute at [CONTRIBUTING.md](CONTRIBUTING.md)

Please see `support/scripts/examples/*.lua` directory for Lua scripting examples.