How do i configure a Logitech G502 Spectrum under Linux?

10

2

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.

0x1ad1b88

Posted 2016-03-30T11:48:52.480

Reputation: 156

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. – Jonathan Neufeld – 2017-09-13T06:35:57.033

Answers

9

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!

ZN13

Posted 2016-03-30T11:48:52.480

Reputation: 392

1Great find! This worked perfectly for my g502 under Antergos. – blakev – 2019-05-28T16:28:04.263

libratbag itself also has command line tools which are very straightforward to use and work perfectly well – Victor Mataré – 2020-02-13T03:09:20.733

0

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. :)

user869304

Posted 2016-03-30T11:48:52.480

Reputation:

1The 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. – Kamil Maciorowski – 2018-02-15T20:43:39.590

sorry I didn't read correctly. my bad. – None – 2018-02-16T12:51:10.123