PS2 controller turns off after not using it in a while


I am using a PS2 controller in my mobile robot project. The fact is that it works autonomosly so that you do not need to use the command at all times, the problem is when, after working a while autonomosly and you want to change the mode t[left][center][right][pre][/right][/center][/left][/pre]o manual you will find that the command has been shut down and all Arduino must be restarted to connect again.

Does anyone know any way to prevent this from happening?