From owner-freebsd-stable@FreeBSD.ORG Fri Dec 9 14:55:11 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CB1C16A41F for ; Fri, 9 Dec 2005 14:55:11 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EE6B43D78 for ; Fri, 9 Dec 2005 14:54:59 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id jB9EnXWA071777; Fri, 9 Dec 2005 07:49:34 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <4399997D.7010304@samsco.org> Date: Fri, 09 Dec 2005 07:49:33 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Thomas E. Zander" References: <20051209093610.GR898@marvin.riggiland.au> In-Reply-To: <20051209093610.GR898@marvin.riggiland.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: stable@freebsd.org Subject: Re: Boot manager beep X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 14:55:11 -0000 Thomas E. Zander wrote: > Hi, > > just installed a fresh 6.0 on a laptop, using the standard boot > manager. The problem is: The default volume of pcspeaker can't be tuned > in bios or anywhere else before loading a sound driver (in this case > snd_ich). This especially means the pc speaker volume is always set to > 100% at every boot which results in a horribly loud beep which I am > afraid the built-in "speakers" can't do very often :-) > > So what about this one: > > --- /usr/src/sys/boot/i386/boot0/boot0.S > +++ boot0.S > @@ -201,9 +201,7 @@ > /* > * Start of input loop. Beep and take note of time > */ > -main.10: movb $ASCII_BEL,%al # Signal > - callw putchr # beep! > - xorb %ah,%ah # BIOS: Get > +main.10: xorb %ah,%ah # BIOS: Get > int $0x1a # system time > movw %dx,%di # Ticks when > addw _TICKS(%bp),%di # timeout > > This might be an issue on other architectures (amd64?) as well, I > haven't checked that right now. > > TIA, > Riggs > The beep is useful for some people who run headless systems, but it is indeed annoying for others, especially with laptops in quiet places. We should probably conditionalize this on a variable that can go into /etc/make.conf. Note that amd64 uses the i386 bits here. Scott