From owner-svn-src-user@FreeBSD.ORG Tue Nov 12 16:59:49 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8B6042B1; Tue, 12 Nov 2013 16:59:49 +0000 (UTC) Received: from mail.ambrisko.com (mail.ambrisko.com [70.91.206.90]) by mx1.freebsd.org (Postfix) with ESMTP id 625FE2C5E; Tue, 12 Nov 2013 16:59:49 +0000 (UTC) X-Ambrisko-Me: Yes Received: from server2.ambrisko.com (HELO internal.ambrisko.com) ([192.168.1.2]) by ironport.ambrisko.com with ESMTP; 12 Nov 2013 09:03:39 -0800 Received: from ambrisko.com (localhost [127.0.0.1]) by internal.ambrisko.com (8.14.4/8.14.4) with ESMTP id rACGxm27023424; Tue, 12 Nov 2013 08:59:48 -0800 (PST) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.14.4/8.14.4/Submit) id rACGxmER023423; Tue, 12 Nov 2013 08:59:48 -0800 (PST) (envelope-from ambrisko) Date: Tue, 12 Nov 2013 08:59:48 -0800 From: Doug Ambrisko To: Aleksandr Rybalko Subject: Re: svn commit: r257815 - in user/ed/newcons/sys/dev: fb vt vt/hw/fb Message-ID: <20131112165948.GA19229@ambrisko.com> References: <201311072108.rA7L8rI9057248@svn.freebsd.org> <201311111505.27108.jhb@freebsd.org> <20131112001216.f3b4d381.ray@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131112001216.f3b4d381.ray@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: src-committers@FreeBSD.org, John Baldwin , svn-src-user@FreeBSD.org X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Nov 2013 16:59:49 -0000 On Tue, Nov 12, 2013 at 12:12:16AM +0200, Aleksandr Rybalko wrote: | On Mon, 11 Nov 2013 15:05:26 -0500 | John Baldwin wrote: | | > On Thursday, November 07, 2013 4:08:53 pm Aleksandr Rybalko wrote: | > > Author: ray | > > Date: Thu Nov 7 21:08:52 2013 | > > New Revision: 257815 | > > URL: http://svnweb.freebsd.org/changeset/base/257815 | > > | > > Log: | > > Handle suspend/resume. Switch to console window before suspend, | > > switch back on resume. That fix issue with broken Xorg image after | > > resume. Fix some style whilst here. | > | > Could you add a runtime sysctl to control this? I haven't needed it | > on my x220. syscons had a sysctl for this. | | No problem John. | Committed r258023. | kern.vt.suspendswitch=0 will do the trick. This feature should work well for me. I added this sysctl: Index: sys/dev/vt/vt_core.c =================================================================== --- sys/dev/vt/vt_core.c (revision 258052) +++ sys/dev/vt/vt_core.c (working copy) @@ -108,6 +108,7 @@ VT_SYSCTL_INT(debug, 0, "Newcons debug level"); VT_SYSCTL_INT(deadtimer, 15, "Time to wait busy process in VT_PROCESS mode"); VT_SYSCTL_INT(suspendswitch, 1, "Switch to VT0 before suspend"); +VT_SYSCTL_INT(splash, 1, "Display splash screen"); static unsigned int vt_unit = 0; static MALLOC_DEFINE(M_VT, "vt", "vt device"); @@ -759,7 +760,8 @@ vt_axis_t top, left; /* Display a nice boot splash. */ - if (!(vd->vd_flags & VDF_TEXTMODE) && (boothowto & RB_MUTE)) { + if (!vt_splash && !(vd->vd_flags & VDF_TEXTMODE) && \ + (boothowto & RB_MUTE)) { top = (vd->vd_height - vt_logo_height) / 2; left = (vd->vd_width - vt_logo_width) / 2; so I can see the FreeBSD boot messages when I set kern.vt.splash=0. Thanks, Doug A.