TORONTO (AP) -- With the count full, Jhonny Peralta was looking for a breaking ball. He got one, and ended a seven-day drought between hits by connecting for a big home run.
Peralta hit two homers, Doug Fister pitched eight innings and the Detroit Tigers beat the Toronto Blue Jays 4-1 on Sunday to avoid a three-game sweep.
''We had the right tonic for a nice winning formula today: a three-run homer and excellent pitching,'' manager Jim Leyland said.
The Tigers had lost three in a row and four of five to fall out of the AL Central lead.
Peralta hit a three-run drive off Brett Cecil in the second and added a solo shot against Joel Carreno in the ninth. It was Peralta's first multihomer game of the season and seventh of his career.
''Jhonny had a huge day,'' Leyland said.
Peralta came in mired in an 0-for-17 slump and hadn't gotten a base hit since going 2 for 3 in a 7-1 win over Chicago in July 21.
He snapped out of that funk in his first plate appearance Sunday, capping a nine-pitch at bat with a home run.
After fouling off five pitches from Cecil, Peralta said he was sitting on the breaking ball when the count went full.
''The first game we played here (Friday), I got to 3-2 a couple of times and they threw me a lot of breaking balls,'' Peralta said. ''Today I was thinking 'OK, if it's 3-2 and they throw a breaking ball to me, something will happen.' It happened.''
Fister (5-7) won for the fourth time in five starts, allowing one run and seven hits, all singles. He struck out nine and matched his longest outing of the season.
''An excellent pitching performance,'' Leyland said. ''Doug did an great job of keeping them off balance all day long and mixed his pitches extremely well.''
Jose Valverde closed for his 20th save in 24 chances as Detroit avoided being swept in Toronto for the first time since Sept. 5-7, 2003.
Cecil (2-4) gave up three runs and four hits in a season-best 6 2-3 innings. He walked a season-high four and struck out seven.
Cecil has given up no more than three runs in each of his past three starts, but has lost all of them. The Blue Jays have scored just two runs behind him in that span.
The lefty has allowed a home run in each of his past four starts and has surrendered nine long balls in eight starts this season.
''I'm not going to change anything,'' Cecil said. ''Just keep doing what I'm doing. Wins will come.''
Blue Jays manager John Farrell said he can live with home runs, as long as they don't always come with runners on.
''The old adage is solo home runs aren't going to beat you, it's what happens prior,'' Farrell said. ''The walk contributed. I thought he threw a number of good pitches that were borderline and he didn't get a call on. But still, six plus innings, I thought he did a good job here today.''
Toronto's only run came in the first when Rajai Davis singled, stole second and went to third on catcher Gerald Laird's throwing error, then scored on a groundout by Colby Rasmus.
Detroit answered in the second when Delmon Young walked, Ryan Raburn doubled and Peralta followed with his seventh homer.
The Blue Jays put runners at first and second with two outs in the third, fourth and fifth innings, but failed to score each time. Brett Lawrie fouled out to end the third, Jeff Mathis grounded out to close the fourth and Edwin Encarnacion grounded out in the fifth.
''He's pretty good at staying calm when he gets in a tight situation,'' Leyland said. ''That's a trait of a real good pitcher.''
NOTES: Toronto's Adam Lind (back) missed his third straight game. A decision on whether to place Lind on the DL will come after he tries to hit before Monday's game at Seattle. ... The Tigers improved to 14-4 on Sundays this season. ... Blue Jays OF Jose Bautista (left wrist) took swings for the second straight day. ... Toronto lost for the third time this season when holding their opponent to five hits or fewer.