Re: summary: console reset

From: Bob Weissman (bob@omni.com)
Date: Wed Sep 05 1990 - 15:54:00 CDT


Robert Kuhn <apple!zariski.harvard.edu!kuhn> writes:

> We have users who like to reverse video, or otherwise change the console
> setup on Suns. We also have users running a variety of ill-behaved
> window systems (naming no names). I would lime to run a script to restore
> the console to its immediate post boot state. Among other things we
> currently use for same
>
> /usr/ucb/reset
> /usr/5bin/echo "\033"\[p
> /bin/clear_colormap
> /bin/clear_functions
> /usr/old/setkeys reset
> /usr/openwin/bin/kbd_mode -a
>
> Unfortuneately, this is not always sufficient! Anybody got other ideas?

Well, I looked at the manual and saw this in console(4S):

     ESC[s Reset terminal emulator (SUNRESET)
          Takes no parameters. Resets all modes to default,
          restores current font from PROM. Screen and cursor
          position are unchanged.

So I tried it.

Be warned that on a 4/110 running 4.0.3, this sequence panics the kernel!
Is this a known bug? I get the following crash:

Sep 5 13:36:54 borabora vmunix: csh: Data fault
Sep 5 13:36:54 borabora vmunix: kernel read fault at addr=0xffd0e000, pme=0xff007b84
Sep 5 13:36:54 borabora vmunix: Bus Error Reg 20<TIMEOUT>
Sep 5 13:36:54 borabora vmunix: pid=182, pc=0xffe8278c, sp=0xf80bcc68, psr=0x9002c2, context=7
Sep 5 13:36:54 borabora vmunix: g1-g7: ffe89a9c, 2e2, 0, 21400, 0, f80d3400, f80d3000
Sep 5 13:36:54 borabora vmunix: Begin traceback... sp = f80bcc68
Sep 5 13:36:54 borabora vmunix: Called from ffe96660, fp=f80bccc0, args=ffd0e000 fffffb84 0 0 4002e3 f8130ee4
Sep 5 13:36:54 borabora vmunix: Called from ffe96614, fp=f80bcd20, args=f808e6cc 4000c5 2710 ffd0e000 ffd0f000 f8130ee4
Sep 5 13:36:54 borabora vmunix: Called from ffe893a4, fp=f80bcd60, args=1c320 0 fff00000 ffffffff 0 20
Sep 5 13:36:54 borabora vmunix: Called from ffe890ac, fp=f80bcda0, args=12 12 ffffffff 12 0 ffffffff
Sep 5 13:36:54 borabora vmunix: Called from ffe8a2a4, fp=f80bce00, args=21 0 0 0 1
ffd0401f
Sep 5 13:36:54 borabora vmunix: Called from f807f2ec, fp=f80bce80, args=f80ed5df 1a ffefefe8 ffefefe4 ffefef98 73
Sep 5 13:36:54 borabora vmunix: Called from f8024024, fp=f80bcee0, args=ff18e650 f80e5300 f80ed5f9 7b3 0 1d
Sep 5 13:36:54 borabora vmunix: Called from f8023e74, fp=f80bcf40, args=4000c5 f807f1dc 0 0 4002e3 f8130ee4
Sep 5 13:36:54 borabora vmunix: Called from f8005c90, fp=f80bcfa0, args=f808e6cc 4000c5 2710 1 ff1b85c0 f8130ee4
Sep 5 13:36:54 borabora vmunix: Called from f803fc10, fp=ffffea80, args=0 f80e5300
f803fb00 e 18 1
Sep 5 13:36:54 borabora vmunix: End traceback...
Sep 5 13:36:54 borabora vmunix: panic: Data fault

-- 
Bob Weissman
Internet:	bob@omni.com
UUCP:		...!{apple,decwrl,pyramid,sgi,uunet}!omni!bob



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:05:58 CDT