I have no trouble with Logitech controllers, but when I use an Xbox controller on a GnuLinux distro, I always need to install the xboxdrv package.
Remember, Xbox is a Microsoft product.
It is in the repos, so you only need
which offers all the configurations and commands you can issue it, but you do not need to sweat it; The vast majority of the time, you can just plug n' play without doing anything else.