I am using a wired x box 360 afterglow controller. I plugged it in and installed xboxdrv. On the joystick pane all the buttons are mapped properly but when I load a game on steam several of the buttons don't work and the ones that do work are not mapped to what they actually are (right trigger is the start button etc..) i went into the steam controller setting and remapped everything there to the proper place. When I load up a game afterwards its the same thing. I am using ubuntu 14.04 and cannot seem to come up with a solution.
Please, try the package
ubuntu-xboxdrv from this PPA:
sudo apt-add-repository ppa:rael-gc/ubuntu-xboxdrv sudo apt-get update sudo apt-get install ubuntu-xboxdrv
This package provides additional configurations over the stock
xboxdrv, creating a service for it and a "Joysticks" entry on System Panel.
The shoulder buttons are mapped as buttons (not triggers), but you can see how to change some configurations in the package repo.