Improvement in emerging markets as well as US back-to-school promotions helped boost the market, says IDC.
The Chinese multinational company grows its local business, banking on the strong rand and a reasonably flat inflation rate.
The traditional PC market fared slightly better than expected in 2Q17, tilting just above the previous forecast.
The traditional PC market faces competition from tablets, smartphones and lengthening PC lifecycles, says IDC.
Shipments totalled 64.3 million units in the second quarter of 2016, a 5.2% decline from the second quarter of 2015, says Gartner.
The market saw a 28.7% year-on-year slump in shipments in the final quarter of 2015, says IDC.
The overall market will return to positive growth, driven by the growing demand for detachable devices, says IDC.
With the volatile rand causing PC price increases, more companies turn to rentals.
Investors welcome plans for the company's soon-to-be separated PC and printer business to return more capital to shareholders.
The PC market in the Middle East and Africa records its steepest decline to date for a single quarter.
China's Lenovo will lay off 10% of staff after Motorola sales fell by a third, raising doubts over the PC giant's $3?billion bet on a money-losing brand.
The company says the supply chain is in good shape following the PC market recovery.