Scott Olson/Getty Images

R. Kelly got his wish to be moved from solitary confinement to general population in an Illinois federal lockup.

The troubled singer/songwriter was arrested on July 11 and charged with child sex abuse, child p0rnography and obstruction of justice.

U.S. District Judge Harry Leinenweber granted Kelly’s lawyer’s request to move Kelly to general population at a federal jail.

Kelly had complained that he was bored and unfairly being held in solitary confinement.

But jail officials argued that Kelly previously refused to move to general population. They also noted that he had a cellmate for several weeks after initially refusing a cellmate.

Kelly’s attorneys are still asking a judge to reconsider a ruling that he be held without bail until his trial next year.

Kelly’s former live-in girlfriends Azriel Clary, 21, and Joycelyn Savage, 23, are raising funds to hire high-powered attorney Tom Mesereau, who successfully defended Michael Jackson.

Kelly’s current attorneys want him moved to a “secure facility” with Clary and Savage as his roommates.

His trial is scheduled for April 2020.