* Halting a DECstation via BREAK @ 1992-07-17 16:49 John Hascall 1992-07-17 14:07 ` Paul A Vixie 0 siblings, 1 reply; 7+ messages in thread From: John Hascall @ 1992-07-17 16:49 UTC (permalink / raw) Is there someway to configure a (headless) DECstation so that a BREAK on the console tty line halts the processor? Thanks, John -- John Hascall Our liberties we prize and our rights we will maintain Project Vincent Iowa State University Computation Center john@iastate.edu Ames, IA 50011 515/294-9551 [fax -1717] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Halting a DECstation via BREAK 1992-07-17 16:49 Halting a DECstation via BREAK John Hascall @ 1992-07-17 14:07 ` Paul A Vixie 1992-07-17 18:49 ` Dave Rasmussen 1992-07-17 19:42 ` ioctl(TIOC[CS]BRK) woes (was Re: Halting a DECstation via BREAK) John Hascall 0 siblings, 2 replies; 7+ messages in thread From: Paul A Vixie @ 1992-07-17 14:07 UTC (permalink / raw) > Is there someway to configure a (headless) DECstation so that a BREAK on the > console tty line halts the processor? no. only the decsystem 5400/5500/5800 and VAX lines have this feature. -- Paul Vixie, DEC Network Systems Lab Palo Alto, California, USA "Don't be a rebel, or a conformist; <vixie@pa.dec.com> decwrl!vixie they're the same thing, anyway. Find <paul@vix.com> vixie!paul your own path, and stay on it." -me ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Halting a DECstation via BREAK 1992-07-17 14:07 ` Paul A Vixie @ 1992-07-17 18:49 ` Dave Rasmussen 1992-07-17 21:38 ` J. Dean Brock 1992-07-17 19:42 ` ioctl(TIOC[CS]BRK) woes (was Re: Halting a DECstation via BREAK) John Hascall 1 sibling, 1 reply; 7+ messages in thread From: Dave Rasmussen @ 1992-07-17 18:49 UTC (permalink / raw) From article <VIXIE.92Jul17100753@cognition.pa.dec.com>, by vixie@pa.dec.com (Paul A Vixie): >> Is there someway to configure a (headless) DECstation so that a BREAK on the >> console tty line halts the processor? > > no. only the decsystem 5400/5500/5800 and VAX lines have this feature. Doesn't CTRL ALT COMPOSE or CTRL ALT BS do the same thing on a Personal 5000/xx consoles? I heard it did but don't want to try it just now :-) ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Halting a DECstation via BREAK 1992-07-17 18:49 ` Dave Rasmussen @ 1992-07-17 21:38 ` J. Dean Brock 1992-07-22 23:21 ` AJ Casamento 0 siblings, 1 reply; 7+ messages in thread From: J. Dean Brock @ 1992-07-17 21:38 UTC (permalink / raw) In article <1992Jul17.184916.24625@uwm.edu>, dave@opus.csd.uwm.edu (Dave Rasmussen) writes: |>Doesn't CTRL ALT COMPOSE or CTRL ALT BS do the same thing on a Personal |>5000/xx consoles? I heard it did but don't want to try it just now :-) It's CTRL ALT DELETE. It works on my DECstation 5000/25. (I had to do it once.) I think it's odd that only works from a terminal plugged into the serial port. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Halting a DECstation via BREAK 1992-07-17 21:38 ` J. Dean Brock @ 1992-07-22 23:21 ` AJ Casamento 0 siblings, 0 replies; 7+ messages in thread From: AJ Casamento @ 1992-07-22 23:21 UTC (permalink / raw) In article <1992Jul17.213840.1809@cs.unca.edu> brock@cs.unca.edu (J. Dean Brock) writes: >> In article <1992Jul17.184916.24625@uwm.edu>, dave@opus.csd.uwm.edu (Dave >> Rasmussen) writes: >> |>Doesn't CTRL ALT COMPOSE or CTRL ALT BS do the same thing on a Personal >> |>5000/xx consoles? I heard it did but don't want to try it just now :-) >> It's CTRL ALT DELETE. It works on my DECstation 5000/25. >> (I had to do it once.) I think it's odd that only works from >> a terminal plugged into the serial port. Folks, I had thought that there was more to this, so I asked one of my colleagues who had done some of the base system work for ACCESS.bus on the DS5000/xx. The following is Mark's reply to my inquiry. I hope that it helps. Thanx, AJ ********************************************************************** * AJ Casamento "The question is not whether or * * Digital's TRI/ADD Program not the opinions are mine; but * * 529 Bryant Ave. PAG-2 rather, which of my personalities * * Palo Alto, CA 94301-1616 do they belong to?" * * 415.617.3460 * * ajc@decwrl.dec.com * ********************************************************************** Mark's reply: There are several options in keybd `hot-key' behaviour, so first I'll tell you what the _default_ behaviour is, and then how to change it. Hot Key (keybd chord) Function Name Effect (by default) --------------------- ------------- ------------------- CTRL LEFT_ALT <X] System RESET reset CPU if system is "hung" CTRL LEFT_ALT RETURN Debug HALT immed. return to boot firmware CTRL LEFT_ALT LEFT_SHIFT <X] ATTENTION ignored Notes: "<X]" is aka the "delete" key on the LK501 and LK521 keyboards. We put a lot of thought into the meaning of "Reset" as applied to a multitasking & multiuser workstation. The traditional definition from the PC world of RESET is instant, unconditional, complete self-destruct. In a multitasking, disk-caching system intended for naive users, putting an Instant Self-Destruct on the keyboard seemed too dangerous. Ideally, RESET should only have an effect if the system is "hung" (unresponsive); otherwise, it is ignored. Implementation: when the RESET chord is pressed on the keyboard, the system module's A.b controller starts a timer, and asks the kernel device-driver if the system's okay. If the kernel driver doesn't say "I'm okay" before timeout (typically a few seconds), the A.b controller asserts a hard-reset to the system module. So, you should be able to hammer on CTRL-(left)ALT-<X] without any effect (unless the system's hung)... I'm even very careful to not lose the CTRL, ALT, and <X] keystrokes, so the chord can be interpreted by higher-level software (I have it mapped to cause my Window Mgr to exit, which logs me out :-) We also recognized that kernel hackers occasionally need to purposely "crash" the system--this is where Debug HALT comes in. When pressed, it causes an immediate return to firmware. Hopefully, some CPU state (PC, SP) can be preserved for analysis. On the DS5000/xx this is implemented via a high-priority interrupt (rather than CPU reset), so it is conceivable that this might not work. The DS5000/100 series has the same "problem" with it's backpanel reset button. IMHO, this should be disabled (i.e. have no effect) by default. ATTENTION is generated by the LK501 and '521, but by default is simply ignored by the DS5000/xx system module (tho' this can be changed). This table applies to both the LK501 and LK521 (Short or "Un*x") keyboards, but it is possible that other keyboards (such as a hypothetical PC 101-key keybd), in the interests of compatibility, could map different chords or sequences to these functions. There is actually a two-level mapping going on, from `hot-key' to internal ACCESS.bus Signal message (done by the keybd), then from A.b Signal message to function (done by system's A.b controller and device-driver). The DS5000/xx system module is only concerned with the A.b Signal messages--NOT with the actual key. In fact, there is nothing to prevent a non-keyboard device from sending Signal messages to the system module. So far, I've only talked about default behaviour. The (apparently undocumented) utility "setrah" (Set Reset Halt Attn) can be used to view/change settings. % /etc/setrah -H setrah: usage: setrah [-r|-a|-h|+r|+a|+h|-d[ ]value] -r RESET signal is ignored +r RESET signal causes complete host reset -a ATTN does not cause host reset +a ATTN causes host reset -h HALT signal ignored +h HALT signal causes jump into console ROM -d[ ]value indicates how many seconds to wait before hard reset where value is one of 0, 1, 5, or 10 seconds Default is +h +r -d5 (any options modify this default -- it is always used as a base.) +/-a enables/disables the ATTENTION key-chord to initiate a System RESET. +/-r enables/disables the RESET key-chord to initiate a System RESET. To disable all hot-keys: setrah -rah To enable Instant Self-Destruct on C-A-DEL: setrah +r -d0 (i.e. pressing C-A-DEL will now ALWAYS perform a hard reset). ^ permalink raw reply [flat|nested] 7+ messages in thread
* ioctl(TIOC[CS]BRK) woes (was Re: Halting a DECstation via BREAK) 1992-07-17 14:07 ` Paul A Vixie 1992-07-17 18:49 ` Dave Rasmussen @ 1992-07-17 19:42 ` John Hascall 1992-07-17 22:42 ` Matt Thomas 1 sibling, 1 reply; 7+ messages in thread From: John Hascall @ 1992-07-17 19:42 UTC (permalink / raw) I ask: }> Is there someway to configure a (headless) DECstation so that a BREAK on the }> console tty line halts the processor? vixie@pa.dec.com (Paul A Vixie) writes: }no. only the decsystem 5400/5500/5800 and VAX lines have this feature. Well that makes this question academic, but it's still bugging me. Why does the ioctl(TIOCSBRK) work (apparently), but the ioctl(TIOCCBRK) gets errno 25 (ENOTTY, "Not a typewriter")??? errno = 0; /* just in case */ if (-1 == ioctl(fdtty, TIOCSBRK, (char *)0)) { /* ... bitch about errno and exit ... */ } sleep(3); errno = 0; /* just in case */ if (-1 == ioctl(fdtty, TIOCCBRK, (char *)0)) { /* ... bitch about errno and exit ... */ } If it makes a difference, fdtty is a LAT tty `connected' with lcp -h. John -- John Hascall Our liberties we prize and our rights we will maintain Project Vincent Iowa State University Computation Center john@iastate.edu Ames, IA 50011 515/294-9551 [fax -1717] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ioctl(TIOC[CS]BRK) woes (was Re: Halting a DECstation via BREAK) 1992-07-17 19:42 ` ioctl(TIOC[CS]BRK) woes (was Re: Halting a DECstation via BREAK) John Hascall @ 1992-07-17 22:42 ` Matt Thomas 0 siblings, 0 replies; 7+ messages in thread From: Matt Thomas @ 1992-07-17 22:42 UTC (permalink / raw) In article <1992Jul17.194211.16289@news.iastate.edu>, john@iastate.edu (John Hascall) writes: |>Why does the ioctl(TIOCSBRK) work (apparently), but the ioctl(TIOCCBRK) |>gets errno 25 (ENOTTY, "Not a typewriter")??? |> |> errno = 0; /* just in case */ |> if (-1 == ioctl(fdtty, TIOCSBRK, (char *)0)) { |> /* ... bitch about errno and exit ... */ |> } |> sleep(3); |> errno = 0; /* just in case */ |> if (-1 == ioctl(fdtty, TIOCCBRK, (char *)0)) { |> /* ... bitch about errno and exit ... */ |> } |> |>If it makes a difference, fdtty is a LAT tty `connected' with lcp -h. It does. LAT only can "send" a break, it can't clear a break. When it gets a TIOCSBRK, it send a DATA_B slot to the terminal with the BREAK bit set. TIOCCBRK has no meaning and the original author didn't check for it. I guess that we could modify LAT to silently eat the TIOCCBRK. Too bad abou the timing though. It's probably too late to get into ULTRIX V4.3 (but I'll try) but it can be incorporated into the next release of DEC OSF/1. -- Matt Thomas Internet: thomas@lkg.dec.com DECnet-ULTRIX Development UUCP: ...!decwrl!thomas Digital Equipment Corporation Disclaimer: This message reflects my own Littleton, MA warped views, etc. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1992-07-22 23:21 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1992-07-17 16:49 Halting a DECstation via BREAK John Hascall 1992-07-17 14:07 ` Paul A Vixie 1992-07-17 18:49 ` Dave Rasmussen 1992-07-17 21:38 ` J. Dean Brock 1992-07-22 23:21 ` AJ Casamento 1992-07-17 19:42 ` ioctl(TIOC[CS]BRK) woes (was Re: Halting a DECstation via BREAK) John Hascall 1992-07-17 22:42 ` Matt Thomas
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox