Logitech g213 driver linux

Logitech Gaming Keyboards

This article or section needs language, wiki syntax or style improvements. See Help:Style for reference.

Some Logitech Gaming Keyboards can work on Linux through Unofficial drivers. There are a few packages available

  • the python based Gnome15 project
  • the C based g15daemon project.
  • https://github.com/tolga9009/sidewinderd
  • https://github.com/Wattos/logitech-g710-linux-driver
  • https://github.com/MatMoul/g810-led
  • Animation support with C++ based Keyleds project.
  • Gkeys support for G910 Orion Spectrum/Spark: g910-gkeys-gitAUR (https://github.com/JSubelj/g910-gkey-macro-support), or a fork of it supporting M keys and their profile changing ability here (https://github.com/MR-R080T/g910-gkey-macro-support)
  • Some Logitech gaming mice and keyboards are remappable using libratbag and piper . The app includes basic LED led customization and a simple GUI interface.
  • LED customization support is available through openrgbAUR for most keyboards.

Install

g15daemon AUR and its dependencies are available in the community repository. G15daemon drivers still work for the keyboards they supported, but their development was mostly dropped in 2008, the source is still available for anyone to pick up and continue their development, there are a few bugs in them that were never solved. These drivers use the g15macro AUR to interact with the G keys. There is also a g15stats AUR plugin to show system information on the LCD display.

keyleds AUR is available through Arch User Repository. Detailed configuration, effects and LUA scripting are in the project’s documentation.

Supported Models

  • G15 (Orange and Blue)
  • G11
  • Gamepad
  • G510 (Requires Patching; Read below)

Gnome15 has a list of supported devices on its front page. The keyboards are:

  • G19
  • G19s
  • G15 (Orange and Blue)
  • G13
  • G110
  • G510 and G510s (Partial)
  • G710 / G710+
  • G105
  • (and Microsoft SideWinder X4 / X6, hence name)

keyleds AUR led supports (possible lua scripting):

G510 on g15daemon

This article or section is out of date.

Forum Thread (This thread has more detailed instructions and might be helpful for readers from other distributions or less advanced users, it also contains a list of known issues.)

A patch was written to make the G510 keyboard fully compatible with the g15daemon drivers. It is however not compatible with g15macro and as such an alternative approach was needed (which involved heavy modifications of the original code) the result yields much better performance for than using the gnome15 drivers which can currently result in severe input lag for this keyboard.

To apply the patch you must download the g15daemon and libg15 sources with abs [broken link: package not found] and edit their PKGBUILDs.

To download the sources to a folder directory called «community» (the folder will be dropped into whichever directory the terminal is in) run the two following commands:

Now enter the folders and fetch the sources for them. (Make sure to remember to download the soures for both of them)

The patch already applies the patches from the arch community repository, so remove all patches that came with g15daemon by running:

Then download the libg15 and g15daemon patches and modify to your will. The color profiles per M-Led settings are hard coded into the libg15 patch at line 341, 344, 347 and 350 in R,G,B color code.

Then place the files (libg15.patch and g15daemon.patch) into the folders that your packages were downloaded into, after this you must replace the PKGBUILDS with the new ones: g15daemon, libg15 These new PKGBUILDS refer to local sources only, this means they do not fetch sources from the net if they are not present so make sure you hold on to your tar.bz2 files. If you want them to fetch these from the net you can refer to the original PKGBUILDs.

Now install the packages, libg15 comes first, libg15render AUR is required as well before you install g15daemon.

Читайте также:  Remove disk or other media press any key to restart при установке windows

This will compile, install and clean up the extracted sources afterwards to avoid cluttering the folder. I also recommend installing g15stats AUR from AUR next. For fluff.

After the installation you need to download [dead link 2020-03-30 ⓘ] or create the macro script files, and place them into /usr/share/g15daemon/macros. If you want to create them yourself the files need to be executable and the filenames are corresponding to the label on each key (so for the G1 key use /usr/share/g15daemon/macros/G1). Normally these files should use the bash script syntax.

For commands on the G keys to work with graphical applications g15daemon must be started after the X11 session. To do this you must add these commands to your autostart/xinitrc.

And congratulations! you have a working G510 keyboard on Linux 🙂 With a few issues of course (known issues are in the forum thread linked to at the start of this section)

Источник

Logitech g213 driver linux

A script to change the key colors on a Logitech G213 Prodigy Gaming Keyboard.

Please also check out these awesome forks:

G213Colors GUI — A cool grafical GUI you can use from the main menu

G213Colors GUI + installation script — The GUI plus an easy installation script

Thanks to derEisele and JeroenED for creating this!

G213Colors lets you set the color(s) and certain effects of the illuminated keys on a G213 keyboard under Linux.

The original Software and Hardware has the following downsides:

  • There is no Linux software
  • The keyboard does not save the last setting, one has to re-set it every bootup / disconnect
  • The keyboard starts up with an annoying color cycle animation
  • The original software is unusable with KVM switches

So i decided to reverse engineer their USB protocol and to write my own script to control the keyboard.

G213Colors was built and tested under Linux for the G213 keyboard specifically, but after some adaptation it could potentially be run under other OS’es and used for other Logitech keyboards as well. Please understand that i do not support any such adaptation, if you want to do it you are on your own.

The «Wave» color effect that is available with the Logitech software could not be replicated since it is completely generated in the software by updating the colors every x ms (In contrast to the other effects which run on the keyboard itself). You could generate this effect with a script, but since G213Colors has to detach the kernel driver from one of the G213’s interfaces to send data out the multimedia keys would most likely stop working. Unfortunately this is a side effect of the linux driver structure.

Either download the G213Colors.py file to a directory of your choosing or clone this project with git.

  • Python >= 2.4 or 3.x (which is usually already installed)
  • PyUSB
  • RandomColor

If you run the script as Root (Which is likely) please install the libraries also as root (E.g.: sudo pip3 install pyusb , sudo pip3 install randomcolor , use only «pip» for Python 2).

Please ignore the pcap directory, i added the pcap files i used for reverse engineering just in case someone wants to work with them. They can be opened with Wireshark.

For help on how to use G213Colors call the script without any arguments:

G213Colors needs to run as root as long as your user doesn’t have access privileges for that USB device (How to do this, please use «046d» as idVendor and «c336» as idProduct).

If you want to run the script when the keyboard is plugged in (For instance if you use a USB switch or KVM switch) use this udev rule (In this case the script is run by root):

  • Added feature: Assign random colors to keyboard by using -ra or -rs flag
  • Fixed bug preventing setting all 5 color fields correctly, thanks to @oncecreated for finding this solution!
  • Added propper validation of user inputs
  • Complete refactoring

About

A Python script to change the key colors on a Logitech G213 Prodigy Gaming Keyboard

Источник

Logitech g213 driver linux

Linux led controller for Logitech G213, G410, G413, G512, G513, G610, G810, G815, G910 and GPRO Keyboards.

  • G213 Prodigy
  • G410 Atlas Spectrum
  • G413 Carbon
  • G512 Carbon
  • G513 Carbon
  • G610 Orion Brown
  • G610 Orion Red
  • G810 Orion Spectrum
  • G815 LIGHTSYNC
  • G910 Orion Spark
  • G910 Orion Spectrum
  • GPRO
Читайте также:  System windows controls datavisualization charting chart

Contribute and evolution :

You can load predefined configurations on startup!

g213-led —help
g410-led —help
g413-led —help
g512-led —help
g513-led —help
g610-led —help
g810-led —help
g815-led —help
g910-led —help
gpro-led —help

g810-led —help-keys
g810-led —help-effects
g810-led —help-samples

g810-led -p /etc/g810-led/profile # Load a profile
g810-led -k logo ff0000 # Set color of a key
g810-led -a 00ff00 # Set color of all keys
g810-led -g fkeys ff00ff # Set color of a group of keys
g810-led -s color # Set keyboard power on effect
g810-led -fx color keys 00ff00 # Set fixed color effect
g810-led -fx breathing logo 00ff00 0a # Set breathing effect
g810-led -fx cycle all 0a # Set color cycle effect
g810-led -fx hwave keys 0a # Set horizontal wave effect
g810-led -fx vwave keys 0a # Set vertical wave effect
g810-led -fx cwave keys 0a # Set center wave effect

Samples with no commit :

g810-led -an 000000 # Set color of all key with no action
g810-led -gn modifiers ff0000 # Set color of a group with no action
g810-led -kn w ff0000 # Set color of a key with no action
g810-led -kn a ff0000 # Set color of a key with no action
g810-led -kn s ff0000 # Set color of a key with no action
g810-led -kn d ff0000 # Set color of a key with no action
g810-led -c # Commit all changes

Samples for G610 :

g610-led -a 60 # Set intensity of all keys
g610-led -k logo ff # Set intensity of a key
g610-led -g fkeys aa # Set intensity of a group of keys

Samples for G213 :

g213-led -a 00ff00 # Set all keys green
g213-led -r 1 ff0000 # Set region 1 red

Samples with pipe (for effects) :

g810-led -pp
echo -e «k w ff0000\nk a ff0000\nk s ff0000\nk d ff0000\nc» | g810-led -pp # Set multiple keys

Testing unsupported keyboards :

Start by retrieving the VendorID and the ProductID of your keyboard using lsusb.
lsusb
Sample return :
Bus 001 Device 001: ID 046d:c331 Logitech, Inc.
In this sample VendorID is 046d and ProductID is c331. Now test your keyboard with all supported protocol (for 2019 keyboard start with -tuk 4):
g810-led -dv 046d -dp c331 -tuk 1 -a 000000
If your keyboard set all key to off you have found the protocol (1), if not continue.
g810-led -dv 046d -dp c331 -tuk 2 -a 000000
If your keyboard set all key to off you have found the protocol (2), if not continue.
g810-led -dv 046d -dp c331 -tuk 3 -a 000000
If your keyboard set all key to off you have found the protocol (2), if not continue.
g810-led -dv 046d -dp c331 -tuk 4 -a 000000
If your keyboard set all key to off you have found the protocol (3), if not, need new dump.

Building and linking against the libg810-led library :

Include in implementing source files.

To link, simply provide -lg810-led to the build flags.

To build the g810-led application as a dynamically-linked variant, run the target:
make bin-linked

Dumps of keyboards are now stored in a separate project to preserve a small download size of this project. You can find them here : https://github.com/MatMoul/g810-led-resources

About

Linux led controller for Logitech G213, G410, G413, G512, G513, G610, G810, g815, G910 and GPRO Keyboards

Источник

ТЫ МОЖЕШЬ ВЫБРАТЬ

Logitech Options — удобное и функциональное приложение, расширяющее возможности мышей, клавиатур и сенсорных панелей Logitech. Options поможет настроить ваше устройство для достижения великолепного результата.

МГНОВЕННОЕ ВОЗРАСТАНИЕ ПРОДУКТИВНОСТИ РАБОТЫ

Программа Logitech Options чрезвычайно проста в использовании и снабжена рядом великолепных функций. Используемые устройства отображаются в виде картинок на экране, благодаря чему их можно найти, настроить и осуществить переключение между ними безо всякого труда за считанные секунды. В этой программе воплотился многолетний опыт компании Logitech в сфере создания высококлассного оборудования и интеллектуальных программных средств.

Возможность настройки кнопок и клавиш

Назначение функций кнопкам и клавишам, регулирование скорости перемещения курсора и вращения колесика прокрутки и многое другое

УЗНАТЬ БОЛЬШЕ

Кнопка жестов

Использование кнопки жестов для воспроизведения жестов, распознаваемых трекпадом, позволяет работать более продуктивно

УЗНАТЬ БОЛЬШЕ

Функциональная настройка для приложений

Настраивайте кнопки для выполнения определенных задач

УЗНАТЬ БОЛЬШЕ

Уведомления и состояния

Отображение состояния конкретных устройств и уведомление пользователя о том, что происходит с ними

Читайте также:  Закрыть все открытые окна windows 10 одновременно

УЗНАТЬ БОЛЬШЕ

LOGITECH FLOW

Наведите указатель на край экрана и автоматически переключайтесь между компьютерами, перебрасывая с одного на другой текст, изображения и файлы

УЗНАТЬ БОЛЬШЕ

РЕЗЕРВНОЕ КОПИРОВАНИЕ ПАРАМЕТРОВ УСТРОЙСТВ

Создайте учетную запись и выполните резервное копирование параметров устройства в облако

УЗНАТЬ БОЛЬШЕ

Настройка кнопок и клавиш

Переназначение любой кнопки мыши на выполнение практически любой задачи. Для современных устройств предусмотрена возможность регулировки вращения колесика прокрутки, скорости перемещения курсора и многих других параметров 3 . Расширенные функции клавиш позволяют настроить клавиатуру Logitech в соответствии с предпочтениями пользователя.

Жесты, оптимизированные для Windows ® и mac OS

Активировав кнопку жестов, пользователь сможет управлять компьютером с помощью привычных жестов, распознаваемых трекпадом. Удерживая кнопку жестов, перемещайте мышь вверх, вниз, влево или вправо, чтобы совершать различные действия, например, открывать представление задач Windows или активировать функцию Mission Control на Mac. Кроме того, так можно управлять воспроизведением мультимедийных файлов, панорамированием, масштабированием и опцией поворота.

ИНДИВИДУАЛЬНЫЕ НАСТРОЙКИ ДЛЯ КАЖДОГО ПРИЛОЖЕНИЯ

Используйте любимые приложения, к примеру Zoom или Microsoft Teams, максимально эффективно. Индивидуальные настройки для каждого приложения позволяют назначать разные функции кнопкам мышей MX Master 3, MX Anywhere 3 и ERGO M575 в соответствии с собственными предпочтениями. Например, запустить или остановить масштабирование видео можно с помощью кнопки «Вперед», а отключить / включить микрофон — посредством нажатия кнопки «Назад». Возможность настройки кнопок для каждого из используемых приложений.

Отслеживание состояния устройства: краткий обзор

С помощью Функции «Уведомления и состояние» пользователь в нужный момент получает сведения о конкретном устройстве, например, об уровне заряда его батареи, уровне подсветки клавиш и о том, активирована ли клавиша Caps Lock. Таким образом можно понять, когда примерно разрядится батарея и когда ее пора подзарядить. Это придает уверенность, что в критично важную минуту техника не подведет. Пользователи клавиатур с поддержкой функции Easy-Switch ™ всегда в курсе, какие именно компьютеры установили сопряжение с каналами 1-2-3.

НЕСКОЛЬКО УСТРОЙСТВ. СВОБОДНЫЙ ПЕРЕХОД.

Работа на двух или трех компьютерах одновременно — не проблема, если у вас есть Logitech Flow. Переключение между компьютерами происходит автоматически. Для этого просто подведите указатель мыши к краю экрана. Данная функция также упрощает передачу текста, изображений и файлов с компьютера на компьютер — их достаточно скопировать и вставить там, где требуется.

ВЫПОЛНИТЕ РЕЗЕРВНОЕ КОПИРОВАНИЕ ПАРАМЕТРОВ УСТРОЙСТВА

Создайте учетную запись в приложении Options, чтобы резервное копирование параметров устройства в облако осуществлялось автоматически. Вы можете восстановить нужные настройки из файлов резервных копий, что позволяет легко настроить устройство с любого компьютера.

Поддерживаемые продукты и функции

Мыши и трекболы Настройка кнопок Оповещения и
сведения о состоянии
Кнопка жестов Особые настройки
приложения
Logitech Flow
MX MASTER 3 6
MX Vertical 4
MX ERGO 6
M590 Multi-Device Silent 5
MX Anywhere 2S 5
MX Master 2S 6
T651 0
M330 SILENT PLUS 1
M720 Triathlon 6
M335 4
M535 4
MX Anywhere 2 5
PARTY COLLECTION 1
MX Master 6
СВЕРХПОРТАТИВНАЯ БЕСПРОВОДНАЯ МЫШЬ M187 1
БЕСПРОВОДНАЯ МЫШЬ M185 1
БЕСПРОВОДНАЯ МЫШЬ M510 1 5
Беспроводная мышь M310 1
Wireless Mouse M545 1 5
БЕСПРОВОДНАЯ МЫШЬ M171 1
M280 Wireless Mouse 1
БЕСПРОВОДНАЯ МЫШЬ M235 1
B330 Silent Plus 1

ОС Windows и macOS

Только для Windows

Клавиатуры Настройка функциональных клавиш Оповещения и
сведения о состоянии
Особые настройки
приложения
Easy-Switch
Состояние
DuoLink Logitech Flow
MX KEYS
LOGITECH CRAFT
Wireless Solar Keyboard K760 2
BLUETOOTH-КЛАВИАТУРА K480 MULTI-DEVICE
K400 Plus Wireless Touch Keyboard
УНИВЕРСАЛЬНАЯ КЛАВИАТУРА K380 MULTI-DEVICE BLUETOOTH
Универсальная беспроводная клавиатура K780 Multi-Device
K375s MULTI-DEVICE

ОС Windows и macOS

Только для Windows

Комплекты «клавиатура + мышь» Кнопка &
функциональная клавиша
Настройка
Оповещения и
сведения о состоянии
Кнопка жестов Особые настройки
приложения
DuoLink Easy-Switch
Состояние
Logitech Flow
MK540 ADVANCED 3
MX900 Performance Combo 4

ОС Windows и macOS

Только для Windows

1. Предыдущие версии M510, M545 и M546 поддерживаются приложением Logitech SetPoint в ОС Windows и Logitech Control Center в ОС macOS

2. Поддержка программного обеспечения Windows, обеспечиваемая приложением Logitech SetPoint

3. Настройка кнопок мыши доступна в ОС Windows и macOS. Настройка функциональных клавиш доступна только в ОС Windows.

4. Настройка кнопок мыши доступна в ОС Windows и macOS. Настройка F-клавиш доступна только в ОС Windows. Параметры конкретных приложений можно задавать только для мыши. Для клавиатуры такая возможность отсутствует.

Технические характеристики и описания

Требования к системе

macOS 10.15 и более новых версий

Чтобы установить одновременно приложения Options и Options+, у вас должна быть установлена версия Options не ниже 8.54.

Источник

Оцените статью