Contra Costa County Superior Court Judge Leslie Landau found that Benjamin Packer, 20, was not capable of assisting or cooperating with his attorney and was unable to make decisions about his own medication.
His attorney Robin Lipetzky said that if Packer went untreated he could suffer serious injury to his physical and mental health.
Pursuant to a doctor's recommendation, Landau ordered that Packer be sent to Napa State Hospital and be forced to take anti-psychotic medication.
Packer's parents had been talking to him inside their home in the 1200 block of Ironwood Drive on the evening of May 8 when he allegedly attacked them with a knife, Brentwood police Sgt. Mark Misquez said.
Packer allegedly cut his mother on her forearm before she was able to escape. She locked herself and her 8-year-old daughter in a bedroom and called 911, Misquez said.
Police reported receiving the call at about at about 10:35 p.m.
When officers arrived, they found Packer sitting in the driveway of his home, police said.
Inside the home, officers found Packer's father, 42-year-old Dennis Packer, suffering from multiple stab wounds. He was taken to Sutter Delta Medical Center in Antioch, where he later died from his injuries, according to police.
Packer's mother was treated at a local hospital and then released. The 8-year-old girl was unharmed in the attack, police said.
Packer has been charged with murder and attempted murder along with enhancements for allegedly using a knife in the attack and causing great bodily injury to his mother.