Chris Brown appears in court for a probation violation hearing in Los Angeles Superior Court on May 1, 2014 in Los Angeles, California

Chris Brown appears in court for a probation violation hearing in Los Angeles Superior Court on May 1, 2014 in Los Angeles, California

*Chris Brown must stay locked up in the Los Angeles County jail for at least another week while his lawyer negotiates with the prosecutor about his probation violation, a judge said Thursday.

Brown’s probation for the 2009 beating of ex-girlfriend Rihanna was revoked after his arrest in Washington for alleged assault. He’s spent the past six weeks in custody and previous five months in court-ordered rehab.

Dressed in an orange jail suit, Brown attended a hearing Thursday just hours after his near week-long, “Con Air” cross-country trip from Washington landed in Los Angeles.

“He’s doing remarkably well under the circumstances,” Brown’s lawyer Mark Geragos told CNN. “It’s a challenging situation to be in.”

Chris Brown LA court -2

Chris Brown (C) appears in court for a probation violation hearing with his attorney Mark Geragos (R) in Los Angeles Superior Court on May 1, 2014 in Los Angeles, California

According to TMZ, Brown looked defeated as the judge ruled he will remain in jail — at least until the next hearing May 9. Geragos and Assistant District Attorney Mary Murray agreed to hold talks over the next week concerning Brown possibly admitting that he violated his probation. If that happens, it will be announced at the May 9th hearing. Otherwise, the judge will set a date for a trial on his probation revocation.

“I’m hoping we get it resolved and we get it resolved quickly,” Geragos said after the hearing.

Geragos said he would also file a motion to have Brown released from jail, which would be considered at the May 9 hearing.

The singer has been locked up since March 14, when the judge threw him in jail after getting kicked out of rehab for the second time. He faces the prospect of going to prison for up to four years if the judge decides the singer violated his probation.

U.S. Marshals, who took Brown from the Los Angeles County jail for extradition to Washington four weeks ago, handed him back to Los Angeles Sheriff’s deputies just hours before Thursday’s hearing, according to Deputy U.S. Marshal Laura Vegas.

The prosecutor said last week that she would “strenuously object” to Brown being released because it appears likely he will be found guilty of the assault charge in Washington. Assistant District Attorney Mary Murray argued the only change since Brown was jailed in March is that his case has “gotten worse.” The Washington judge who found his bodyguard guilty in the assault case also concluded that Brown was “the initial aggressor” in the incident, Murray said.

Chris Brown LA court -3

A Los Angeles judge refused a request last week to free the singer from custody so he could make his own way back from Washington.

He and bodyguard Christopher Hollosy were arrested on assault charges in Washington for allegedly beating a man who tried to take a photo of Brown last October. The arrest led to a revocation of Brown’s probation, but he was allowed to enter a rehab program instead of going to jail. He was ordered to jail last month when he was kicked out of the rehab program for rules violations.

“I think it’s a little over the top to have him in custody on this misdemeanor when everybody saw the bodyguard’s trial and which was nothing more than a bloody nose,” Brown lawyer Mark Geragos told reporters in Washington last week. “And you have got the bodyguard who was convicted and who readily admitted he was the one who did the punching. So all of this is much ado about nothing.”

The delay in Brown’s Washington trial came after prosecutors refused to grant immunity to Hollosy so he could testify without jeopardizing his own case. On Monday, Hollosy was found guilty of assaulting a man on a Washington sidewalk before Brown’s trial was to begin in the case.

The prosecutors cited Hollosy’s refusal to talk to them about his testimony as a major reason for the decision not to grant immunity. Their motion also said they suspected he might lie in his testimony to help Brown.