US President Barack Obama speaks during the Asian Pacific American Institute for Congressional Studies (APAICS) 18th Annual Gala Dinner in Washington on May 8, 2012. (SAUL LOEB/AFP/GettyImages)

CHARLESTON, W.Va. — Just how unpopular is President Barack Obama in some parts of the country? Enough that a man in prison in Texas is getting 4 out of 10 votes in West Virginia's Democratic presidential primary.

The inmate, Keith Judd, is serving time at the Beaumont Federal Correctional Institution in Texas for making threats at the University of New Mexico in 1999. With 83 percent of precincts reporting, Obama was receiving 60 percent of the vote to Judd's 40 percent.

For some West Virginia Democrats, simply running against Obama is enough to get Judd votes.

"I voted against Obama," said Ronnie Brown, a 43-year-old electrician from Cross Lanes who called himself a conservative Democrat. "I don't like him. He didn't carry the state before and I'm not going to let him carry it again."

When asked which presidential candidate he voted for, Brown said, "That guy out of Texas."

Judd was able to get on the state ballot by paying a $2,500 fee and filing a form known as a notarized certification of announcement, said Jake Glance, a spokesman for the Secretary of State's office.

Attracting at least 15 percent of the vote would normally qualify a candidate for a delegate to the Democratic National Convention. But state Democratic Party Executive Director Derek Scarbro said no one has filed to be a delegate for Judd. The state party also believes that Judd has failed to file paperwork required of presidential candidates, but officials continue to research the matter, Scarbro said.

Voters in other conservative states showed their displeasure with Obama in Democratic primaries last March.

In Oklahoma, anti-abortion protestor Randall Terry got 18 percent of the primary vote. A lawyer from Tennessee, John Wolfe, pulled nearly 18,000 votes in the Louisiana primary. In Alabama, 18 percent of Democratic voters chose "uncommitted" in the primary rather than vote for Obama.

Obama's energy policies and the Environmental Protection Agency's handling of mining-related permits have incurred the wrath of West Virginia's coal industry. With the state the nation's second-biggest producer of this fossil fuel, Gov. Earl Ray Tomblin and Sen. Joe Manchin _both Democrats have championed the industry – have declined to say whether they will support Obama in November.

Hillary Rodham Clinton beat Obama handily in the state's 2008 primary, and he lost the state to Republican John McCain in the general election. Polls show some of his worst approval ratings in West Virginia.

Brown, the Cross Lanes electrician, went to the polls Tuesday with his 22-year-old daughter, Emily. She planned to vote for Judd too until she found out where Judd has been living.

"I'm not voting for somebody who's in prison," she said.

She was certain about one thing: "I just want to vote against Barack Obama."