Power was restored in most parts of Bangladesh late Saturday, some 12 hours after a massive nationwide electricity blackout hit the country, plunging Dhaka and other cities into total darkness.
Authorities said local engineers managed to fix plants supplying 3,600 megawatts of power -- covering some 70 percent of clients -- by 11.30 pm Bangladesh time (1730 GMT).
"We hope power supply will be fully restored by early Sunday morning," Saiful Hasan, a power ministry spokesman, told AFP.
Loud cheers could be heard in Dhaka late Saturday as the lights came back on phase by phase in large parts of the capital, after thousands of residents spent hours outdoors or on their roofs.
The city of 15 million people had looked like a ghost town as dusk descended, with homes, businesses and shops plunged into darkness.
Mosques which use loudspeakers to call for prayers five times a day also fell eerily silent.
Authorities blamed the outage in the densely-populated nation of 155 million on a transmission line failure.
Water supplies were hit as most of the pumps which lift groundwater could not function.
"I don't know how such a disaster can happen," fumed laundry operator Ataul Hakim.
Fish traders were furious at a lack of ice to keep their supplies fresh. One trader, Robiul Islam, said he would lose 5,000 taka ($70) as he could not preserve his stock.
The blackout occurred just before midday.
Local media said the problem stemmed from a technical problem at an electrical substation distributing power from India, but government officials would not confirm the reports.
All areas linked to the national electricity grid had been hit, another senior power ministry official, Masud Alberuni, told AFP.
The national grid "tripped" and "all the power-generating stations in the country automatically shut down in a cascading effect," Alberuni said.
The outage marked the first time the whole country has been without power since November 2007 when Bangladesh was hit by a devastating cyclone, Alberuni added.
The blackout hit at the weekend, lessening the impact on industry. Temperatures have also passed their summer peak, limiting complaints over the stoppage of fans and air conditioning units.
Many people in rural parts of chronically energy-short Bangladesh, accustomed to regular power cuts lasting many hours, did not know that the blackout was nationwide.
The presidential palace, the prime minister's office, government offices and television stations were all hit by the outage.
"There's no signs of hope. The place looks like a ghost town," said Aminur Rahman, who lives a short distance from the prime minister's office in Dhaka.
"We've come out of the house as it's so strangely dark inside."
Hospital intensive care units functioned on back-up generators, but ward patients suffered.
Power returned to Dhaka's international airport after several hours during which it ran on generators, officials said.
The blackout occurred after a transmission line transporting power from India through a "high-voltage" substation failed, Chowdhury Alamgir Hossain, a director of state-run Power Grid Company of Bangladesh, told the Dhaka Tribune newspaper.
But government officials declined to identify the transmission line.
Dhaka began importing power from India late last year through a line stretching from India's eastern state of West Bengal to southwestern Bangladesh.
"We are investigating the reason for the power cut," said state power minister Nasrul Hamid, adding the government has set up a committee to probe the disastrous failure.
Electricity supplies in Bangladesh, one of the world's poorest countries, are vastly overstretched.
As in many other parts of the developing world, the rise in energy consumption has outdistanced economic growth, with an expanding middle-class and increasing industrialisation imposing heavier loads on scant generating capacity.
The outage evoked memories of a blackout in India two years ago that was one of the world's worst in recent times. Some two-thirds of India's states suffered outages when three of the nation's five power grids failed at once.
The Indian outage sparked serious doubts about the ability of the country's rickety electricity infrastructure to meet the nation's aspirations to transform into an economic superpower.