Los Angeles, California (CNN) -- A Los Angeles County Superior Court judge outlined new bail conditions for Lindsay Lohan at a hearing Monday, including a bracelet to detect alcohol, a ban on drinking and random weekly drug testing.
Lohan walked into the Beverly Hills courtroom 11 minutes late Monday morning to find a stern-faced Judge Marsha Revel counting the minutes.
She left the courthouse more than two hours later wearing a SCRAM (Secure Continuous Remote Alcohol Monitoring) ankle bracelet and with an appointment to visit her probation officer Thursday.
The judge's mood was a sharp contrast to her joking with reporters in October as she waited two hours for the 23-year-old actress to show up for a hearing.
Revel delayed a planned vacation so she could preside over Monday's hearing, made necessary by Lohan's failure to appear as ordered Thursday.
Lohan's face showed visible stress after Revel ordered her to stay in the Los Angeles area until a probation revocation hearing on July 6 so she can submit to random drug tests.
Random drug testing was ordered because of previous evidence that Lohan was under the influence of cocaine, Revel said last week.
When defense lawyer Shawn Chapman Holley said the SCRAM ankle bracelet and drug tests would interfere with a movie shoot Lohan has in Texas next month, Revel said that work must be delayed.
"It's going to be drug testing here," meaning in California, Revel said.
The SCRAM bracelet samples perspiration on the skin every half-hour to detect if the wearer has ingested any alcohol, according to an online fact sheet posted by its maker, Alcohol Monitoring Systems Inc. The bracelet collects and transfers data to a modem.
Lohan must also attend all of her weekly alcohol classes, unless the class interferes with her random drug tests, Revel said.
Revel said Lohan had the option of challenging the conditions, but after conferring with her client, Holley said she would accept them.
It was Lohan's alleged failure to attend those classes, ordered after a 2007 drunken driving conviction, that landed her back in court this month.
Holley told Revel that Lohan missed her alcohol counseling session last week because her uncle died.
"Did she go to the funeral?" Revel asked.
"She did not," Holley answered.
Lohan's failure to show up for court as ordered Thursday to determine whether she had been attending weekly alcohol counseling sessions prompted the judge then to rule that there was "probable cause to believe [Lohan] is in violation of probation."
Holley told the judge that Lohan was unable to catch a flight from France two days earlier because she lost her passport at the Cannes Film Festival.
On Monday, Prosecutor Danette Meyers asked for proof that Lohan had a ticket to fly back to the United States in time for last week's hearing. Holley said she has the proof and would show it to the court.
During last week's hearing, the judge revoked Lohan's probation, issued an arrest warrant and imposed the new conditions.
"I warned her before," Revel said. "She knew it was very serious."
Lohan was not arrested when she finally arrived in Los Angeles from France Saturday because her $100,000 bond had already been posted.
Lohan traveled to France last week to promote her newest movie role as 1970s porn star Linda Lovelace.
She was arrested twice in 2007 on charges of driving under the influence and in the second incident also was charged with cocaine possession.
The first arrest came after Lohan lost control of her Mercedes-Benz convertible and struck a curb in Beverly Hills.
Just two weeks after checking out of a Malibu drug and alcohol rehab facility, she was arrested again in July 2007 after a woman called Santa Monica police, saying Lohan was trying to run her down with a car.