From owner-freebsd-stable@FreeBSD.ORG Fri Dec 9 09:36:38 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 3726716A430 for ; Fri, 9 Dec 2005 09:36:38 +0000 (GMT) (envelope-from riggs@riggiland.dyndns.org) Received: from riggiland.dyndns.org (ppp-62-245-160-169.mnet-online.de [62.245.160.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57C6F43D5A for ; Fri, 9 Dec 2005 09:36:21 +0000 (GMT) (envelope-from riggs@riggiland.dyndns.org) Received: from marvin.riggiland.au (localhost [127.0.0.1]) by riggiland.dyndns.org (8.13.4/8.13.4) with ESMTP id jB99aA8k053126 for ; Fri, 9 Dec 2005 10:36:12 +0100 (CET) (envelope-from riggs@marvin.riggiland.au) Received: (from riggs@localhost) by marvin.riggiland.au (8.13.4/8.13.4/Submit) id jB99aABt053125 for stable@freebsd.org; Fri, 9 Dec 2005 10:36:10 +0100 (CET) (envelope-from riggs) Date: Fri, 9 Dec 2005 10:36:10 +0100 From: "Thomas E. Zander" To: stable@freebsd.org Message-ID: <20051209093610.GR898@marvin.riggiland.au> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Organization: Chaotic X-PGP-KeyID: 0xC85996CD X-PGP-URI: http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0xC85996CD X-PGP-Fingerprint: 4F59 75B4 4CE3 3B00 BC61 5400 8DD4 8929 C859 96CD X-Mailer: Marvin Mail (Build 1134119442) X-Operating-System: FreeBSD 6.0-STABLE Cc: Subject: 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 09:36:38 -0000 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 -- - Now the world has gone to bed | Now I lay me down to sleep - -- Darkness won't engulf my head | Try to count electric sheep -- --- I can see by infra-red | Sweet dream wishes you can keep --- ---- How I hate the night | How I hate the night ----