Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ngiuh-0007zN-Sw for mharc-grub-devel@gnu.org; Sun, 14 Feb 2010 13:09:47 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ngiuf-0007yo-Ml for grub-devel@gnu.org; Sun, 14 Feb 2010 13:09:45 -0500 Received: from [140.186.70.92] (port=34292 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ngiuf-0007yO-4u for grub-devel@gnu.org; Sun, 14 Feb 2010 13:09:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ngiue-0004FS-51 for grub-devel@gnu.org; Sun, 14 Feb 2010 13:09:45 -0500 Received: from solo.fdn.fr ([80.67.169.19]:53380) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ngiud-0004FA-Rj for grub-devel@gnu.org; Sun, 14 Feb 2010 13:09:44 -0500 Received: from const.ipv6 (youpi.is-a-geek.org [80.67.176.89]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTP id 1D0F744238 for ; Sun, 14 Feb 2010 19:09:40 +0100 (CET) Received: from samy by const.ipv6 with local (Exim 4.71) (envelope-from ) id 1NgiuZ-0006kP-BS for grub-devel@gnu.org; Sun, 14 Feb 2010 19:09:39 +0100 Date: Sun, 14 Feb 2010 19:09:39 +0100 From: Samuel Thibault To: The development of GNU GRUB Message-ID: <20100214180939.GS4975@const.famille.thibault.fr> References: <20100202130916.GH6401@const.bordeaux.inria.fr> <1265119787.2605.2.camel@fz.local> <20100202230043.GA7619@const.famille.thibault.fr> <4B6C4CB2.1040805@gmail.com> <20100205181118.GE5621@const.c.hospitality.swisscom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20100205181118.GE5621@const.c.hospitality.swisscom.com> User-Agent: Mutt/1.5.12-2006-07-14 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: beep support? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2010 18:09:45 -0000 Samuel Thibault, le Fri 05 Feb 2010 19:11:18 +0100, a =C3=A9crit : > Vladimir '=CF=86-coder/phcoder' Serbinenko, le Fri 05 Feb 2010 17:52:02= +0100, a =C3=A9crit : > > Could you detail at which events beep should be produced and propose = a > > patch to add appropriate hooks? >=20 > A beep just when the menu is first drawn is already a good thing and is > trivial to add by just calling play in the main menu. Here is a proposed patch. Is the GRUB_INIT_TUNE variable name Ok? Samuel 2010-02-14 Samuel Thibault * util/grub-mkconfig.in: Export GRUB_INIT_TUNE. * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE. --- util/grub-mkconfig.in 2010-02-10 18:53:13 +0000 +++ util/grub-mkconfig.in 2010-02-14 18:05:11 +0000 @@ -222,7 +222,8 @@ export GRUB_DEFAULT \ GRUB_GFXMODE \ GRUB_THEME \ GRUB_GFXPAYLOAD_LINUX \ - GRUB_DISABLE_OS_PROBER + GRUB_DISABLE_OS_PROBER \ + GRUB_INIT_TUNE =20 if test "x${grub_cfg}" !=3D "x"; then rm -f ${grub_cfg}.new =3D=3D=3D modified file 'util/grub.d/00_header.in' --- util/grub.d/00_header.in 2010-02-03 00:24:07 +0000 +++ util/grub.d/00_header.in 2010-02-14 17:55:04 +0000 @@ -158,3 +158,11 @@ else set timeout=3D${GRUB_TIMEOUT} EOF fi + +# Play an initial tune +if [ "x${GRUB_INIT_TUNE}" !=3D "x" ] ; then + cat << EOF +insmod play +play ${GRUB_INIT_TUNE} +EOF +fi