Alameda County DUI offenders will have to drive sober or not at all, as a state law signed Sunday by Gov. Arnold Schwarzenegger requires that blood-alcohol breath testers be installed in their vehicles.

Assembly Bill 91 by Assemblyman Mike Feuer, D-Los Angeles, creates a five-and-a-half year Department of Motor Vehicles pilot project starting in July in Alameda, Los Angeles, Sacramento and Tulare counties. Convicted drunken drivers will be required to pay fees set by the DMV to cover installation — which can cost as much as $200 — and maintenance of the ignition interlock devices, which won’t let a vehicle start unless the driver blows into the device’s tube and has a blood-alcohol content of less than .08 percent.

First-time offenders would have to use the device for five months, or one year if the DUI caused an injury; second-time offenders for one year, or two years for a DUI with injury; third-time offenders for two years, or three years for a DUI with injury; and fourth- or subsequent-time offenders for three years, or four years for a DUI with injury.

A legislative analysis of the bill said it will cost about $300,000 to start the program, plus annual costs of $500,000 to $800,000, but the bill specifies that if nonstate money — such as anti-drunken-driving funds from the National Highway Traffic Safety Administration — isn’t found to pay these costs, the program won’t be launched.

The bill requires the DMV to study results in the four counties and report to the Legislature on the program’s effectiveness by the start of 2015. Other states already requiring these devices for first-time DUI offenders include West Virginia, Washington, Virginia, New Mexico, Illinois, Colorado and Alaska. Several have reported sharp drops in alcohol-related traffic deaths and repeat DUI offenses.

Feuer’s office said the four counties were chosen to represent diverse areas of the state — north and south, urban and rural — but also for having significant DUI troubles.

The American Beverage Institute, a restaurant trade association that says it represents more than 700 California restaurants, had opposed the bill, saying both that the state’s focus should be on serial DUI offenders, not first-timers, and that the program would cost more to run than the legislative analysis predicted.

Otto Warmbier was arrested in January 2016 at the end of a brief tourist visit to North Korea. He had been medically evacuated and was being treated at the University of Cincinnati Medical Center when he died at age 22.