Controller autostart Steam#
Autostart Steam when my controller is plugged.
Set power profile to performance and go back to power-saving when Steam is closed.
Installing#
Copy ,controller-add and ,start-steam in $HOME/.local/bin.
Copy 99-controller-autostart-steam.rules in /etc/udev/rules.d/ and change:
anhgelusby your UNIX username0e6fby the vendor ID of your controller (displayed bylsusb)0413by the product ID of your controller (displayed bylsusb)
See below if you don't know how to get these IDs.
Copy controller-steam.service in $HOME/.config/systemd/user/ and change:
anhgelusby your UNIX username
Copy controller-autostart-steam.env in $HOME/.config.
Reload udev rules:
sudo udevadm control --reload-rules && sudo udevadm trigger
Reload systemd:
systemctl --user daemon-reload
You can modify the location of the lockfile by editing lockfile variable in
$HOME/.config/controller-autostart-steam.env.
You can modify the power profile by editing in the same file:
perf_insidevariable when Steam is launchedperf_outsidevariable when Steam is closed
How to get required IDs of your controller?#
Plug your controller and run:
lsusb
It will list hardwares connected to your computer via a USB port.
My controller is this one:
Bus 003 Device 011: ID 0e6f:0413 Logic3 Afterglow AX.1 Gamepad for Xbox 360
Its identifier is 0e6f:0413, where 0e6f is its vendor ID and 0413 is its product ID.