CHICAGO -- In a matchup of teams on track to both lose 100 or more games, the White Sox avoided getting swept in a three-game series.
Jose Abreu hit a tying home run off Jason Adam in the eighth and pinch-hitter Daniel Palka had a three-run homer off Jason Hammel later in the inning, leading Chicago over the Kansas City Royals 6-4 Thursday.
Kansas City overcame a 2-0 deficit when pinch-hitter Whit Merrifield hit a three-run homer in the eighth off Xavier Cedeno (1-0), but Abreu homered with one out in the bottom half against Adam (0-3). Abreu's 141st big league homer moved him ahead of Ron Kittle into sole possession of 10th on the White Sox career list.
Avisail Garcia doubled, Omar Narvaez was intentionally walked and Hammel relieved. Palka drove a hanging slider a half-dozen rows in the right-centerfield bleachers. He tied the White Sox record of three pinch homers in one season, set by Oscar Gamble in 1977.
"I wanted to hit a home run," Palka said of his mindset.
Chicago (38-70) won for the second time in eight games. Kansas City (34-74) had been seeking its first three-game sweep at the White Sox since June 13-15, 2014.
White Sox starter Reynaldo Lopez allowed two runs and five hits in seven-plus innings, leaving with a 2-0 lead after Alcides Escobar doubled leading off the eighth and Adalberto Mondesi reached on a bunt single.
Lopez had been 0-4 with an 8.27 ERA in his prior four starts.
"I felt good. I felt in command of all my pitches. I was focused today," Lopez said.
Royals rookie Brad Keller gave up two runs, five hits and three walks in 6 1/3 innings.
"Did a phenomenal job keeping us in the game," Royals manager Ned Yost said.
White Sox: RHP Lucas Giolito (7-8, 6.26) is to start Friday at Tampa Bay.
Royals: RHP Heath Fillmyer (0-1, 3.29) is to open Friday at Minnesota.
More AP baseball: https://apnews.com/tag/MLBbaseball
Brian Snitker is NL's top manager after leading Braves to East title
After leading the Braves to an unexpected NL East title, Brian Snitker has been named the NL manager of the year.
Did Ohtani deserve Rookie of the Year?
Around the Horn discuss whether Shohei Ohtani deserved Rookie of the Year even though he only played 104 games this season.
MLB to investigate claims of racial discrimination vs. Mariners
MLB said in a statement provided to The Athletic that it will investigate allegations of racial discrimination in the Seattle Mariners organization made by a former employee.
Time for Giants to decide what to do with Madison Bumgarner
Forget nostalgia. With Farhan Zaidi taking over the front office, San Francisco must re-evaluate how the hero of Octobers past fits into the franchise's future.
Phillies manager Gabe Kapler loses Malibu home in Woolsey Fire
Phillies manager Gabe Kapler is thankful his family is safe after his Malibu home was destroyed in the Woolsey Fire that has burned at least 435 buildings and is threatening tens of thousands more.
Japan scores four runs in 9th to beat MLB All-Stars, leads series 3-1
Japan rallied with four runs in the top of the ninth inning to beat the MLB All-Stars 5-3 and take a 3-1 lead in their six-game exhibition series on Tuesday.