News for hackers. Stuff that matters.
Re:A Story About ‘Magic' (1983) by jmillikin on Thursday August 11, 2022 @02:29AM (#32422241)
I got to have my own version of this while I was in university about ... 15 years ago? My family had a small computer configured as a media center, running MythTV and connected to the living room television. It was built of the cheapest parts available on Newegg, and sometimes got cranky enough to need a reboot.

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.

Re:A Story About ‘Magic' (1983) by thedanbob on Thursday August 11, 2022 @07:26AM (#32424096)
In college, I was frequently invited to movie nights in one of the lounges because the TV there was ancient and I was one of the few people who could reliably turn it on. It involved hitting the reset button at a specific point of the warm up for a specific duration. Apparently no one thought to just ask for a new TV until years later.
Re:A Story About ‘Magic' (1983) by Fatnino on Thursday August 11, 2022 @01:12PM (#32428830)
I had a computer in the pentium 3 days that eventually would not turn on while upright. Laying the case flat (as you would when opening it up to root around looking for the problem) would allow it to turn on again. Once on it could be set upright and keep running till next boot up.

This was only discovered after several months of intermittent frustrating debugging.

Re:A Story About ‘Magic' (1983) by dllthomas on Thursday August 11, 2022 @12:07PM (#32427807)
I can see why you'd think of it as a version of this story, but it's also a version of "Tom Knight and the Lisp Machine" (http://www.catb.org/~esr/jargon/html/koans.html#id3141171).
Re:A Story About ‘Magic' (1983) by hulitu on Thursday August 11, 2022 @11:13AM (#32426970)
There is a lot a poorly designed hardware which behaves this way. The trick is to wait 10 secs before turning it on again.
Re:A Story About ‘Magic' (1983) by Animats on Thursday August 11, 2022 @01:30AM (#32421908)
There is no such thing as ground. Especially for high speed signals. An unterminated wire to ground is an antenna.

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.

Re:A Story About ‘Magic' (1983) by afandian on Thursday August 11, 2022 @04:26AM (#32422973)
I know it's not exactly the same thing, but the elecric feeling I get from my Macbook (I think it's some kind of capacitive coupling, some people can't feel it but some can), and the spark between the magsafe power adapter and the computer when I plug it in are always disconcerting. I have to trust that Apple know what they're doing...
Re:A Story About ‘Magic' (1983) by kaapipo on Thursday August 11, 2022 @07:43AM (#32424231)
The electric feeling is actually caused by EMI reduction measures: per regulations, a Y2 class capacitor must be connected between live and earth in your laptop's power supply. If you connect your charger to an earthed outlet (like you should), the earth is going to absorb the resulting high-impedance supply. If not, the resulting voltage will be present on your computer's metal chassis, which must be connected to the earth per other regulations on electrical safety. Of course, since the capacitor has a high impedance (reactance, to be precise), no meaningful current can go through it, so the "seemingly mains-voltage" on your chassis isn't dangerous at all (as long as everything is working as intended)
Re:A Story About ‘Magic' (1983) by dfox on Thursday August 11, 2022 @07:10AM (#32423998)
The reason for that is that the adapter is not really grounded, but due to EMC requirements there has to be some AC path to ground. This is done by connecting the output ground to midpoint of input EMC filter and thus the output ground is weakly capacitively coupled to half of the line voltage.

Most higher powered laptop power bricks have three prong plug for exactly this reason.

Re:A Story About ‘Magic' (1983) by afandian on Thursday August 11, 2022 @07:26AM (#32424101)
Yeah I'm using a Macbook Pro power adaptor and an Apple Cinema display. Both have earth pins (UK plug). Somehow their 'grounds' disagree enough to ionize air!?
Re:A Story About ‘Magic' (1983) by bombcar on Thursday August 11, 2022 @09:45AM (#32425450)
Are you plugged into the same outlet? Different outlets could be on different circuits which can be enough to cause a ground difference.
Re:A Story About ‘Magic' (1983) by afandian on Thursday August 11, 2022 @09:53AM (#32425580)
Yes, the plugs are next to each other. And a mains tester is happy with the mains output.
Re:A Story About ‘Magic' (1983) by Ancapistani on Thursday August 11, 2022 @09:09AM (#32425055)
Oh! I know about this! It's the "fuzzy" feeling you get when you touch a MBP when it's plugged in!

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.

Re:A Story About ‘Magic' (1983) by LeonM on Thursday August 11, 2022 @11:45AM (#32427470)
This is a known issue with ungrounded electronics in general.

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/

Re:A Story About ‘Magic' (1983) by RektBoy on Thursday August 11, 2022 @07:31AM (#32424145)
In the end, you can always buy a new macbook and that's a plus ;-)
Re:A Story About ‘Magic' (1983) by BoxOfRain on Thursday August 11, 2022 @08:58AM (#32424942)
I know this feeling, noticed it since at least the aluminium PowerBook G4 I had once.
Re:A Story About ‘Magic' (1983) by bobowzki on Thursday August 11, 2022 @02:15AM (#32422158)
I remember reading this a long time ago and feeling the magic...

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.

Re:A Story About ‘Magic' (1983) by dang on Thursday August 11, 2022 @02:18AM (#32422171)
Anyone have a year for this? It says 1994 at the bottom but that's just the addendum.

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)

Re:A Story About ‘Magic' (1983) by jmillikin on Thursday August 11, 2022 @02:35AM (#32422280)
If I remember correctly, this story appeared in the original Hacker's Dictionary (published 1983). I don't have a copy of that book any more, but someone who does might be able to confirm.
Re:A Story About ‘Magic' (1983) by tjr on Thursday August 11, 2022 @10:42AM (#32426446)
I do have a copy of the 1983 book, and this story is present. Like the online copy linked to here, it also begins with "Some years ago ..."
Re:A Story About ‘Magic' (1983) by nanofortnight on Thursday August 11, 2022 @02:30AM (#32422246)
The original was posted to USENET by Ed Nather (utastro!nather) on May 21, 1983.
Re:A Story About ‘Magic' (1983) by mepian on Thursday August 11, 2022 @04:30AM (#32423010)
The author is Guy Steele (GLS in the story).
Re:A Story About ‘Magic' (1983) by ktopaz on Thursday August 11, 2022 @01:35AM (#32421949)
Some more stories about more impossible bugs: https://www.reddit.com/r/linux/comments/2p6qy5/4_impossible_...
Re:A Story About ‘Magic' (1983) by nurbl on Thursday August 11, 2022 @06:44AM (#32423829)
My PC sits in a place behind my table which isn't easy to reach, and I have my keyboard and mouse connected to the built-in USB switch in my monitor. Because the monitor turns off by itself to save power, there's no quick way to wake the PC from suspend mode (e.g. by pressing a key). However, I've accidentally found that turning off my desk lamp wakes the PC up! So just toggling the lamp and off will do the job. I guess it's somehow because the PC and lamp are connected to the same extension cord. The only inconvenience is that I sometimes forget to turn the lamp off before putting the PC to sleep at night.

It's pretty reliable - at least more reliable than the wireless IKEA light button in the kitchen...

Re:A Story About ‘Magic' (1983) by jacquesm on Thursday August 11, 2022 @04:16AM (#32422912)
I'd love to see the guts of that switch.

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!

Re:A Story About ‘Magic' (1983) by codazoda on Wednesday August 10, 2022 @11:30PM (#32421239)
Hearing it was wired to the ground I thought, “maybe the computer isn’t properly grounded by it’s usual means and this switch fixed the ground”.
Re:A Story About ‘Magic' (1983) by londons_explore on Thursday August 11, 2022 @02:01AM (#32422095)
Yeah - this was a fix for a disconnected ground somewhere.
Re:A Story About ‘Magic' (1983) by Overtonwindow on Thursday August 11, 2022 @01:48AM (#32422027)
That was an awesome read!
[dead]
Re:A Story About ‘Magic' (1983) by progre on Thursday August 11, 2022 @12:18AM (#32421541)
I belive you are confusing GLS (Guy Steele, the 'I' in the story) with Eric S. Raymond, the, eh... curator of The Jargon File.

The quote in your comment is from Raymond who is indeed quite racist.

Re:A Story About ‘Magic' (1983) by cperciva on Wednesday August 10, 2022 @11:58PM (#32421420)
Accepting arguendo that your claims are correct: What do they have to do with the magic / more magic grounding switch?
Re:A Story About ‘Magic' (1983) by astrange on Thursday August 11, 2022 @12:07AM (#32421491)
Assuming this is supposed to be about ESR, this page isn't written by him, since it's signed by someone else…
[dead]
Re:A Story About ‘Magic' (1983) by kevin_thibedeau on Thursday August 11, 2022 @12:43AM (#32421672)
White people commit the majority of workplace violence in the US. The Justice dept. has breakdowns of violent crimes by ethnicity if you want to see the details.
Re:A Story About ‘Magic' (1983) by drno123 on Thursday August 11, 2022 @12:49AM (#32421705)
Thanks

Edit: I looked it up and the mentioned statistics about overall violent crime is actually true. OTOH cherrypicking only violent crime stats and not mentioning white collar crime stats is racist.

Re:A Story About ‘Magic' (1983) by progre on Thursday August 11, 2022 @02:04AM (#32422116)
Trotting out a race correlation and not mentioning another correlation (poverty) is also racist.