SAN FRANCISCO -- James Loney can appear awkward at the plate at times. When he gets behind in the count, he often looks a lot better.
"Loney is one of those hitters you just have to shake your head," Dodgers' manager Joe Torre said. "He has an at-bat where he looks overmatched and all of a sudden he fires a double down the line."
Loney's first-inning double came on an 0-2 pitch and his fifth-inning double was on a 1-2 delivery.
"Sometimes I look like that," Loney said. "With two strikes on me I'm just looking to put it in play. For some reason two strikes increases my focus. I don't remember where the pitches were, I just react."
Andre Ethier added three hits and drove in a run for the Dodgers, who have won eight of their past 10 road games. Matt Kemp also drove in a run.
"We're getting runners on base and Andre and Loney are doing a great job of driving in a lot of runs," Kemp said. "I'm just trying to get on base for them."
Rich Aurilia had two hits, including a home run for his 1,500th career hit. Fred Lewis and Emmanuel Burriss each added two hits and Bengie Molina drove in a run for the Giants, who finished 3-4 on their homestand. They haven't had a winning homestand since a 6-3 effort last Aug. 21-29.
Ray Durham drove in a run in the ninth.
"We had opportunities early and we couldn't cash in," Giants' manager Bruce Bochy said. "We didn't play well in any facet of the game: defense, we made a mistake on the bases and we had trouble getting runs in."
Kemp and Ethier each drove in runs in the third to put the Dodgers ahead 3-1 and Loney's two-run double in the fifth gave the Dodgers a 5-2 edge.
Dodgers starter Eric Stults couldn't get out of the fifth inning. He lasted four-plus innings, allowing two runs -- one earned -- and seven hits.
"I was battling myself today," Stults said. "I wasn't as sharp but we got the win and that's all that counts."
After giving up hits to Durham and Randy Winn to open the fifth, Stults was replaced by Brian Falkenborg, who retired all three batters he faced. Falkenborg (1-1) was credited with the win, a day after taking the loss in a Giants' comeback victory.
"I left it on the field and got some sleep last night," Falkenborg said. "I'm just happy to be out there and contributing to a win. At first it was just minimizing the damage and after the first two outs I changed my focus to getting out with no damage. Fortunately I made good pitches."
Takashi Saito allowed hits to the first two batters in the ninth, but came back to record his 16th save in 19 chances.
Giants starter Matt Cain (5-7) still hasn't beaten the Dodgers in seven starts. The right-hander gave up five runs and eight hits in six innings. He walked three and struck out five to fall to 0-4 against Los Angeles, the only NL West team he has yet to beat.
"It's always frustrating when all the little things go wrong," Cain said. "I have a lot better stuff than I showed today."