From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KVs0v-0001MU-BZ for mharc-grub-devel@gnu.org; Wed, 20 Aug 2008 14:02:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVs0u-0001MO-OW for grub-devel@gnu.org; Wed, 20 Aug 2008 14:02:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVs0u-0001MC-6b for grub-devel@gnu.org; Wed, 20 Aug 2008 14:02:32 -0400 Received: from [199.232.76.173] (port=53476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVs0u-0001M9-39 for grub-devel@gnu.org; Wed, 20 Aug 2008 14:02:32 -0400 Received: from gateway02.websitewelcome.com ([69.56.142.20]:52138) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KVs0t-0006ZS-Nl for grub-devel@gnu.org; Wed, 20 Aug 2008 14:02:31 -0400 Received: (qmail 13277 invoked from network); 20 Aug 2008 18:16:31 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway02.websitewelcome.com with SMTP; 20 Aug 2008 18:16:31 -0000 Received: from c-67-185-142-228.hsd1.wa.comcast.net ([67.185.142.228]:53024 helo=localhost) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1KVs0k-00064f-BW for grub-devel@gnu.org; Wed, 20 Aug 2008 13:02:22 -0500 Date: Wed, 20 Aug 2008 11:02:20 -0700 From: Colin D Bennett To: grub-devel@gnu.org Message-ID: <20080820110220.4c5ce275@gibibit.com> In-Reply-To: <20080820101259.GB8201@thorin> References: <48ABDC72.10200@isy.liu.se> <20080820101259.GB8201@thorin> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/dgyVmqv16z10Vjh+g.uNr5."; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: Dell Media Direct button X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2008 18:02:32 -0000 --Sig_/dgyVmqv16z10Vjh+g.uNr5. Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 20 Aug 2008 12:12:59 +0200 Robert Millan wrote: > On Wed, Aug 20, 2008 at 10:57:22AM +0200, Per =C3=96berg wrote: > > Hi > >=20 > > Some laptops, e.g., from Dell have a special button that they use to > > boot a special embedded OS for media only instead of the ordinary > > OS. > >=20 > > For my Dell XPS1330M I can determine if the Media button was > > pressed by first writing 0xf9 to port 0x70 and then testing bit > > 0x08 of port 0x71. > >=20 > > It would be really nice if such a test could be enabled in grub so > > that grub can go directly to a specific menu alternative without > > showing the gui if the media button was pressed. > >=20 > > Is this interesting? I'd like to contribute but I don't know where > > to start. >=20 > Sounds interesting, but this needs some thought on how to design it. >=20 > I suppose what you want is change the 'default' variable. Perhaps > increase it by 1? But then, where do you do this? grub_machine_init > is too early as 'default' hasn't been set yet. >=20 > Maybe we could have a global 'int default_offset' variable that is > initialized in grub_machine_init and later on used by normal.mod? If I pressed the "Media Direct" button, I would also want to have a timeout of 0, since by pressing the Media Direct button instead of the power button, I've already indicated which entry I want to boot, and there is no need to show the menu -- unless, perhaps, we decided to show a different "media" menu... so hopefully giving all the power to the grub.cfg script would be enough to make all this possible. Regards, Colin --Sig_/dgyVmqv16z10Vjh+g.uNr5. Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkisXC4ACgkQokx8fzcGbYeZCACffcBnCqihqs07quWkKSBnkRXE /4YAnRtetm0/H0rECtqCcmGe8ilu0q2C =/y8D -----END PGP SIGNATURE----- --Sig_/dgyVmqv16z10Vjh+g.uNr5.--