John Russel Houser had a history of increasingly disturbing behavior, according to accounts by family, friends and law enforcement.
Police named Houser as the gunman in Thursday night's shooting at a movie theater in Lafayette, Louisiana.
Ed Hostilo, a friend of Houser's, says he saw his friend starting to change about ten years ago.
Houser "perpetrated various acts of family violence" and "has a history of mental health issues, i.e., manic depression and/or bi-polar disorder," the filing said.
According to the documents, Houser's wife, Kellie Maddox Houser, "has become so worried about the defendant's volatile mental state that she has removed all guns and/or weapons from their marital residence."
The protection order was at least temporarily granted, and Houser's wife filed for divorce in March.
The site notes that the phone number in one of the comments posted by "Rusty Houser" is the same as the one listed on Houser's LinkedIn profile, which has since been disabled.
"America is so sick that I now believe it to be the enemy of the world," the commenter wrote. "I know next to nothing about Iran, but the little I do know tells me they are far higher morally than this financially failing filth farm."
Responding to a fellow commenter, "Rusty Houser" continued, "It is possible, you might be the only one on the [I]nternet that has gotten through the censors.Though you probably are no less than a government information gathering devise, I will tell you how happy I am that the yield on the 10 year tres note is almost 3%. The end comes, and I love it."
Houser's criminal record from the Phenix City Police Department, obtained by local news station WRBL, includes arrests for domestic violence and theft.
Phenix City Police Chief Ray Smith said Houser "was known" to his department, according to a tweet from the New Orleans Advocate's Jim Mustian:
The Associated Press contributed reporting.
How to vote
Vote-by-mail ballot request deadline: Varies by state
For the Nov 3 election: States are making it easier for citizens to vote absentee by mail this year due to the coronavirus. Each state has its own rules for mail-in absentee voting. Visit your state election office website to find out if you can vote by mail.Get more informationTrack ballot status
In-person early voting dates: Varies by state
Sometimes circumstances make it hard or impossible for you to vote on Election Day. But your state may let you vote during a designated early voting period. You don't need an excuse to vote early. Visit your state election office website to find out whether they offer early voting.My Election Office
General Election: Nov 3, 2020
Polling hours on Election Day: Varies by state/localityMy Polling Place