Beckham's two-run homer to left-center field in the third inning against the Giants at U.S. Cellular Field sparked an eight-run outburst over three innings, more than the Sox had scored in their previous four games combined.
The surge was enough to help the Sox break a four-game losing streak with an 8-2 victory over the Giants in the opener of the two-game series. The Sox weren't exactly panicking about a downward spiral, but afterward Beckham conceded they needed such a victory.
"It was nice to break out against a good team," Beckham said. "We felt like we didn't have great at-bats over the weekend and gave away some outs, so we just wanted to make sure we saw a few more pitches. When we got a chance to make it hurt, (we made) it hurt."
Sox left-hander John Danks turned in yet another solid performance for his third straight victory. He threw 6 1/3 innings, allowing five hits and two runs — one earned — while walking three and striking out four. He brought his ERA over his last five starts down to 1.51.
"I'm just confident now," Danks said. "You get on a nice little run, it's a lot more fun. Certainly the adjustments we've made have helped and guys scoring runs have helped. I'm just going continue to ride it."
The Giants jumped to an early lead against Danks when outfielder Hunter Pence homered in the first inning. The Giants extended their lead to 2-0 in the third inning but that was all the damage they could do.
Danks said he has reached a point where he doesn't think about his 2012 shoulder surgery.
"It has been a long, frustrating road to get back to here, and certainly there's plenty to be worked on," Danks said. "But yeah, there were some days you had to fight doubt from creeping in. I think I'm beyond that."
Sox center fielder Adam Eaton had a two-out single in the third before Beckham hit his fifth homer of the season on a full count to tie the game.
After singles from Jose Abreu, Alexei Ramirez and Viciedo loaded the bases in the fourth, Tyler Flowers worked to a full count against Cain and then walked to push the Sox ahead 3-2. Eaton hit an RBI infield single to Giants shortstop Brandon Crawford, who overthrew first while rushing to catch Eaton and that allowed a second run to score.
Conor Gillaspie came up with his second hit against his former team in the fifth. He advanced on a wild pitch and scored on Adam Dunn's RBI single. Viciedo then hit his homer to left field to push the Sox ahead 8-2.