His job is to sit/stand at the door that leads to the courtroom, makes sure people are properly dressed, calls out names out in the hall when defendants or witnesses are called and keeps order in the court room act right. While there are other deputies in the room, one of their responsibilities is to make sure people don't sleep in court.