Ice user hadn't slept for days before he bashed policeman after home invasion