Both got what they needed against the skidding Chicago White Sox.
The Orioles were coming off a 3-6 road trip that left them four games off the pace in the AL wild-card race. Although it's probably too early to talk about must-win games, this one was pretty close.
"It's definitely a good way to start the homestand," Hardy said. "Our backs are kind of against the wall and we need to win. We need to get on a streak, and this is a good start."
After losing series in Boston, New York and Cleveland, Baltimore was delighted to come home for a four-game series against the last-place White Sox.
"We need wins," Jones said. "That's all it's about. We need a win."
Jones' shot in the first inning gave him 30 home runs for the season and 100 RBIs for the first time. Hardy and Roberts connected in the fifth, increasing Baltimore's major league-leading home run total to 188.
"We didn't put together a ton of hits, but the way the pitching and defense was tonight, three was enough," Hardy said.
Gonzalez (9-7) gave up four hits -- all singles -- walked one and struck out six to earn his first win in seven starts since July 20. He was 0-4 in that span.
"It was a long time since I got a win," he said. "It was fun to be out there and be able to go a little bit deeper than in other games and getting a win that was important for us."
"They're all significant from here on out just because of the opportunities that are not there," manager Buck Showalter said. "If we take care of business, it will be an interesting last week of the season. You'll usually like the outcome if you just try to stay in the moment. It's difficult to do. It takes a lot of discipline."
Dayan Viciedo had two hits for the White Sox, who have dropped seven straight as they stagger to the conclusion of a losing season. Chicago is an AL-worst 24-49 on the road and 32-48 in games decided by one or two runs.
"We've played that type of game a lot this year and just couldn't score enough runs to win," said Paul Konerko, who went 0-for-4. "We try not to think about how other games have gone, but the end result is you can lump this in with the rest of them."
Jose Quintana (9-7) allowed seven hits in seven innings, but three of them were homers. The right-hander had allowed only four long balls in his previous 10 starts.
"He was all right," manager Robin Ventura said. "The three homers are the ones that got him, but other than that he was pretty sharp."
Down 1-0, the White Sox loaded the bases with no outs in the third but got only one run, on a double-play grounder by Alejandro De Aza.
"That was our spot," Ventura said. "I mean Gonzalez pitched well, really pitching from behind well. He spotted off-speed stuff and hit his counts. We got him in that situation, he gets a double play to really give himself a breather and get out of it."
Hardy put Baltimore in front for good in the fifth with a leadoff homer on a 2-2 pitch, and with two outs Roberts homered on a full count. Hardy's drive made him the ninth player since 1901 to have three seasons with at least 25 home runs as a shortstop.
The Orioles activated RHP Jason Hammel (flexor strain) from the DL, recalled RHP Steve Johnson from Triple-A Norfolk and optioned LHP Zach Britton to Single-A Aberdeen. ... Chicago C Tyler Flowers underwent shoulder surgery Thursday to clean up his rotator cuff and labrum. No structural damage was found. Recovery time is approximately 2/3 months. ... Baltimore RF Nick Markakis did not start after going 6 for 36 on the road trip, but he entered as a defensive replacement in the eighth inning. ... Scott Feldman starts for the Orioles on Friday night against John Danks (4-11), who earned one of his four wins this season against Baltimore on July 2. ... Ventura on being the spoiler: "There's no extra incentive that you're a spoiler but I think we do have guys that are looking toward next year, trying to do something just to get noticed or send a positive note out there." ... The crowd of 17,383 pushed attendance at Camden Yards over 2 million on the 68th home date.