Linux install
Part of lemoGamePad ultimate.
Release binaries
Keep lemoGamePad-app, lemoGamePad-server and install-linux.sh in the same
folder, then:
sudo sh install-linux.sh
./lemoGamePad-app
You can also open the panel first and use Settings → Install dependencies. It asks for confirmation, then shows the system admin prompt; it never installs anything automatically.
lemoGamePad-app opens the desktop control panel and starts the server; use
lemoGamePad-server if you prefer the console banner. The installer prefers the
app for the application-menu launcher and falls back to the console receiver
when the app is not present.
The installer notices the prebuilt binaries. Both lemoGamePad-server and
lemoGamePad-app are native Rust binaries, so no Python is needed to play. It
sets up uinput, installs the X11 libraries needed by the panel and a Wayland
screen-capture helper when needed, opens the firewall ports if ufw/firewalld
is active, and adds the application-menu launcher. In a source checkout it also
creates pc/.venv for optional reference/test scripts; that is for contributors,
not for playing.
The panel checks GitHub in the background and shows a dismissible Update
available banner with View release; it never downloads anything. Add
--no-update-check to skip that check.
From source
The receiver runs on Linux too and creates a real evdev gamepad through the
kernel’s /dev/uinput interface — the Linux equivalent of ViGEmBus. Steam,
Proton, SDL2, RetroArch and native games see an Xbox 360 pad (or a DualShock 4
with --pad ds4), including force-feedback rumble.
One command sets up everything (Arch, Debian/Ubuntu, Fedora, openSUSE, Void and Alpine are detected automatically):
sudo sh pc/linux/install-linux.sh
# log out and back in only if the script says the input group is not active yet
It installs the distribution packages (X11 libraries for the panel, a Wayland
capture helper and Rust build tools when Cargo is missing), loads the uinput
module, installs the udev rule, adds your user to the input group, opens UDP
9876, TCP 9877 and TCP 9878 when ufw or firewalld is active, and adds a
lemoGamePad ultimate entry to the application menu. In a source checkout it
also creates pc/.venv for optional Python test scripts; release installs skip
that step. It is safe to rerun, and pc/linux/install-uinput.sh still works as
an alias for older instructions.
Then start the desktop panel or the console receiver:
pc/gui.sh # desktop control panel
pc/linux/run.sh # console receiver
pc/gui.sh builds and starts the native Rust panel on first use;
pc/linux/run.sh starts the native receiver directly. You can also run them
yourself:
rust/target/release/lemoGamePad-app --manual-start # open without starting
rust/target/release/lemoGamePad-server
install-linux.sh --dry-run shows what it would do. Use --no-packages,
--no-venv, --no-uinput, --no-firewall or --no-shortcut to skip a part.
The banner shows uinput : OK (virtual gamepad via /dev/uinput) when the pad is
ready. The server never runs sudo or pip-installs behind your back while it is
running on Linux; if something is missing it prints the exact command.
./pc/build_linux.sh builds both native binaries with Cargo into dist/.
Linux notes:
- Screen preview works on X11 and on Wayland. The native Rust server uses
importorscroton X11. A native Wayland session does not let programs read the screen directly, so the server asks a screenshot tool for each frame and uses the first one that works:grim(Sway, Hyprland, wlroots, COSMIC),spectacle(KDE Plasma) orgnome-screenshot(GNOME, best effort).install-linux.shinstalls one for the current session (grimon wlroots/Hyprland/Sway,spectacleon KDE,gnome-screenshoton GNOME); you can also install one yourself withsudo apt install grim.spectacleandgnome-screenshotstart a process per frame, so expect a lower frame rate thangrimor X11. SetLEMO_CAPTURE=grim|spectacle|gnome-screenshotto force a Wayland backend. On a headless machine the server still works as a gamepad and prints why capture is unavailable. install-linux.shopens UDP9876and TCP9877(screen stream) plus TCP9878(browser pad) whenufworfirewalldis active. Other firewall setups are left alone; if phones cannot reach the PC, allow those three ports yourself.- Rumble uses the standard evdev force-feedback API, so games that rumble through SDL work without per-game configuration.