I discovered the cause of the problem. For some reason my dongle does not start with the system.
As I discovered this:
1 - I parsed the controls, everything working here;
2 - The system has been restarted, the controls do not work after that.
3 - Entering by SSH and typing bluetoothctl and power on the controls come back to work.
I'm not a big connoisseur of these systems, I thought I'd make a simple script and put the power on command every time the system started.
Is there another way for me to do this?
My system: Rpi 3
Controllers PS3 with dongle