Panicking In Morse Code 218
An anonymous reader writes "When an i386 running Linux panics, a function in the kernel called 'panic_blink' causes the system's LEDs to blink. Andrew Rodland recently posted a creative patch to turn that steady blink into a useful message in morse code!"
What an excellent use of antiquated technology! (Score:1, Offtopic)
Note: this is a parody.
tcd004
Won't I be shocked (Score:1)
Re:Won't I be shocked (Score:1)
*sigh* (Score:4, Funny)
Someone set up us the dead horse!
You have no chance to be funny make your time!
Re: (Score:2, Funny)
Joy... (Score:2)
Re:Joy... (Score:4, Informative)
--
Todd
Re:Joy... (Score:2, Funny)
Hah! (Score:1)
Apple already did this... (Score:2, Interesting)
How do you say (Score:1)
Re:How do you say (Score:1)
morse code discrimination (Score:2)
(Lameness filter encountered. Post aborted!
Reason: Please use fewer 'junk' characters.)
slashdot sucks
dot dot dah dot dot dah dot dah dot dah dot dah dot dah dot dot
/.'ed (Score:1)
Quickly! Someone translate the blinking lights on the box and post the story for us!!!
This reminds me... (Score:5, Interesting)
If you translated the beeping in various levels of the third episode, it was a message in Morse Code telling you to defeat Hitler!
results from coding (Score:1)
Feynman said it first (Score:2, Informative)
Physics is like sex: sure, it may give some practical results, but that's
not why we do it. --Richard Feynman.
Bah! That's nothing! (Score:1, Funny)
Use the LED's on your laptop to give yourself the output of your decrypting of your grandfather's 45 year old messages about the location of secret Nazi/Japanese gold caches in the Philipines, while you are being Van-Eck phreaked in a jail cell.
Extra bonus: Doing all this while next door to a priest who is intimidating you from "getting the job done".
-Donut
Uhm? (Score:1)
WHAT? Oh bloody hell, Linux actually panics??? Someone shoot me
Patch for windowsxp? (Score:1)
Logik
I can just imagine (Score:5, Funny)
I can't do that dave
I'm melting ....
beam me up, scotty
feed me
I wonder if there is a morse code to voice coverter device out there? that would be a neat module to have to plug in as a peripheral
of course, if the code goes fast enough, you can gain the ability to recognise whole words as a sort of warble.
Re:I can just imagine (Score:2)
Re:I can just imagine (Score:3, Funny)
Well, it wouldn't be a fast link. But the possibilies could include telneting... oh I'll stop there...
Re:I can just imagine (Score:2)
You keep forgetting that a lot of these panicks happen because of updated software. That's why I personally want my kernel to say:
Who poisoned the freshmeat kernel patch section?
Now if I can get a sound clip of Tom Hanks saying that, I'm set.
Re:I can just imagine (Score:2)
The comedy of having the speech from the peripheral speaking out the appropriate message of doom, translated from the morse code output from the kernal panic
Of course, this would be more appropriate in other operating systems, but you get the idea
Standard for diaganostics would be better (Score:5, Interesting)
Some manufacturers of motherboards and whole systems already do this, but it's far from standard, and is typically only useful for POST errors. A full standard would allow O/Ses, as well as the BIOS to access the output device (be it LEDs or an LCD) and display a standard code for whatever the error is, which the user could then look up in the manual, or on the web.
Re:Standard for diaganostics would be better (Score:1)
Re:Standard for diaganostics would be better (Score:2)
Re:Standard for diaganostics would be better (Score:1, Interesting)
If your PC has an ISA slot you can get a card which displays the diagnostic progress code on a little 2 digit led display.
This was an x86 server feature (Score:3, Interesting)
It's too bad there's not a standardized motherboard resource (built-in PCI device, etc)for LCD displays like this; OS and app vendors would then be able to utilize it out of the box.
The idiotic thing is the displays on our LH3s and LH4s didn't show much and were useless, even with the "interactive" buttons that let you cruise around like on a printer. If they could display system load, temperature, yadda yadda they would be be much more useful.
Of course we know the logical conclusion to LCD displays on the front of computers -- someobody will have to have a full-blown 6" color LCD display on the front of the machine...
Follow Sun Cobalt model... (Score:2)
One of the cool things about Cobalt RaQ servers [cobalt.com] is the LCD on the front panel. There's a simple driver control program that can be used to spit out the text (or bit-graphics, apparently).
We have about 120 of these in our data center and we tech occasionally play practical jokes on or leave messages for one another on them. =)
Re:Follow Sun Cobalt model... (Score:3, Informative)
Well after bringing it home and reloading it from the "network gold disk" I started using it. After a short while, the box became very slow to respond. The load had gone up to 33 (yes, the O'Reilly Performance Tuning book says the load shouldn't go over 2.0 x the CPU count -- this went up to 33 on idle). It was the damn LCD control app. Once I chmodded it to -x, the load hasn't gone over 0.02 in over a year. Of course the LCD is useless now, but its better than having the whole server useless.
I brought it up to my friend (who was managing about 800 of the bastards at an ISP) and he replied, "oh, no wonder the damn things are so freaking slow".
So, lately I've been reading up on the System Installation Suite [sourceforge.net] so that I can setup my own tftp server-based install of Debian. If you also anticipate Sun dropping support for these bad boys, you may want to look into it too. It would be nice to have the box feel like a normal one and who knows, maybe the lcdproc isn't such a resource hog now. Maybe the market will be flooded with them once they're abandoned, and SISuite will breathe new life into them.
Re:Standard for diaganostics would be better (Score:2)
Re:Standard for diaganostics would be better (Score:2)
Hmm...imagine the abuses this could be subject to if it became standard. Banner ads in your browser would fight each other to display a message on the LCD (or LED, or whatever) output device...
Good thing that wouldn't be a problem in Linux, only in Windows...
Re:Standard for diaganostics would be better (Score:2)
They actually define codes for every hardware initialization technique and server OS startup routines.
If some setting is mucked up in the network startup script, the LED has a code for that. If your SCSI bus is screwed, ther's a code for that too.
The only problem is the machines take 15 minutes to boot and the codes vary between models, so you need to leave a manual with the LCD codes in your computer room!
Re:Standard for diaganostics would be better (Score:2)
Oh yeah, and you can log on and put up your own numbers, to find it physically in crowded data centers. 8)
=Blue(23)
Yes, it is going to work: (Score:1)
The Morse Code Alphabet [demon.co.uk]
Doesn't seem /.ed to me here's the text (Score:2, Informative)
Digging through the source code of a recent kernel, in the file 'linux/drivers/char/pc_keyb.c', above the definition for the function 'panic_blink', one reads the following comment:
panic'ed. This is to distingush panics from "real" lockups.
Could in theory send the panic message as morse, but that is left as an
exercise for the reader. */
Andrew Rodland stumbled across this comment, and as he explains, "not being the kind to step down from a challenge (unless it's just really hard), I decided to write morse code output code." His patch against Linux kernel version 2.4.19-rc1-ac1 (plus preempt) actually modifies the kernel to report a panic in morse code! Andrew also submitted a small sample module for generating test panics.
From: Andrew Rodland
To: linux-kernel AT vger.kernel.org
Subject: [PATCH -ac] Panicking in morse code
Date: Fri, 19 Jul 2002 01:13:00 -0400
No, it's not 1 April.
I was researching panic_blink() for someone who needed a little help,
when I noticed the comment above the function definition, not being the
kind to step down from a challenge (unless it's just really hard), I
decided to write morse code output code.
The option panicblink= has been hijacked to be a simple bitfield:
bit 1 : blink LEDs
bit 2 : sound the PC speaker.
the blinking option depends only on pc_keyb.c. the pcspeaker option
depends on kb_mksound() actually doing something. At the moment, both of
these mean i386. The call to panic_blink() in panic() is still guarded
by an i386 #ifdef, anyway, for the moment. The default is to blink only,
because I figured the beeps would be too annoying. Opinions?
It recognizes letters, and digits, and treats everything else as a
space. The timings are tunable by #defines. It repeats the message
indefinitely. And it should only bloat the kernel by a few hundred
bytes, although if someone wants to wrap this in its own config option,
well, that's good too.
Anyway, here's the patch. It's against linux-2.4.19-rc1-ac1+preempt, but
I suspect it applies against all recent -ac. If 2.5 has this, it will
hopefully apply with some fuzz against that, too. I don't have a tree.
Here is what it says... (Score:5, Funny)
Four dits!
Two dits!
Dah!
Windows! Windows! Rah Rah Rah!
morse code translation... (Score:1, Funny)
dah = -
Re:Here is what it says... (Score:2)
We really needed that... (Score:1)
Really
More useful (Score:2)
Here's some more ideas:
1. Blinky lights go crazy when portsentry reports block yet another attempt at port 80 (best learn how to replace worn out blinky lights first);
2. Blinky lights make pretty patterns depending on up time of machine (Oops, now I'm flamebait since Windows users will never see pretty blinky lights);
3. Blinky lights go wild whenever a human female is within 10 feet of machine (unlike the machine's owner who may or may not notice, depending on the task at hand -- oy, did I really say that?);
I love blinky lights and thank the gods every day that I don't have adverse reactions to them. Now if I can just find a female who doesn't cause adverse reactions, I'm doing good!
Winamp plugin (Score:3, Funny)
Re:Winamp plugin ITUNES plugin (Score:2)
This IS Slashdot, right? (Score:5, Interesting)
Here's [node.to] an LED controller program inspired by that bit in the book.
Re:This IS Slashdot, right? (Score:2)
Just in case anyone here hasn't read it yet and is looking for something to do.
Re:This IS Slashdot, right? (Score:2)
(yet another reason for reading at -1)
Re:This IS Slashdot, right? (Score:2)
Speaking of which...does Van Ick (or Van Eck, I don't remember) phreaking really work/exist? I'd love to see a Slashdot feature on that.
I got through... here's google's copy (Score:1)
Google will also find you morse code tutorials :)
Compaq beep of death (Score:5, Funny)
A string of varying beeps. This was years ago, don't know if any recent hardware still does it.
Tech support: Hold the phone close to the system board so I can hear it.
That was funny.
-Pete
Re:Compaq beep of death (Score:3, Informative)
Nowadays, though, hardware is cheap enough that most people just start swapping out hardware when their computer does something other than the standard short beep on startup.
Now if we could patch the BIOS's to give errors in Morse code...
Re:Compaq beep of death (Score:2)
-- iCEBaLM
Re:Compaq beep of death (Score:3, Funny)
Re:Compaq beep of death (Score:2)
Aahhh...I have one sitting in the corner at my $ORK_PLACE. It is made out of a strange material called "metal", if you can believe that.
Re:Compaq beep of death (Score:2)
It's quite amazing, but not a joke. The beep sound on startup actually tells you what's wrong with the system. If you've picked up any (decent) PC DIY book there should have one section telling you what the beeps mean.
E.g. One long beep followed by endless short beep is referring to display card problem. I forgot the rest, though.
Morse? (Score:1)
[translation:
great, zero comments and it's already slashdotted. ]
Well, apparently morse code is lame...(stupid lameness filter)
Undoubtedly... (Score:4, Funny)
[imagine 'slashdotted' in morse here]
Lameness filter encountered. Post aborted!
Reason: Please use fewer 'junk' characters.
Morse != Junk! Damn you lameness filter!!
Re:Undoubtedly... (Score:2)
Why imagine when you can
dit dit dit, dit daw dit dit, dit daw, dit dit dit, dit dit dit dit, daw dit dit, daw daw daw,
daw, daw, dit, daw dit dit, daw dit dit dit daw,
Amiga had this in the 80s :D (Score:1)
*weeps* the memories
Here's your Code, Mr Morse (Score:2, Informative)
All it will say is... (Score:1)
(Think Kevin from Home Alone panicing.)
called lame for using lots of caps, so here's a whole sentance without caps. bleh.
also called lame for excessive junk characters. double bleh.
also warned because it took less than 20 seconds to post. how many different slashdot errors can one get in a single 2 line post? yeesh.
(Limited) mirror (Score:1)
Http://endlessjourney.netfirms.com
Reece,
PS. this is a great idea, all PC's should be able to do morse code
I would rather have a POST code type system (Score:5, Insightful)
As to the question of flashing the LED because Morse on the speaker might be too annoying, I say go for the speaker. Those who do know Morse know it by sound, not by individual dots and dashes, and seeing it on an LED is a very different thing than listening to it. If the system has panicked I'm already annoyed, beeping isn't going to be a problem. Just the opposite, if I'm nearby but not looking at the computer I want the beeping to get my attention to the problem.
And here's the really stupid question: What is this blinking system LED he's talking about???? I have a power LED on my PC, but it's not software controlled. Some PC's used to have a "turbo" LED, but that's been phased out. I sure hope he's not using the hard disk LED. Is he using a Keyboard LED or am I missing something really obvious here?
Re:I would rather have a POST code type system (Score:3, Informative)
Re:I would rather have a POST code type system (Score:2)
Perhaps they should just translate some already-existing characters into morse code. Isn't there usually a text error message associated with the kernel panic? If not that, how about the name of the function which caused the panic?
Re:I would rather have a POST code type system (Score:2, Informative)
As for the parent message, it has two modes of operation, currently, keyboard-LEDs and/or pc-speaker, but the latest version (v3) is potentially compatible with any sort of LED or beeper, if someone writes the code. The beeper, in fact, uses the same beep function as the VC's, which was already set up to be multi-arch-compatible in just that way.
In other words, yes, I _am_ trying to make this reasonably useful.
Re:I would rather have a POST code type system (Score:2)
Is he using a Keyboard LED or am I missing something really obvious here? I would guess both.
Re:I would rather have a POST code type system (Score:2)
Maybe Alan didn't come up with the optimal scheme this time, but you are way wrong about what's possible. In fact, a variable length string of up to 7 bits can be stored unambiguously in a single byte. See my post [theaimsgroup.com], which explains how the code works. Not my idea by the way, but once somebody points it out to you, it's obvious.
Re:I would rather have a POST code type system (Score:2)
Very nice. Should be clean to impliment too. Far superior to the 3 bit/5 bit approach. Thanks for posting the technique.
Re:I would rather have a POST code type system (Score:2)
Ay, you younguns... (Score:2)
dahdididadit didadidadidah = /. (Score:2, Insightful)
Since I myself is capable of morse ear reception much faster than normal people are able to speak, I would really like to have a morse interface to my Linux boxes.
Imagine also to get rid of the keyboard and use a simple morse key as input device. Ahhh nirvana at last.
Yes, it can send to the speaker, too! (Score:2)
If you follow the link, you'll see that he implimented it for the PC speaker as well. (You can set this as an option.) Of course, that depends on the speaker driver being in a decent state during the panic.
Mirror here (Score:2)
here for your pleasure. [x42.com]
I remember doing this on a embedded FORTH-system in the 80-ies. The only way to communicate with the board when the RS232 was gone was a little piezo-beeper.
A cool and excellent hack! (Score:4, Insightful)
ttyl
Farrell
backdraft (Score:4, Funny)
e r r o r - i n - m o r s e - c o d e - g e n e r z k b g h i l e r l b v c t q z
Doh!"
We need Sad Mac "chimes of death"... (Score:3, Informative)
One of the (many) cool things that differentiate Macs from PC's is the way the report POST failures.
Depending on if the video driver was sane or not yet, you'd get an infamous "San Mac" display, followed by a few codes in hex describing what was wrong. If not, you'd get POST-coded beeps.
What was really cool were the "chimes of death". Each Mac model family had a specific sound that played when the POST test failed. These ranged from the opening to the Twilight Zone theme, to a drum crash, to the sound of glass breaking, to a full-on car crash [mackido.com]. (You get get some of them here [mackido.com], but I KNOW there's a more comprehensive list with samples out there somewhere.)
Ahh, memories...
PDP-11 Console LEDs (Score:2, Interesting)
Each Operating System displayed a different pattern, so sometimes you could walk up to a computer and immediately know what OS was running without touching it. This was a very useful skill for impressing the gullable.
RSTS - displayed a pattern that cycled from left to right.
DSM - displayed a pattern that went from the sides to the center.
RSX - I can't remember what this one did, can anyone else recall?
B6700 ( Re:PDP-11 Console LEDs ) (Score:2)
The Burroughs B6700 (and similar models) was a 48-bit word (96-bit double) stack oriented mainframe. The main panel had an array of 12 by 16 lights showing the bits in the top two words (double words) in the current stack. At idle, those would light up with the Burroughs "B" logo.
Of course the challenge was to come up with code that would load those registers with some interesting pattern and keep it there long enough for the operators to notice.
Who would understand it (Score:2)
morse code. AC and BP have ham licenses. Don't know about the rest of the hackers..
There is a patent on this (Score:2)
My Idea Long Ago (Score:2)
At the time, there were many different BIOSes out there, with their own different beep-code values. It seemed that morse code was already the most wide-spread binary communication system in use by humans.
Now, there's really only two BIOS manufactures you'll see out there, and there's an increasing trend of having more advnaced BIOSes (non-Intel systems) which output error messages in different ways, (on-screen, serial cable, etc) which limits the usefullness of that idea today.
So... Why not do the same thing with Linux? Output to the screen, serial port, or parallel ports (print it out!). If nothing else, it would allow automation of information gathering, rather than requiring someone be right there, to translate the dots and dashes to messages.
Re:My Idea Long Ago (Score:2)
111 000 101010 000 111
Three short beep. Pause. Three Long beeps. Pause. Three Sort beeps.
OT: Cellphones do Morse! (Score:4, Interesting)
I commute in the masses making their way to and through NYC everyday, and I must hear that four times a day on the train.
Re:OT: Cellphones do Morse! (Score:2)
The others are "single beep" (easy to guess what that sounds like), "long & loud" (which spells out "connecting people" in morse code - Nokia's slogan) and "standard" (which sounds like "ooo" in morse - nine long beeps in groups of three).
What i wouldn't give (Score:2)
Re:What i wouldn't give (Score:2)
1) use a Unix on my PC, which i don't.. but lets not get Religolitical here.
2) Can even get past BIOS before my computer freezes. Which i can't. It sucks. When it freezes, it can freeze well into the OS Loading stage, or it can freeze in BIOS. No rhyme or reason. Im thinking theres an electrical fault somewhere..
Re:SOS (Score:1)
Re:SOS (Score:1)
Re:SOS (Score:2)
Re:SOS (Score:1)
Re:Why not make it stable, like WinXP? (Score:1)
Re:Why not make it stable, like WinXP? (Score:1)
Re:Save Our Ship! (Score:1)
So when his ship sank he could walk to shore!!
Re:A good idea (Score:1)
Re:A good idea (Score:1)
We had a server that would start playing some kind of song immediately on power up. Couldn't figure out why. Boss thought it was a virus. Eventually figured out it was designed to do that when it overheated.
Then there's the "wait fifteen minutes, and then you hear 11 beeps, and that tells you it's a memory problem, but only if you leave the computer on for 15 minutes, and stay in the same room." problem.
Re:A good idea (Score:1)
Re:A good idea (Score:1)
Re:You have gone too far ... (Score:2)