Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
# Headless gamepad launcher for Microban (opt-in).
#
# Reference unit for the default image (user "user", repo at /home/user/microban).
# `make gamepad-headless-enable` installs a copy generated from the robot's real
# $HOME/$USER, so this still works if you renamed the account. Enable manually with:
# sudo cp systemd/microban-gamepad.service /etc/systemd/system/
# sudo systemctl enable --now microban-gamepad
[Unit]
Description=Microban headless gamepad launcher
After=bluetooth.target
[Service]
Type=simple
User=user
WorkingDirectory=/home/user/microban
Environment=PYTHONPATH=/home/user/microban/src
ExecStart=/home/user/microban/.venv/bin/python -u src/gamepad_daemon.py
Restart=on-failure
RestartSec=2
# Safety: never leave Wi-Fi blocked if the service is stopped mid-session.
ExecStopPost=/usr/bin/sudo /usr/sbin/rfkill unblock wifi
[Install]
WantedBy=multi-user.target
1b4a396feThis file is pinned to the selected release. Download the original to open it in your design tool.