Three inmates banged on the doors of their cells to wake the officer after they saw him hit his head.