From owner-freebsd-current@FreeBSD.ORG Tue Feb 10 13:03:10 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8ED11065673 for ; Tue, 10 Feb 2009 13:03:10 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id 162588FC1B for ; Tue, 10 Feb 2009 13:03:09 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: by ewy14 with SMTP id 14so3694279ewy.19 for ; Tue, 10 Feb 2009 05:03:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=xdw4RmSsQaSaF0u4tsT5ilMynUqki+9dKsavlVrPHLE=; b=iFTnTRTK8glTVligRYXv7TLzRaCi+iiQSmiEhUnMYmLCXDKIkt4g9UCkE8bnkg9QUW hHiXSOtbh4sCkBWRZ2UeERudx54AM1vkmjXz6jwVatU9A72qSZ9Wb50ORF+uT8tExPZn CuQJ5YiQG6Mjd3MvuoX+cQP6AwKP12tRSA8tQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=mP2AgjAMgkOh/0oTLmPO1qDBcIMe8Ytl4RLuDUE/IUg8DoRhp8Yqs8FmGStJT4X8tt t7y1SqI7ynSNd3cySXFhaaqoiuukhpY4ovo5sLuRhlTGmOk8mbY2QHH9qn/lIe3K9Cte 64iLkyogxoLqeuqVfcnBQA+gpg1FeIFJn+GYs= Received: by 10.210.86.10 with SMTP id j10mr875792ebb.153.1234269400351; Tue, 10 Feb 2009 04:36:40 -0800 (PST) Received: from ?0.0.0.0? ([196.34.241.123]) by mx.google.com with ESMTPS id 7sm4146597eyg.57.2009.02.10.04.36.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 10 Feb 2009 04:36:39 -0800 (PST) From: David Naylor Organization: Private To: freebsd-current@freebsd.org, shuvaev@physik.uni-wuerzburg.de Date: Tue, 10 Feb 2009 14:36:50 +0200 User-Agent: KMail/1.9.10 References: <200902100908.n1A989IJ034744@lurza.secnetix.de> In-Reply-To: <200902100908.n1A989IJ034744@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1509852.2kRW0svqZF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200902101436.53619.naylor.b.david@gmail.com> X-Mailman-Approved-At: Tue, 10 Feb 2009 13:49:58 +0000 Cc: Subject: Re: CFT: Graphics support for /boot/loader X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 13:03:11 -0000 --nextPart1509852.2kRW0svqZF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 10 February 2009 11:08:09 Oliver Fromme wrote: > Hi, > > Sorry for the late reply. I'm swamped with emails, and > real life takes its time, too ... > > Alexey Shuvaev wrote: > > Looks good, BTW is 640x480 in 4 bits per pixel the maximum of standard > > VGA? Can you go higher or you are already in protected mode with > > (almost) no BIOS? I mean, 640x480 is ok, but 4 bits per pixel... mmm... > > the same 16 colors as in text mode... although with a palette... > > For logos and simple graphics, 16 colors is actually not > that bad. Look at the various examples (screen shots) that > you can find here: > > http://www.secnetix.de/olli/FreeBSD/vloader/ > > With a proper palette and dithering you can make quite > nice background graphics with only 16 colors. I made all > of those with the netbpm tools, xv and a little bit of gimp. > > Also take into account that this is "only" a boot screen. > Most people will see it only for a few seconds. > > Regarding your question about VGA modes: > > Standard VGA supports at most 640x480 at 4 bits and 320x200 > at 8 bits. So that's the common denominator. > > There are some "hacked modes" (sometimes called "mode X") > that allow somewhat higher resolutions, such as 704=D7528 > at 4 bits or 360x256 at 8 bits. But those don't work well > with all monitors. > > And then there is VESA, of course. I plan to add limited > VESA support, so higher resolutions are possible. However, > there are a few issues with VESA support: > > - 1. Some VESA BIOS implementations have serious bugs, > because nobody uses it in the Windows world. > > - 2. There is no simple and reliable way to autodetect > which resolutions are supported by the monitor. > > - 3. There are many, many different VESA modes and display > resolutions. It's unfeasible that FreeBSD ships with > appropriate graphics files for every conceivable VESA > mode, color depth, display size and height/width ratio. > > So, the default FreeBSD boot loader (as shipped on the CD > or DVD images) will use the standard VGA mode 640x480 at > 4 bits, because that's the only thing guaranteed to work > everywhere out of the box. It might be possible to use > a VESA mode at higher color depth (e.g. 8 bits), but the > default resolution should stay at 640x480. > > Of course, those who want higher resolutions will be able > to use them by editing their theme.conf file and providing > graphics files of appropriate size. > > Best regards > Oliver Agreed about 'default' behaviour, but... It would be a nice feature to support themes at multiple (high) resolutions= =20 (and depth) [for example]: - Provide images at the common aspect ratios (and at the largest resolutio= ns)=20 and scale the image to the correct size. - Provide the correct theme.conf for the various aspect ratios/sizes (perh= aps=20 by using relative offsets [i.e. top: 10%, left-middle: 25%, width: 15%]) - Add a switch in loader.conf to choose the correct resolution... - Add caching/tool to do the scaling for first point. Or provide a way=20 to 'compile' the themes at various resolutions (and provide proper theme.co= nf=20 files for that specific resolution?) Of course the above is just a suggestion... =20 Also, GRUB AFAIK supports higher resolutions, perhaps they have found a way= to=20 handle the VESA problems... Oh, and nice work ;-). Loader is looking very good. =20 Thanks David --nextPart1509852.2kRW0svqZF Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEABECAAYFAkmRdOUACgkQUaaFgP9pFrKuMgCffQYBiQn0q9BQ0mQLkAZsSiYZ A5UAn3sI8EGgBzs1oX8Nq2n5/BsdWt3f =YSh/ -----END PGP SIGNATURE----- --nextPart1509852.2kRW0svqZF--