Score:0

Xubuntu Studio - Is there a console command I can use to reset all gamepads?

us flag

This is an Ubuntu Studio PC with Xfce desktop, being used as a gaming emulator.

The gamepads are:- 2 x Xbox One controllers (over USB not bluetooth) 3 x Dualshock4 controllers (over USB not bluetooth)

I'm happy with the udev rules and other settings as they are at boot. Most Linux games with full controller support will work correctly with up to 4 players, and Steam and most of the emulators can find a couple of the joypads most of the time.

But often I find that they don't restore the original settings, and I have to reboot. It would be nice if I could
run a console command to restart just the gamepads, or force all the js# devices to be re-detected.

The gamepads also tend to mess up if they are unplugged and replugged. Redetecting them potentially at a different USB port would be useful too.

The installed emulators (etc) include:-

  • Steam (Linux) > Proton, Wine
  • Steam (wine32)
  • Steam (wine64)
  • PlayOnLinux > Proton, Wine
  • Lutris > Proton, Wine
  • Heroic > Proton, Wine (>Dosbox), Lutris
  • MAME
  • Hatari
  • Dolphin
  • RPCS3
  • PCSX2
  • RetroArch > various cores
  • RetroVM
  • Beebem
  • Dosbox

I think that probably a lot of the time, I could configure these apps better, but if I'm using them for literally 1 or 2 games I find it's easier to let them do whatever and reboot the PC afterwards. A console command that would let me reset all the controllers would be something I'd find hugely helpful.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.