A 24-year-old man who had drunk two bottles of Southern Comfort and some brandy fell asleep in another man's house after locking the home owner out, a court heard.
Blackburn magistrates heard that Michael Anthony Jackson lashed out at police officers who came to the house and woke him up.
But while he missed, the officers landed several blows using "home office approved techniques" of "pain compliance".
Jackson, of Accrington Road, Blackburn, pleaded guilty to racially aggravated threatening behaviour and resisting a police officer. He was committed in custody to Preston Crown Court for sentence.
Emma Keogh, prosecuting, said the owner of the house in Skye Crescent rang the police and said a man and a woman had got into his house and locked him out.
When the police let themselves into the house they found Jackson and a female asleep on the settee. They tried to wake him and eventually he jumped up and lashed out at one officer and then tried to head butt him. He shouted racist abuse at one of the officers and tried to spit on him.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules hereComments are closed on this article