https://www.androidfilehost.com/?fid=24052804347829481 is the link for Omni 5.1
It just happens on Marshmallow custom ROMs, on Lollipop it doesn't happens, so i can assume it's a bug
Edit:I Think i discovered what cause it, i disabled Ambient Display and i started sleeping, and it didn't happen.