From owner-freebsd-bugs Sat Dec 20 22:30:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA11794 for bugs-outgoing; Sat, 20 Dec 1997 22:30:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA11788; Sat, 20 Dec 1997 22:30:03 -0800 (PST) (envelope-from gnats) Date: Sat, 20 Dec 1997 22:30:03 -0800 (PST) Message-Id: <199712210630.WAA11788@hub.freebsd.org> To: freebsd-bugs Cc: From: Kazutaka YOKOTA Subject: Re: kern/5314: Screensaver continues operating after kernel panic Reply-To: Kazutaka YOKOTA Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/5314; it has been noted by GNATS. From: Kazutaka YOKOTA To: toasty@dragondata.com Cc: freebsd-gnats-submit@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: kern/5314: Screensaver continues operating after kernel panic Date: Sun, 21 Dec 1997 15:27:12 +0900 >>Number: 5314 >>Category: kern >>Synopsis: Screensaver continues operating after kernel panic >>Confidential: no >>Severity: non-critical >>Priority: low >>Responsible: freebsd-bugs >>State: open >>Class: change-request >>Submitter-Id: current-users >>Arrival-Date: Tue Dec 16 01:40:00 PST 1997 >>Last-Modified: >>Originator: Kevin Day >>Organization: >DragonData >>Release: -current and 2.2.5-release >>Environment: >multiple machines >>Description: >After a kernel panic, the screensaver isn't de-activated. It's somewhat common >, unfortunately, that the machine will be unable to automatically reboot after > a kernel panic. However, the code for running the screensaver seems pretty cr >ash-proof. [snip] Would you possibly apply the following patch to /sys/i386/isa/syscons.c and see if it works for you? Kazu yokota@freebsd.org --- syscons.c-1.242 Tue Dec 9 10:41:31 1997 +++ syscons.c Wed Dec 17 16:23:50 1997 @@ -2152,7 +2152,7 @@ } /* should we stop the screen saver? */ - if (mono_time.tv_sec <= scrn_time_stamp + scrn_blank_time) + if (mono_time.tv_sec <= scrn_time_stamp + scrn_blank_time || panicstr) if (scrn_blanked > 0) stop_scrn_saver(current_saver); @@ -2220,7 +2220,8 @@ /* should we activate the screen saver? */ if ((scrn_blank_time != 0) - && (mono_time.tv_sec > scrn_time_stamp + scrn_blank_time)) + && (mono_time.tv_sec > scrn_time_stamp + scrn_blank_time) + && (panicstr == NULL)) (*current_saver)(TRUE); timeout(scrn_timer, NULL, hz / 25);