Gamepad not recognized when turned on after starting games

EndeavourOS (Arch Linux) user here.

Is this just me? Everything works perfectly, but if the controller turns off and on again while a game is running, it's no longer recognized, and this forces me to restart the game.

I don't know how useful it is but I tried to join the input group, nothing changed.