From nobody@FreeBSD.org  Wed Jun  8 15:14:15 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4F54716A424
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Jun 2005 15:14:15 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2A1E543D5D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Jun 2005 15:14:15 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j58FEEhH023639
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 8 Jun 2005 15:14:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j58FEEcj023638;
	Wed, 8 Jun 2005 15:14:14 GMT
	(envelope-from nobody)
Message-Id: <200506081514.j58FEEcj023638@www.freebsd.org>
Date: Wed, 8 Jun 2005 15:14:14 GMT
From: trasz <trasz@buziaczek.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: loading green_saver makes screen go blank immediately.
X-Send-Pr-Version: www-2.3

>Number:         82036
>Category:       kern
>Synopsis:       loading green_saver makes screen go blank immediately.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 08 15:20:05 GMT 2005
>Closed-Date:    
>Last-Modified:  Sun Jul 17 23:20:17 GMT 2005
>Originator:     trasz
>Release:        5.4
>Organization:
>Environment:
FreeBSD traszkan.ds7 5.4-RELEASE FreeBSD 5.4-RELEASE #2: Wed May 11 19:24:26 CEST 2005     trasz@traszkan.ds7:/usr/obj/usr/src/sys/TRASHCAN  i386
>Description:
      kldloading green_saver.ko blanks screen immediately, without waiting for a few minutes. otherwise it works ok. btw, there is no man page for green_saver - it's kindof described in splash(4), so maybe we should create hardlinks from splash(4) to whatever_saver?

>How-To-Repeat:
      boot without green_saver loaded.  do 'kldload green_saver' and wait for about one second.

>Fix:
      
>Release-Note:
>Audit-Trail:

From: Giorgos Keramidas <keramida@freebsd.org>
To: trasz <trasz@buziaczek.pl>
Cc: bug-followup@freebsd.org
Subject: Re: kern/82036: loading green_saver makes screen go blank immediately.
Date: Thu, 9 Jun 2005 07:20:41 +0300

 On 2005-06-08 15:14, trasz <trasz@buziaczek.pl> wrote:
 > boot without green_saver loaded.  do 'kldload green_saver' and wait
 > for about one second.
 
 Does this happen only with green_saver?
 
 I haven't had the time to test this, but I suspect this is because you
 don't have blanktime="" set in your rc.conf and the timeout defaults to
 a short time.  Can you verify that when blanktime is set to a non-zero
 value in rc.conf kldloading the green_saver works as expected?
 

From: Giorgos Keramidas <keramida@freebsd.org>
To: trasz <trasz@buziaczek.pl>
Cc: bug-followup@freebsd.org
Subject: Re: kern/82036: loading green_saver makes screen go blank immediately.
Date: Mon, 18 Jul 2005 01:56:36 +0300

 Adding to audit trail.
 
 % Date: Sun, 17 Jul 2005 16:32:18 +0200
 % From: User Trasz <trasz@pin.if.uz.zgora.pl>
 % To: Giorgos Keramidas <keramida@freebsd.org>
 % Subject: Re: [keramida@freebsd.org: Re: kern/82036: loading green_saver makes screen go blank immediately.]
 %
 % sorry for late reply.  freebsd.org apparently decided to throw away
 % email from my 'main' account.
 %
 % Giorgos Keramidas <keramida@freebsd.org> wrote:
 % > To: trasz <trasz@buziaczek.pl>
 % > Cc: bug-followup@freebsd.org
 % >
 % > On 2005-06-08 15:14, trasz <trasz@buziaczek.pl> wrote:
 % > > boot without green_saver loaded.  do 'kldload green_saver' and wait
 % > > for about one second.
 % >
 % > Does this happen only with green_saver?
 %
 % no.  it happens with every screen saver, right after kldloading it.
 %
 % > I haven't had the time to test this, but I suspect this is because you
 % > don't have blanktime="" set in your rc.conf and the timeout defaults to
 % > a short time.
 %
 % timeout defaults to zero, but in that case screen saver should be disabled.
 %
 % > Can you verify that when blanktime is set to a non-zero
 % > value in rc.conf kldloading the green_saver works as expected?
 %
 % yes.  the problem, however, is that screen savers blank the screen
 % right after being kldloaded.  i load it from /boot/loader.conf, so it
 % blanks the screen somewhere during kernel initialization, before boot
 % scripts can set blanktime.

From: Giorgos Keramidas <keramida@freebsd.org>
To: bug-followup@freebsd.org
Cc: User Trasz <trasz@pin.if.uz.zgora.pl>
Subject: Re: kern/82036: loading green_saver makes screen go blank immediately.
Date: Mon, 18 Jul 2005 02:18:00 +0300

 On 2005-07-17 23:00, Giorgos Keramidas <keramida@freebsd.org> wrote:
 >% Date: Sun, 17 Jul 2005 16:32:18 +0200
 >% From: User Trasz <trasz@pin.if.uz.zgora.pl>
 >%
 >% > I haven't had the time to test this, but I suspect this is because you
 >% > don't have blanktime="" set in your rc.conf and the timeout defaults to
 >% > a short time.
 >%
 >% timeout defaults to zero, but in that case screen saver should be disabled.
 >%
 >% > Can you verify that when blanktime is set to a non-zero
 >% > value in rc.conf kldloading the green_saver works as expected?
 >%
 >% yes.  the problem, however, is that screen savers blank the screen
 >% right after being kldloaded.  i load it from /boot/loader.conf, so it
 >% blanks the screen somewhere during kernel initialization, before boot
 >% scripts can set blanktime.
 
 AHA!  Bingo!  This is why it blanks out when /etc/rc.d/syscons runs.
 
 Loading the saver module from /boot/loader.conf is what makes this
 trigger.  If you load the screen saver module from rc.conf using:
 
 	saver="snake"
 
 it all works as expected.  I'm not sure if this is a bug though.
 
 - Giorgos
 
>Unformatted:
