A lawyer of film director Peter Rodger says the family called police several weeks ago after being alarmed by YouTube videos posted by his son "regarding suicide and the killing of people".
The attorney said police had conducted an investigation and interviewed the man. Police said the man appeared to have trouble making friends but did not find a history of guns.
Police have not formally named the suspect, who died following the attack.
More top news
The Pentagon sent a group of military planes just off the state's coast in a show of force.
Iran says it has successfully tested a new medium-range missile, bringing condemnation from Foreign Secretary Boris Johnson..
At least 305 people are now confirmed to have died in the huge tremor, while searches continue for survivors trapped in rubble.