Game controllers no longer working

One of my uses for Fedora is as my gaming PC, and for the most part, it works fantastic. Earlier today, I ran sudo dnf autoremove, and also removed a couple preinstalled apps, such as Boxes. I wish I could remember what packages were removed, but I can’t. I know there were probably 30-40. Regardless, ever since then, Fedora no longer recognizes any of my game controllers. I usually play wired, and each controller when plugged in will charge, but the computer doesn’t recognize them, and the controllers no longer turn on. When I connect them via Bluetooth, the system will connect to them, but like the wired controllers, won’t recognize them as controllers, and they remain effectively useless. It’s as though the game controller portion of the kernel was completely wiped off of my machine, yet each kernel I try has the same problem. Does anybody know what could possibly have happened? Oddly enough, this is the second time this has happened to me in the last month or so, and I don’t want to have to resort to wiping my install again just to get controllers working if I don’t have to. Considering this seems likely to be a recurring issue, having a solution that isn’t the nuclear option would be ideal, and any help would be immensely appreciated.

System Information

  • Fedora Version: 40
  • Kernel: 6.10.4-200
  • CPU: AMD Ryzen 7 7800X3D
  • GPU: AMD Radeon RX 7800 XT
  • Motherboard: MSI MAG X670E Tomahawk

I figured it out. I created a live USB installation, and tested the controllers there. They worked, as expected. I then ran sudo dnf list installed to get a list of all the installed packages, then booted in my system and did the same. I then compared the two files to see what packages were missing from my system. Turns out that kernel-modules-extra was deleted for some reason. Reinstalling that package fixed my issues.

2 Likes

Added game-controllers, gaming, input-method, kernel-modules and removed amd, radeon

When you use the autoremove command it should show you a list of packages to be removed. At the very least you should always verify what is being removed before actually continuing.

I don’t use that since I have seen it try to remove necessary packages at times.

If it wants to remove packages that you feel should be kept you can use the command
dnf mark install <package> to mark those (one or more) packages as user installed so autoremove will no longer try to remove it.

You can still examine what has been removed:

dnf history | less

Take note of the ID of the autoremove command, then:

dnf history info $ID

Now either reinstall the package(s), if it’s obvious which or attempt to
undo the entire transaction:

dnf history undo $ID

This may or may not work depending on the current state of the RPM database.

Terminal <> sudo dnf install kernel-modules-extra :tux:

I think it’s possible that essential packages related to game controller support were removed during the autoremove process.

I recommend running dnf history to see the list of recently removed packages. Look for any packages related to joystick or game controller support. This is what happened to mine, and it was really frustrating because I couldn’t use my game controller to play.

I’m also currently experiencing this issue, I’ll check dnf history to see which packages were removed. It’s really frustrating not having my game controller working. In the meantime, I found https://bhaggo.app/casino, which is a fun way to stay connected to gaming even when I can’t play with my controller.

Interesting, haven’t heard of that before but it’s amazing how technology is evolving. I also just read about AI improvements in identifying digital content to prevent accidental removal of important files. You can read more about it here চীন 'এআই লেবেল' ওয়াটারমার্ক বাস্তবায়নের পরিকল্পনা করেছে | MobileBD. I hope this will help any technology issues we experience.