New South Wales Labor MP David Campbell will return to active duty at State Parliament after being appointed as acting speaker of the Lower House.

The Member for Keira resigned from the roads and transport portfolios three weeks ago after he was filmed leaving a gay sex club in Sydney.

Mr Campbell's outing sparked a debate about whether an MP's private life should be made public.

Independent MP Richard Torbay, who is the speaker for the Legislative Assembly, appointed Mr Campbell to the new role.

He says the MP's history as a minister and parliamentarian will stand him in good stead.

David Campbell says even though his focus remains on representing his electorate, he is looking forward to the new challenge.

"I'll be in parliament as the member for Keira for the overwhelming majority of the time," he said.

"But I'll also take the opportunity to serve as an acting speaker and I look forward to that challenge."

Mr Campbell will take the chair later this month.