SAN FRANCISCO (AP) Two days after returning from the paternity list, Brandon Crawford's sleep pattern is slowly getting back to normal. His swing is looking smooth, too.

Crawford doubled twice, tripled and drove in three runs, leading the San Francisco Giants over the San Diego Padres 5-3 on Saturday.

The breakout game came less than a week after Crawford's wife gave birth to the couple's fourth child, son Bryson.

''You just know him, you know it's a matter of time,'' manager Bruce Bochy said. ''I'm sure his timing was a little bit off. Today he found it. We needed it.''

Crawford went into the game mired in an 0-for-18 funk. He walked in the second inning, hit a triple off Matt Strahm in the fourth and doubled in a pair of runs off Adam Cimber (3-4) in the sixth. Crawford also doubled and scored in the eighth.

''Even though I may not have looked that good at times, I did feel like I was seeing the ball well,'' Crawford said. ''My timing might have just been a little bit off. It was just a matter of squaring the ball up, finding a hole, hitting it to a spot they couldn't catch it.''

San Francisco's Gold Glove-winning shortstop also helped turn three of the Giants' four double plays. He made a throwing error in the ninth that allowed a run to score.

Crawford was bothered as much by the error as he was excited about breaking out of his batting slump.

''It's frustrating, I'm not going to lie,'' Crawford said. ''Obviously I like going 3-for-3 any day, but I want to be able to make those plays in the ninth inning also.''

Brandon Belt singled twice and Gorkys Hernandez added an RBI double as the Giants won their fifth in seven games.

Reyes Moronta (3-1) retired three batters.

Hunter Renfroe homered for San Diego. The Padres have dropped six of seven.

San Diego manager Andy Green was forced to scramble after starting pitcher Jordan Lyles was scratched from the lineup with right forearm tightness minutes before he was scheduled to take the mound in the bottom of the first.

''Just kind of my read on his body and the way he was talking and the way he was feeling was that it wasn't worth putting him on the mound today,'' Green said. ''We're very hopeful that it's just one of those things where by keeping him off the mound today we preserved the rest of his season.''

Strahm, who started last Sunday in Atlanta, replaced Lyles and pitched into the fourth inning. Strahm gave up two hits and left after yielding Crawford's RBI triple.

Cimber, the fourth San Diego pitcher, allowed both runs in the sixth.

Hernandez doubled in Nick Hundley in the seventh to make it 4-1.

Giants starter Andrew Suarez gave up one run in 5 2/3 innings.

Things got a little chippy in the seventh when Andrew McCutchen was hit by a pitch from San Diego reliever Phil Maton. McCutchen took exception after the previous pitch was high and inside, and he glared at Maton for several moments. Padres A.J. Ellis stepped in front of McCutchen and spoke to the hitter briefly before McCutchen walked to first base.

Earlier in the week, the Giants and Miami Marlins exchanged allegations of beanballs during their three-game series at AT&T Park.

ROSTER SHUFFLE

The Giants optioned left fielder Mac Williamson to Triple-A Sacramento. Williamson was one of San Francisco's hottest hitters before suffering a concussion in late April but has struggled at the plate since returning. Austin Slater was recalled and will join a crowded depth chart in left. Alen Hanson started Saturday, with Hunter Pence and Austin Jackson also in the mix.

TRAINER'S ROOM

Giants: RHP Johnny Cueto (elbow inflammation) was scheduled make his first rehab start with Sacramento on Saturday night. ... RHP Jeff Samardzija (shoulder tightness) will join Cueto in Sacramento and will throw around 90 pitches in a rehab start Tuesday.

UP NEXT

Giants RHP Dereck Rodriguez (2-1, 4.56 ERA) makes his third home start since joining the rotation. Rodriguez is unbeaten in his two previous starts at AT&T Park while allowing four runs in 11 innings. Eric Lauer (3-4, 5.47) pitches for the Padres. The left-hander has yielded three earned runs or fewer in his previous four starts.

Copyright 2018 by AP. Any commercial use or distribution without the express written consent of AP is strictly prohibited.