Skip to content

Latest commit

 

History

History
96 lines (68 loc) · 2.93 KB

README.md

File metadata and controls

96 lines (68 loc) · 2.93 KB

OpenDragon Build CodeQL

Open Redragon drivers for Linux. Currently only supporting some mice.

Table of contents

  1. Support
  2. Installation
    1. Building from source
  3. Usage
  4. Issues
  5. Contributing
  6. Sources

Support

Device Stage Light General DPI Notes
Redragon M607 Griffin (M602-RGB) WIP ✔️ partial - Only switching profiles work from general
Redragon M909 Emperor WIP ✔️ partial - Only switching profiles work from general
Redragon M601-3 Centrophorus WIP

Installation

Currently, it is not possible to install without building from source.

Building from source

$ make

Loading the module

# make load

Unloading the module

# make unload

or

# rmmod opendragon

Usage

To change mouse configuration, you can send data manually or through the GUI or CLI application.

Sending data manually:

# echo -n "[mode] [red] [green] [blue] [brightness] [speed]" > /sys/bus/hid/devices/XXXX:YYYY:ZZZZ.XXXX/light_mode
# echo -n "[profile number]" > /sys/bus/hid/devices/XXXX:YYYY:ZZZZ.XXXX/profile

Where:

  • mode is a number from 0 to 7 (Breathing, Rainbow, Full lighted, Wave, Go without trace, Reactive, Flash, Off)
  • red is a number from 0 to 255, red channel
  • green is a number from 0 to 255, green channel
  • blue is a number from 0 to 255, blue channel
  • brightness is a number from 0 to 2
  • speed is a number from 0 to 8
  • YYYY is vendor id
  • ZZZZ is product id
  • XXXX is interface number

Example:

# echo -n "2" > /sys/bus/hid/devices/0003:04D9:FC38.0003/light_mode
# echo -n "3 255 255 255 2 0" > /sys/bus/hid/devices/0003:04D9:FC38.0003/light_mode

This will switch to profile 3 (starting from zero) and change light mode to wave with brightness of 2 and speed of 0

Issues

  • Functions are to big, break them into smaller functions
  • UDEV rule doesn't work and I need help because I am not experienced with it

Contributing

Do you have a mouse that is not listed in supported mice? If so, file an issue to github page.
If you know how UDEV rules work please make a pull request.

Sources