From nobody Fri Apr 07 11:32:58 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PtGTW4FYmz44XBZ for ; Fri, 7 Apr 2023 11:33:35 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2620:137:6000:10::142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "prime.gushi.org", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PtGTV3LcWz3Gck for ; Fri, 7 Apr 2023 11:33:34 +0000 (UTC) (envelope-from freebsd@gushi.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (vpn-us.f.root-servers.org [149.20.8.9]) (authenticated bits=0) by prime.gushi.org (8.16.1/8.16.1) with ESMTPSA id 337BX9bC062035 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Apr 2023 04:33:10 -0700 (PDT) (envelope-from freebsd@gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 337BX9bC062035 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1680867190; bh=x8NghfGcIninetVIq/tYiHVxRXSFgxt4QA62R3K68nY=; h=From:Subject:Date:In-Reply-To:Cc:To:References; z=From:=20"Dan=20Mahoney=20(Ports)"=20|Subject:= 20Re:=20Can=20not=20boot=20without=20monitor=20attached|Date:=20Fr i,=207=20Apr=202023=2004:32:58=20-0700|In-Reply-To:=20|Cc:=20questions@freebsd.org|To:=20=3D?utf-8?Q?A ndreas_Kusalananda_K=3DC3=3DA4h=3DC3=3DA4ri?=3D=20|References:=20=20; b=rM3Y1+wesVRZBbRqZxm3H455JILzUNChhdxsFrSXyxODCifbpn/2lAxR607spcbru 0QRACwXnhmt00ixFAv/W82bDBCcYqDMJR5H84txtBkn7jqvI8mqEZUQrklr3+ThHMn crvrdLcUNcDteV/kkU96ro9nkyGaF6kxbPws8AhkwH8WO5xs+5QatGAm0e0Un3iwlK eLpLIlPLe618e+AVSHsQ/yW11rnpBscE9dSy2jT7q65RkYdtODAsoFvfOglqpnl4s5 FSMHWkXZDKh8NMFjXtryLZWK4gfY+i/n1+XpHCcX8vPLarX8+QulUpsIe28gnq4TZh XKhjoHuqG2TAg== X-Authentication-Warning: prime.gushi.org: Host vpn-us.f.root-servers.org [149.20.8.9] claimed to be smtpclient.apple From: "Dan Mahoney (Ports)" Message-Id: <84F23B71-9094-468E-BE0C-4690AE530BD5@gushi.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_EF8095CC-807B-4584-BFF0-1DD822F29AB9" List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: Can not boot without monitor attached Date: Fri, 7 Apr 2023 04:32:58 -0700 In-Reply-To: Cc: questions@freebsd.org To: =?utf-8?Q?Andreas_Kusalananda_K=C3=A4h=C3=A4ri?= References: X-Mailer: Apple Mail (2.3731.500.231) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (prime.gushi.org [149.20.68.142]); Fri, 07 Apr 2023 11:33:19 +0000 (UTC) X-Rspamd-Queue-Id: 4PtGTV3LcWz3Gck X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:393507, ipnet:2620:137:6000::/44, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_EF8095CC-807B-4584-BFF0-1DD822F29AB9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 7, 2023, at 3:32 AM, Andreas Kusalananda K=C3=A4h=C3=A4ri = wrote: >=20 > On Fri, Apr 07, 2023 at 11:40:47AM +0200, Kusalananda K=C3=A4h=C3=A4ri = wrote: >> Hi, >>=20 >> I'm trying to set up a headless FreeBSD 13.1 system. I've done so >> successfully before on this particular machine, but for whatever = reason, >> after a complete reinstall, it doesn't want to boot without a monitor >> attached via HDMI. Since it never shows up on the network I'm = assuming >> it never even gets past the boot prompt. >>=20 >> If I plug in a HDMI cable to a monitor before booting, it boots as >> expected. Plugging in a monitor after unsuccessfully trying to boot >> without a monitor does not work (black display). >>=20 >> I tried adding -P to /boot.config, but this had no effect. The = system >> is, apart from that, fairly vanilla. >>=20 >> The system is a fan-less Chinese(?) "Basoaro" system with an American >> Megatrends BIOS, but I can't find anything in the BIOS that seems >> relevant, and since it *used* to be possible to boot the system = without >> an attached monitor, I'm assuming it's not a BIOS-related issue. >>=20 >> Whatever I did before to get it to boot headless, I've forgotten what = it >> was and need a reminder and/or pointers from you guys. >>=20 >=20 > I believe my issue might have been solved by simply setting >=20 > console=3D"efi" >=20 > ... in /boot/loader.conf >=20 > This seems to not block the boot process when there's no attached = video > or serial console. >=20 > I was initially afraid of setting a value to this setting as I didn't > want to get locked out completely with no way of accessing the system, > but I don't know whether that's even a possible risk. I will say that, in the past, when dealing with MacOS and working at a = dentist=E2=80=99s office, where our software providers needed to log in = via remote desktop and the like, or VNC, our consultants needed us to = buy a cheap hdmi dummy console plug. We left it connected all the time = and it, made our system think there was a monitor there when there = wasn=E2=80=99t (and supported/assumed some nominal display size). If you don=E2=80=99t find another option in the bios/uefi = configs/loader.conf, this is always one.= --Apple-Mail=_EF8095CC-807B-4584-BFF0-1DD822F29AB9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Apr = 7, 2023, at 3:32 AM, Andreas Kusalananda K=C3=A4h=C3=A4ri = <andreas.kahari@abc.se> wrote:

On Fri, Apr 07, 2023 at 11:40:47AM +0200, = Kusalananda K=C3=A4h=C3=A4ri wrote:
Hi,

I'm trying to set up a headless = FreeBSD 13.1 system.  I've done so
successfully before on this = particular machine, but for whatever reason,
after a complete = reinstall, it doesn't want to boot without a monitor
attached via = HDMI.  Since it never shows up on the network I'm assuming
it = never even gets past the boot prompt.

If I plug in a HDMI cable = to a monitor before booting, it boots as
expected.  Plugging in = a monitor after unsuccessfully trying to boot
without a monitor does = not work (black display).

I tried adding -P to /boot.config, but = this had no effect.  The system
is, apart from that, fairly = vanilla.

The system is a fan-less Chinese(?) "Basoaro" system = with an American
Megatrends BIOS, but I can't find anything in the = BIOS that seems
relevant, and since it *used* to be possible to boot = the system without
an attached monitor, I'm assuming it's not a = BIOS-related issue.

Whatever I did before to get it to boot = headless, I've forgotten what it
was and need a reminder and/or = pointers from you guys.


I = believe my issue might have been solved by simply setting

console=3D"efi"

... in /boot/loader.conf

This seems to not block the boot process = when there's no attached video
or = serial console.

I was = initially afraid of setting a value to this setting as I = didn't
want to get locked out = completely with no way of accessing the system,
but I don't know whether that's even a = possible risk.


I will say = that, in the past, when dealing with MacOS and working at a dentist=E2=80=99= s office, where our software providers needed to log in via remote = desktop and the like, or VNC, our consultants needed us to buy a cheap = hdmi dummy console plug.   We left it connected all the time and = it, made our system think there was a monitor there when there wasn=E2=80=99= t (and supported/assumed some nominal display = size).

If you don=E2=80=99t find another option in = the bios/uefi configs/loader.conf, this is always = one.
= --Apple-Mail=_EF8095CC-807B-4584-BFF0-1DD822F29AB9--