home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / dec / 4140 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  5.6 KB

  1. Xref: sparky comp.sys.dec:4140 comp.unix.ultrix:5845
  2. Newsgroups: comp.sys.dec,comp.unix.ultrix
  3. Path: sparky!uunet!decwrl!pa.dec.com!granite.pa.dec.com!ajc
  4. From: ajc@pa.dec.com (AJ Casamento)
  5. Subject: Re: Halting a DECstation via BREAK
  6. In-Reply-To: brock@cs.unca.edu's message of Fri, 17 Jul 1992 21:38:40 GM
  7. Message-ID: <AJC.92Jul22192119@thendara.pa.dec.com>
  8. Sender: news@PA.dec.com (News)
  9. Organization: Digital Equipment Corporation
  10. References: <VIXIE.92Jul17100753@cognition.pa.dec.com>
  11.     <1992Jul17.184916.24625@uwm.edu> <1992Jul17.213840.1809@cs.unca.edu>
  12. Date: 22 Jul 92 19:21:19
  13. Lines: 126
  14.  
  15.  
  16.  
  17. In article <1992Jul17.213840.1809@cs.unca.edu> brock@cs.unca.edu (J. Dean 
  18. Brock) writes:
  19.  
  20.  
  21.  
  22. >> In article <1992Jul17.184916.24625@uwm.edu>, dave@opus.csd.uwm.edu (Dave 
  23. >> Rasmussen) writes:
  24. >> |>Doesn't CTRL ALT COMPOSE or CTRL ALT BS do the same thing on a Personal
  25. >> |>5000/xx consoles?  I heard it did but don't want to try it just now :-)
  26.  
  27. >> It's CTRL ALT DELETE.  It works on my DECstation 5000/25.
  28. >> (I had to do it once.)  I think it's odd that only works from
  29. >> a terminal plugged into the serial port.
  30.  
  31.  
  32. Folks,
  33.  
  34.   I had thought that there was more to this, so I asked one of my colleagues
  35. who had done some of the base system work for ACCESS.bus on the DS5000/xx.
  36. The following is Mark's reply to my inquiry. 
  37.  
  38. I hope that it helps.
  39.  
  40.                 Thanx,
  41.                   AJ
  42.  
  43.       **********************************************************************
  44.       * AJ Casamento            "The question is not whether or    *
  45.       * Digital's TRI/ADD Program     not the opinions are mine; but    *
  46.       * 529 Bryant Ave. PAG-2         rather, which of my personalities *
  47.       * Palo Alto, CA 94301-1616     do they belong to?"           *
  48.       * 415.617.3460                               *
  49.       * ajc@decwrl.dec.com                           *
  50.       **********************************************************************
  51.  
  52.  
  53. Mark's reply:
  54.  
  55.  
  56. There are several options in keybd `hot-key' behaviour, so first I'll
  57. tell you what the _default_ behaviour is, and then how to change it.
  58.  
  59.  
  60. Hot Key (keybd chord)        Function Name    Effect (by default)
  61. ---------------------        -------------    -------------------
  62. CTRL LEFT_ALT <X]           System RESET    reset CPU if system is "hung"
  63.  
  64. CTRL LEFT_ALT RETURN        Debug HALT    immed. return to boot firmware
  65.  
  66. CTRL LEFT_ALT LEFT_SHIFT <X]    ATTENTION    ignored
  67.  
  68.  
  69. Notes: "<X]" is aka the "delete" key on the LK501 and LK521 keyboards.
  70.  
  71.  
  72. We put a lot of thought into the meaning of "Reset" as applied to a
  73. multitasking & multiuser workstation.  The traditional definition from
  74. the PC world of RESET is instant, unconditional, complete
  75. self-destruct.    In a multitasking, disk-caching system intended for
  76. naive users, putting an Instant Self-Destruct on the keyboard seemed
  77. too dangerous.    Ideally, RESET should only have an effect if the
  78. system is "hung" (unresponsive); otherwise, it is ignored.
  79. Implementation:     when the RESET chord is pressed on the keyboard, the
  80. system module's A.b controller starts a timer, and asks the kernel
  81. device-driver if the system's okay.  If the kernel driver doesn't say
  82. "I'm okay" before timeout (typically a few seconds), the A.b
  83. controller asserts a hard-reset to the system module.
  84.  
  85. So, you should be able to hammer on CTRL-(left)ALT-<X] without
  86. any effect (unless the system's hung)... I'm even very careful to not lose
  87. the CTRL, ALT, and <X] keystrokes, so the chord can be interpreted by
  88. higher-level software (I have it mapped to cause my Window Mgr to exit,
  89. which logs me out :-)
  90.  
  91. We also recognized that kernel hackers occasionally need to purposely
  92. "crash" the system--this is where Debug HALT comes in.    When pressed,
  93. it causes an immediate return to firmware.  Hopefully, some CPU state
  94. (PC, SP) can be preserved for analysis.     On the DS5000/xx this is
  95. implemented via a high-priority interrupt (rather than CPU reset), so
  96. it is conceivable that this might not work.  The DS5000/100 series has
  97. the same "problem" with it's backpanel reset button.  IMHO, this should be
  98. disabled (i.e. have no effect) by default.
  99.  
  100. ATTENTION is generated by the LK501 and '521, but by default is simply
  101. ignored by the DS5000/xx system module (tho' this can be changed).
  102.  
  103. This table applies to both the LK501 and LK521 (Short or "Un*x")
  104. keyboards, but it is possible that other keyboards (such as a
  105. hypothetical PC 101-key keybd), in the interests of compatibility,
  106. could map different chords or sequences to these functions.  There is
  107. actually a two-level mapping going on, from `hot-key' to internal
  108. ACCESS.bus Signal message (done by the keybd), then from A.b Signal
  109. message to function (done by system's A.b controller and
  110. device-driver).     The DS5000/xx system module is only concerned with
  111. the A.b Signal messages--NOT with the actual key.  In fact, there is
  112. nothing to prevent a non-keyboard device from sending Signal messages
  113. to the system module.
  114.  
  115. So far, I've only talked about default behaviour.  The (apparently
  116. undocumented) utility "setrah" (Set Reset Halt Attn) can be used to
  117. view/change settings.
  118.  
  119. % /etc/setrah -H
  120. setrah: usage: setrah [-r|-a|-h|+r|+a|+h|-d[ ]value]
  121.     -r    RESET signal is ignored
  122.     +r    RESET signal causes complete host reset
  123.     -a    ATTN does not cause host reset
  124.     +a    ATTN causes host reset
  125.     -h    HALT signal ignored
  126.     +h    HALT signal causes jump into console ROM
  127.     -d[ ]value    indicates how many seconds to wait before hard reset
  128.         where value is one of 0, 1, 5, or 10 seconds
  129.  
  130.     Default is +h +r -d5 (any options modify this default --
  131.     it is always used as a base.)
  132.  
  133. +/-a enables/disables the ATTENTION key-chord to initiate a System RESET.
  134. +/-r enables/disables the RESET key-chord to initiate a System RESET.
  135.  
  136. To disable all hot-keys:  setrah -rah
  137. To enable Instant Self-Destruct on C-A-DEL:  setrah +r -d0
  138. (i.e. pressing C-A-DEL will now ALWAYS perform a hard reset).
  139.  
  140.  
  141.