SAN DIEGO -- Whatever the San Diego Padres lacked in an embarrassing weekend at Dodger Stadium, they suddenly found at home.
Brian Lawrence pitched eight strong innings, and Geoff Blum and Ramon Hernandez each drove in two runs to give the Padres a 5-2 win over the San Francisco Giants on Tuesday night.
The Padres scored 12 runs in the two-game sweep after scoring just three in losing three straight games in Los Angeles last weekend.
Now, the Dodgers come to Petco Park for two games starting Wednesday night.
"Sometimes anger is a gift, and maybe we got a little ticked off by getting pounded on by L.A.," Blum said. "This is a good ballclub. Part of the game is making adjustments.
"We're feeling pretty good right now and our pitchers are pitching well and we're getting key hits when we need them," Blum said. "Hopefully, this will be a good time for L.A. to come in and see what we have to offer."
Lawrence (1-2) retired his last nine batters and held the Giants to two runs and six hits. He struck out two and walked none.
The right-hander was coming off a poor outing in an 8-3 loss against the Cubs on Wednesday, when he allowed seven runs in just 2 1/3 innings. It tied the shortest start of his career.
Lawrence said he did a better job of keeping the ball down. "Other than that, I wasn't out there in Chicago long enough to figure anything out," he said.
Pitching well "makes the days a little shorter, that's for sure," Lawrence said. "When you have a couple of bad outings back to back, it seems like forever before you're going back out there pitching again."
Giants manager Felipe Alou said Lawrence "baffled our guys with an assortment of pitches. We didn't hit too many balls hard. You admire a guy who can get you out with command of his pitches."
Trevor Hoffman pitched the ninth for his second save in three chances.
"We did a lot of things right tonight," Padres manager Bruce Bochy said.
Hernandez and Blum had consecutive RBI hits in the three-run fourth inning against Jerome Williams (0-1) that gave San Diego a 4-2 lead.
Phil Nevin opened the inning with a double to center, advanced on Ryan Klesko's groundout and scored on Hernandez's single to right. Blum doubled in Hernandez and scored on Sean Burroughs' single.
Hernandez hit a two-out triple into the right-field corner in the fifth to score Klesko from first.
Williams, who entered with a 1.87 ERA against the Padres in four career appearances, allowed four runs and six hits in four innings.
He was making his first start in 10 days -- his No. 5 spot in the rotation was skipped because of off days.
"They hit little flares here and there," he said. "I left a couple of pitches up and they hit them. I messed up and they got hits. Give them credit."
San Diego scored first on Blum's two-out single in the second. Blum has started two straight games at shortstop in place of Khalil Greene, who broke his right ring finger in Los Angeles on Saturday night.
The Giants went ahead 2-1 in the fourth by getting four singles off Lawrence, including consecutive RBI hits by Edgardo Alfonzo and Michael Tucker.
Bochy used the same lineup in consecutive games for the first time this season. ... OF Xavier Nady wasn't in the lineup for the second straight game, in part because of a sore elbow and because the Padres played so well in a 7-2 win over San Francisco on Monday night that Bochy wanted to use the same lineup. ... Giants 1B J.T. Snow is expected to miss a couple of days with a strained groin that forced him out of Monday night's game. ... OF Moises Alou is on track to be activated from the 15-day disabled list Friday. He's been out since April 8 with a strained right calf. ... Hernandez hit his second career triple.