@mitu By saying that I use Archlinux, it was to say that I understand how it works. In the end I found the "xpad driver" bug. I could already see myself doing a new installation.
The only thing that doesn't work for me is when I run .sh to run retroarch, generate favorites ... from ssh yes. But it is a lesser evil that will have a solution.
My next system with retropie will already be a minipc with ryzen. That although I have all the consoles, I love to emulate.