Two men who viciously beat and robbed a friend after accusing him of possessing child pornography will spend their weekends in jail for the next year.

Matthew James Hood pleaded guilty in the ACT Supreme Court to aggravated robbery and property damage and was ordered to serve one year of periodic detention.

Co-offender Matthew James Burge, who also faced four charges of burglary and theft from separate incidents, pleaded guilty and was slapped with one year of periodic detention.

In February, Hood, 20, and Burge, 21, went to the man's Calwell home after drinking at a nearby club.

The court heard the trio watched television and smoked cigarettes before discussing pornography.

The complainant, a 54-year-old man, mentioned he had recently downloaded some pornography and invited the pair to view it on his laptop.

Burge did so and began accusing the older man of having images of underage girls on the computer.

A subsequent police check of the injured man's laptop computer revealed no images appearing to be child pornography.

The pair then proceeded to attack the other man, kicking him repeatedly in the head and chest.

Burge and Hood took the man's wallet, which contained a bankcard and a $100 Coles gift card, and demanding he tell them his PIN.

When he refused they discussed getting a knife or a pair of scissors from the kitchen and stabbing him until he told them the number.

The court heard they proceeded to smash a stereo system, stab scissors into a wall and ransack the house.

The victim required surgery for a fractured eye socket and lacerated spleen.

The court heard Burge, an apprentice butcher, estimated he had drunk 36-standards drinks that day and had little memory of the attack.

Justice Hilary Penfold sentenced Burge to a three-year jail term, backdated to take into account 27 days already spent in custody, to be served as one-year of periodic detention and then as a suspended sentence.

Hood was given two years and nine months, backdated to take into accounts 21 days already spent in custody, to be served as one-year of periodic detention and then as a suspended sentence.

Both men were ordered to sign a three year good behaviour order and pay a $500 security.

The weekend detention begins this weekend.