MLX phones version A/B/C will all have this problem
and you have to replace the Flex Circuit inside.
For example,
MLX-10D is part # 7712D02(X)-YYY where (X) is the version (A,B,C,D,F,G), and YYY is color (003-black, 264-white)
7712D02D's do not have the known problem of going to sleep, but buttons and LED's may still go bad because they also have Flex Circuits, but a better kind.
Phones with version "F" and "G" such as 7712D04F (MLX10DP) are the newest versions and do not have Flex Circuits in them, so do not have that problem