REDWOOD CITY (CBS/AP) — A man has been sentenced to 12 years to life behind bars for beating and trying to rape a student in a Redwood City motel room.

47-year-old Maurice Banks must serve 85 percent of the 12-year sentence before he can be considered for parole.

He was convicted in August.

In June a judge concluded Banks was exaggerating symptoms of mental illness and ordered the trial to proceed. Prosecutors contended Banks was faking when he said he was hearing voices and seeing hallucinations.

Banks was accused of punching the woman so hard her eye sockets cracked, then strangling her until she passed out.

The woman had rented the Redwood City motel room to have a quiet place to study.

(Copyright 2013 by CBS San Francisco and Bay City News Service. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)