Here is the link for being able to get the guid and id. Only do whats in the reply post marked as 2   https://askubuntu.com/questions/366994/how-to-identify-game-controller-for-sdl2-in-ubuntu   Then this is what you type in terminal to get the info when you have your joystick plugged in: ./sdl2-joystick