Registry / devops / g13-linux

g13-linux

JSON →
library1.7.2pypypi✓ verified 81d ago

A Linux driver for the Logitech G13 gamepad, providing macro support, RGB LED control, and LCD display management. Version 1.7.2 requires Python >=3.10. Release cadence is irregular; development on GitHub.

pip install g13-linux
INSTALL
IMPORT
SIG · G13-LINUX
G
g13-linux
devopspythonv1.7.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

G13Daemon
from g13_linux import G13Daemon
from g13_linux import G13
G13Mapper
from g13_linux import G13Mapper
from g13_linux import G13
open_g13
from g13_linux import open_g13
from g13_linux import G13

Connects to G13, displays text on LCD, then disconnects.

import os import time from g13_linux import G13 g13 = G13() try: g13.connect() print("Connected to G13") # Set LCD text g13.lcd.set_text("Hello G13!") time.sleep(2) finally: g13.disconnect()
g13-linux --version
Debug
Known issues
breakingIn v1.6, module name changed from 'g13' to 'g13_linux'. All imports must be updated.
fix
Use 'from g13_linux import G13' instead of 'import g13'
affects: >=1.6
deprecatedThe 'g13_linux.keys.KeyNames' class is deprecated in favor of 'g13_linux.keys.Key' in v1.7.
fix
Use 'from g13_linux.keys import Key'
affects: 1.7.x
gotchaYou must run the script with root privileges (e.g., sudo) or set up udev rules, otherwise USB access fails with 'Permission denied'.
fix
Run with sudo or add a udev rule: SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c299", MODE="0660", GROUP="plugdev"
affects: all
gotchaDisconnect properly using g13.disconnect() to release USB device; otherwise, subsequent connections may fail until device is re-plugged.
fix
Always call g13.disconnect() in a finally block.
affects: all
Upgrade
Version history
1.7.2latest on PyPI · released May 4, 2026
Audit
Dependencies
pyusbrequiredUSB communication with G13
PillowoptionalImage handling for LCD display
Agent activity
11 hits · last 30 days
node
8
Bingbot
1
Resources
g13-linux — pip install g13-linux · libregistry