OAKLAND -- Sometimes, all it takes is a change of scenery. For the A's, they got just what they hoped for in a return home Thursday after their most recent trip concluded with a three-game sweep in Detroit.

It helps, of course, that the A's played in front of 32,913 adoring fans and had ace Sonny Gray at the ready to outduel Toronto Blue Jays knuckleballer R.A. Dickey. In the end, the A's prevailed 4-1 at the Coliseum.

"We were a little tired at the end of another long road trip," A's closer Sean Doolittle said. "Coming home and seeing the place packed out, that was really kind of a shot in the arm for us. That was the boost that we needed."

Oakland Athletics manager Bob Melvin (6) approaches the umpire crew to discuss a bases loaded call in the second inning of their game at O.co Coliseum in
Oakland Athletics manager Bob Melvin (6) approaches the umpire crew to discuss a bases loaded call in the second inning of their game at O.co Coliseum in Oakland, Calif., on Thursday, July 3, 2014. After this decision the A's reported that they were playing today's game under protest. (Jose Carlos Fajardo/Bay Area News Group)

The A's don't care how they beat the Blue Jays, just as long as they got back in a winning mode and erased the bad taste from losing three straight in Detroit.

That's precisely what the A's did in the first of four games between first-place teams in the American League.

Most of the scoring came in the second inning, and Gray and the A's bullpen made the two runs they received that inning hold up. In turn, that left the fans in a festive mood for the postgame fireworks show.

Oakland catcher Stephen Vogt credited Gray for keeping his composure early in the game, when there was the potential for disaster.

"Sonny doesn't let anything get to him," Vogt said. "With Sonny, there's no such thing as pressure, there's no such thing as a memory. He doesn't remember yesterday or the last inning. He comes out and gives you the best he's got every time."

The turning point came in the second inning, when Gray induced Anthony Gose to hit a ground ball to first baseman Nate Freiman with the bases loaded and one out.

Fireworks explode above O.co Coliseum in Oakland, Calif., on Thursday, July 3, 2014. The Oakland Athletics defeated the Toronto Blue Jays 4-1. (Jose Carlos
Fireworks explode above O.co Coliseum in Oakland, Calif., on Thursday, July 3, 2014. The Oakland Athletics defeated the Toronto Blue Jays 4-1. (Jose Carlos Fajardo/Bay Area News Group)

Freiman tried to tag Munenori Kawasaki as the Blue Jays runner went from first to second. First base umpire Vic Carapazza signaled Freiman missed Kawasaki. Freiman then fired to Vogt for a force out at home.

Blue Jays manager John Gibbons challenged the ruling on Freiman's attempted tag of Kawasaki, knowing if the call got overturned, Edwin Encarnacion would be safe at home because the force play no longer was in effect and Vogt didn't tag Encarnacion.

The umpires huddled, reviewed the play and sided with Gibbons. That gave the Blue Jays a run.

As a result, A's manager Bob Melvin informed the umpires he wanted the game played under protest on the grounds that Carapazza's safe call "affected what (Vogt) did at home."

Melvin said he was told afterward that anything that has to do with replay can't be protested.

"We completely understand the dynamics of this because we made a call on the field that directly affected the play at the plate," crew chief Bill Miller said. "That's what I explained to Bob. I explained to Gibbons, too, that when we went to replay, that's what we're going to try to solve.

"Replay's a new dimension to this game and there's going to be quirks and funny plays like this that happen. Unfortunately it happened to us."

Gray waited for the umpires to sort out the confusion, then he got out of the inning with a ground ball to shortstop.

"I knew the inning had the potential to escalate very quickly," Gray said, "so it was very important to get that guy out and move on."

The protest became moot with the A's victory, but it was a hot topic in the A's locker room.

"You can't change the way you've played baseball your whole life," Vogt said. "That's the tough part with replay now. I wouldn't do anything different on the play than I did because the umpire didn't signal that he tagged him. So, I have to assume that he missed the tag and get the force out at home."

Gray lasted seven innings and picked up his eighth victory. Rediscovering his curveball made all the difference, Melvin said. Vogt and Gray agreed.

"That was the idea, to really get that going again," Gray said. "The last six starts it was OK, but it hasn't been a big factor for us. ... I was able to find that again."

Just as the A's were able to find the win column once again, which has become quite common this season. The A's improved to 25-15 at home, the second-best mark in the major leagues.

  • Third baseman Josh Donaldson didn't start for the second straight game because of back stiffness. He could return as soon as Friday.

  • Yoenis Cespedes (hamstring) was back in left field after being the designated hitter Wednesday in Detroit. His hitting streak ended at 15 games after he went 0 for 4.

  • The A's activated left-handed pitcher Eric O'Flaherty from the 60-day disabled list. Flaherty was signed this offseason while in the midst of recovering from elbow surgery. He last pitched in a big league game May 17, 2013, as a member of the Atlanta Braves. "I couldn't sleep last night," he said before Thursday's game. "It's a big day. It feels like opening day." The A's designated reliever Jeff Francis for assignment to make room for O'Flaherty on the roster.

    FRIDAY'S GAME

    Toronto (Marcus Stroman 4-2) at A's (Tommy Milone 6-3), 1:05 p.m. CSNCA

    ONLINE

    Coliseum board approves new A's lease amid threats to move team. Read story at www.mercurynews.com/athletics.

    PHOTO GALLERY

    Scan this code with a smartphone to view an A's photo gallery or go to http://photos.mercurynews.com.