SAN FRANCISCO (AP) -- Tim Lincecum is having his share of trouble against Colorado's dangerous lineup. When he misses, the Rockies capitalize.
That was the case again Friday night in a 5-0 loss for Lincecum and the San Francisco Giants, who had a nine-game home winning streak snapped in the rivalry and lost their fourth in a row to the Rockies overall.
Lincecum (3-4) struck out eight and walked two over seven innings in his second consecutive start against Colorado and third in all this year. The right-hander allowed four runs and seven hits after taking the loss against the Rockies at Coors Field last Saturday.
He has defeats in four of his past five decisions. The right-hander surrendered 16 earned runs in his past 18 innings against the Rockies this season for an 8.00 ERA.
"I just have to stop making mistakes up in the zone against them," he said. "If I miss with my spots they have to be down or away. But things are right in the middle of the plate, hanging sliders, fastballs that aren't supposed to be where they are."
Michael Cuddyer hit a couple of those. He homered and hit a two-run double after being activated from the disabled list earlier in the day, and Tyler Chatwood (3-0) outpitched Lincecum for the second time in a week.
Carlos Gonzalez also hit a solo homer and D.J. LeMahieu added an RBI single as the Rockies roughed up Lincecum again.
"Mix in a little bad luck there. He did make a couple mistakes but overall I thought he threw OK," manager Bruce Bochy said. "We've got to get this offense going a little bit. This is three games we're kind of sputtering a little bit. I thought overall it was a pretty good effort by Tim. We just couldn't get things going offensively."
The Giants have lost four in a row in the rivalry for the first time since 2006.
Colorado snapped a nine-game losing streak at AT&T Park with its first win in the waterfront ballpark since Aug. 10, 2012. San Francisco was shut out at home for the first time since that same game, also started and won by Chatwood - he beat Lincecum that day, too.
"It's pretty neat to do that against that lineup," Chatwood said. "They're a great hitting team. Any time you can have success against a lineup like that, it's big."
Cuddyer's two-out double in the first gave Colorado a quick cushion, then he connected for his eighth home run with a solo shot leading off the sixth. He also scored two runs after returning to the Rockies' lineup from the 15-day disabled list.
"I felt pretty good physically," Lincecum said. "Mechanically I felt good. Just a couple of pitches that got away from me and they really made me pay for it."
Cuddyer, batting fifth and playing right field after missing time with an inflamed cervical disk, went 2 for 4 with three RBIs. Gonzalez homered leading off the eighth against Sandy Rosario, Gonzalez's team-leading 12th clout.
Chatwood allowed four hits in six scoreless innings, struck out four and walked one in another lopsided Rockies result against the reigning World Series champions. Colorado shut out San Francisco 5-0 in the series finale in Denver last Sunday.
The Giants (26-22) fell one game back in the NL West race behind the Rockies and Arizona.
"They've dominated us every time here," Gonzalez said. "That gives us a lot of confidence when you can win a series against a team that won the championship a couple of times the last few years."
San Francisco's Marco Scutaro went 0 for 3 after having hit safely in each of his previous 15 games against Colorado, his former club before being traded to the Giants last July. But the Giants generated few opportunities against Chatwood and the Colorado bullpen.
Wilton Lopez, the Rockies' third reliever, finished the five-hit shutout.
Notes: San Francisco starter Ryan Vogelsong, who had surgery on his broken right hand Tuesday, is keeping his sense of humor about an injury that will sideline him about two months. "I hit myself in the face last night, sleeping with it," he said of the heavily wrapped hand. "That didn't feel too good." He wears a sling sometimes, which "kind of tells everyone not to run into me." Bochy said the Giants would announce their fill-in for Vogelsong's spot Tuesday at Oakland after Sunday's finale with Colorado. ... A decision about whether Giants RHP Santiago Casilla would have arthroscopic surgery was expected soon, and Bochy said the reliever is expected to be sidelined beyond just the two weeks on the disabled list. "That's a strong possibility, to be honest," Bochy said. "But again, we're still weighing the other options before we go this way." . ... The Giants lost in one of Lincecum's starts for only the fifth time in the past 16 dating to last season. ... San Francisco failed to hit a home run for just the second time in its last nine home games.