24

I'm thinking about buying a Logitech G502 Spectrum (the G502 with RGB LEDs) but as I am running Linux (Speciified in Debian @ work, ubuntu @work and archlinux @home) I am woundering how to setup colors directly under a linux environment.

As far as I know from some review videos on youtube, it uses Logitech's default Gaming Software to acheive this under windows, but sadly as far as i remember there is no official software from logitech supporting linux.

So how do i change the rgb color under linux (well each distro). I would be fine with a shell script doing it :) - But I am NOT willing to setup a profile ander a windows environment.

1
  • I imagine someone has to write a proprietary driver for this. I wanted the same for my RGB Corsair keyboard, and fortunately someone did write a proprietary driver for it. I would be willing to contribute to such a project, but I am not knowledgeable enough in Linux kernel development to initiate one. Sep 13 '17 at 6:35
38

You can use Piper, which relies on libratbag.

Installing it is simple:

  • Fedora: dnf install piper

  • Arch: pacman -S piper

  • Ubuntu: add this PPA, and then install using sudo apt install piper

  • OpenSUSE: zypper install piper

Then you just configure your mouse via the gui!

I have a g502s myself, and as far as I can see everything works, even the LEDs!

5
  • 2
    Great find! This worked perfectly for my g502 under Antergos.
    – blakev
    May 28 '19 at 16:28
  • 2
    libratbag itself also has command line tools which are very straightforward to use and work perfectly well Feb 13 '20 at 3:09
  • 2
    This worked perfectly for me! And the ability to turn of the fokkin LEDs is amazing. Apr 24 '20 at 11:18
  • This works so well, it feels like an official driver!
    – a3y3
    Aug 17 '20 at 16:04
  • Do not work for me. At minimum speed ( on ubuntu and the mousse) the cursor is still too fast ... I need the same speed on all my device. /: It's important when you play FPS ... Aug 25 at 13:04
2

This answer might be too late but I am still answering anyway. As I know there is no software for linux. So what I do (and every body else) is that I use another computer that runs Windows to configure my mouse. The macros, lights are stored in the mouse so they can work anywhere(linux included).

What you can also do is used a virtual machine (running windows or mac) and do a usb pass through. I know the virtual machine can work (to configure the mouse) but never tested it.

Hope you find what I said useful. :)

2
  • 3
    The OP says: "I am NOT willing to setup a profile under a Windows environment". Your answer seems to ignore it. Still it may be useful to other users who are not as restrictive as the OP. Feb 15 '18 at 20:43
  • sorry I didn't read correctly. my bad.
    – user869304
    Feb 16 '18 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.