A Story About ‘Magic' (1983)
catb.org
catb.org
One day my dad was trying to reboot it and it wasn't cooperating. He'd flip the power switch to off, wait a bit, then back to on, and the fans would spin up but nothing else would happen. After seeing this repeat a few times, I gave it a shot -- power switch off, wait a bit, power switch on. It booted up happily.
The trick was that the power supply took a while to fully shut down after losing mains power. If it regained power too early, it wouldn't start back up again. The only people in the house who could reliably reboot that machine had ears young enough to hear the high-pitched whine of the capacitors, to judge whether the reboot had finished and power could be restored.
This was only discovered after several months of intermittent frustrating debugging.
Older machines tried really hard to have a solid ground reference. Busbars. Copper sheets brazed together. Stuff like that. Lots of headaches with potentials between different grounded points. Eventually, everything with any significant length went differential, so ground potential didn't matter so much. More electronics, fewer headaches.
Most higher powered laptop power bricks have three prong plug for exactly this reason.
It only happens when you're using the two-prong "duck bill" on the power adapter itself. If you use a power cord with a three-prong plug instead of the two-prong duck bill, the feeling isn't present.
Apple Macbooks are particularly bad because the enclosure is metal and the standard plug (the interchangeable part of the charging brick) that is sold in most parts of the world is not grounded.
In my country (in Europe) a Macbook charger is sold with a 'type C', (AKA EuroPlug) which is not grounded. The extended cord that comes with the charger is a 'type F' plug, which is grounded. [0]
For me, this results in always having to lug around the extended cord with the charger, as the non-grounded variant makes my Macbook unpleasant to use.
[0] https://www.worldstandards.eu/electricity/plugs-and-sockets/
Now I work in RF and there's no magic at all. It's the expected outcome. The explanation at the bottom of the page is probably (roughly) correct.
Related:
A Story About ‘Magic' - https://news.ycombinator.com/item?id=27740579 - July 2021 (1 comment)
Hacker Folklore: A Story About ‘Magic' - https://news.ycombinator.com/item?id=21385180 - Oct 2019 (1 comment)
A Story About ‘Magic' (1994) - https://news.ycombinator.com/item?id=9102110 - Feb 2015 (60 comments)
A Story About ‘Magic' (1994) - https://news.ycombinator.com/item?id=7472328 - March 2014 (1 comment)
It's pretty reliable - at least more reliable than the wireless IKEA light button in the kitchen...
For a lark I once put an AC power supply driven from a bunch of tiny hearing aid batteries into the outer shell of a 9V block battery. A casual DC voltage measurement would yield a big fat zero but a small bulb would light up. Magic!