From owner-freebsd-hackers@freebsd.org Thu Jul 18 15:48:21 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 60ACBAB2C3 for ; Thu, 18 Jul 2019 15:48:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 580D88D95B for ; Thu, 18 Jul 2019 15:48:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x832.google.com with SMTP id h21so27645804qtn.13 for ; Thu, 18 Jul 2019 08:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R6FjXMd4SVd9EcnJuk+UkcxnT0+hHw9K94N7AglPMCk=; b=krBKPkNQVPGn+iUvIj+JfJPE9CTdRiNK6OMTucJq09rEjVv5ynr6vHBk+p9qy0yIdc CwO38oQRpoJ2Fb+XUrQzZTmGOUxwUT34LVdEvcZuVfBFV1L1abzXpgi8Pw7PCwFk5WL7 67KC/liUsbRku9tRTnZcfcdty7oQKvZNTZlWJrld0Hx2NsANK27dSg0MeaynKYH4sN2Q vEDwzGepozV1/LXaY+ikJh+xQ97u32wI8ruQdahbRBGJPbIeff/Tw56trcqpKzt/xYW9 j9hLHFCwaFXfs7dRlHMGrhDtXvLkXsAlayDSINf0ffMBoE+5jme4nekA/W0/k+ZtOao0 ljag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R6FjXMd4SVd9EcnJuk+UkcxnT0+hHw9K94N7AglPMCk=; b=YDVKjJp2pPQoMlsGjDonjnsY8TRYVPIQXXdwdTf16NINvNc/L/5dTkyXGYaizDOxel IB65xyzMgtTTqqVbYLwAsIS8z+WpYPWhFbp48hZD0R5GKN9wb4QRtBlYulmOdGPUJo0P Xp1Uf0x7w6nlE5euRt7dfGo4E5/xG5AWVAZhW/SiQLys5bvn30vV6HibPsg9IpAz61Bg G56pHXPtBcxzfMinndKVP9xbbn7Z0B0CsDbEN5D7b50TcGEq7f9bpC/dDmO+QCukMbDv RK13dQHH+/Tv6p0VIDCpQxbXXtOhp0SJy5ZZKtFvxYp+7C8ImexggGrFbg+Ja7QKrHQH FoEA== X-Gm-Message-State: APjAAAXuI++nl1DQY2jCDoUp9HPC50pgfjkAaNcefyvhhLMp+6/E7+16 7ZKFKZzmEPD/c60BIavqhVLI/oaRX9MmGi4wEWRMdg== X-Google-Smtp-Source: APXvYqyx8zptIK3w5vUtWk3PhZAa/hB3/A5yVkpF+VFkRqZoaLjHN8vE3cmvhvPhSOKRrIj5EtmBYHxF2q44v2pBTVE= X-Received: by 2002:ac8:140a:: with SMTP id k10mr14189281qtj.175.1563464899306; Thu, 18 Jul 2019 08:48:19 -0700 (PDT) MIME-Version: 1.0 References: <721ab68d-cde4-41bb-c105-d15cf07903fa@FreeBSD.org> In-Reply-To: From: Warner Losh Date: Thu, 18 Jul 2019 09:48:07 -0600 Message-ID: Subject: Re: Resetting console on boot To: Ryan Moeller Cc: "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 580D88D95B X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=krBKPkNQ X-Spamd-Result: default: False [-5.96 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.95)[-0.949,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[ALT1.aspmx.l.google.com,aspmx.l.google.com,ALT2.aspmx.l.google.com]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-3.01)[ip: (-9.41), ipnet: 2607:f8b0::/32(-3.15), asn: 15169(-2.44), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jul 2019 15:48:21 -0000 And sometimes having both leads to the problem... vidconsole is not a total solution. Warner On Thu, Jul 18, 2019 at 8:57 AM Ryan Moeller wrote: > Apparently this also could be wanted with vidconsole, as some IPMI console > redirection to com1 and serial over lan redirects from the vidconsole. I > just discovered this while testing Lev's patches. > > -Ryan > > On Tue, Jul 16, 2019 at 11:08 AM Warner Losh wrote: > > > > > > > On Tue, Jul 16, 2019 at 4:55 AM Lev Serebryakov wrote: > > > >> On 15.07.2019 23:29, Ryan Moeller wrote: > >> > >> > What do people think about having an early boot stage send some escape > >> > sequence to reset terminals to some sane default terminal settings? > >> Often > >> > firmware or other causes will leave an unreadable font color or break > >> line > >> > feeds, and the terminal tends to stay that way until a shell clears > and > >> > resets the screen. If a shell can do it, surely loader could do it (or > >> even > >> > earlier, if it is not too complex). To my knowledge it should be just > a > >> > matter of printing some escape codes before starting the normal boot > >> menus > >> > when using a serial console. I believe this is already done when the > >> > console is set to vidconsole or efi. > >> > > >> > Thoughts? Suggestions? > >> > >> I've proposed this long ago for serial terminals: > >> > >> https://reviews.freebsd.org/D17102 > >> https://reviews.freebsd.org/D17103 > >> > >> I have hardware which sets "black on black" before passing control to > OS. > >> > > > > That would work for the BIOS case, but not the UEFI case, which is where > I > > see the biggest issues. > > > > Warner > > > > > -- > Ryan Moeller > iXsystems, Inc. > OS Developer > Email: ryan@iXsystems.com > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >