From owner-freebsd-stable@FreeBSD.ORG Thu Sep 25 22:53:02 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8647AEB1 for ; Thu, 25 Sep 2014 22:53:02 +0000 (UTC) Received: from ruggedinbox.com (ruggedinbox.com [94.156.77.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22891D24 for ; Thu, 25 Sep 2014 22:53:01 +0000 (UTC) Message-ID: <3d80542ccc73686094ddde4e18465e4a.squirrel@s4bysmmsnraf7eut.onion> In-Reply-To: References: <4490c8c4d489370c7617c0ace9e773be.squirrel@s4bysmmsnraf7eut.onion> Date: Fri, 26 Sep 2014 00:51:11 +0200 Subject: Re: vt(4) "newcons" and 80x25 vty? (tested: 10.1-BETA2) From: beeessdee@ruggedinbox.com To: "Ronald Klop" Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Sep 2014 22:53:02 -0000 On Thu, 25 Sep 2014 18:13:56 +0200, "Ronald Klop" wrote: > On Thu, 25 Sep 2014 17:31:49 +0200, wrote: > >> I daily use FreeBSD with base system virtual terminals (no X). I am >> excited of vt(4) with Unicodes support. But screen has arbitrary number >> of lines and columns, whatever will fit with selected font. How to get >> standard 80x25? > > Hello, > > Can you try hw.vga.textmode=1 in loader.conf? It will a similar screen as > syscons did. > See man vt(4). Thanks for the response. That sounds as good workaround, if works when kms/drm loaded; I will try it as soon as I can be by my test machine. For longer term, when there is time, I like to hack on font system for other goals in my previous mail: Smooth fonts sized right at native/max resolution provided with new(ish) kms driver stack. What a waste to stick to vgamode. Any pointers toward where I should start? Documentation is scarcer than the usual FreeBSD (not a criticism - it is new subsystem!). If "documentation is the source" then I can do that - but it takes yet more time, much more starting from no knowledge of vt(4) subsystem font handling. Better start with manpage or equivalent overview, then read sources... Thanks again. [EOF] > Regards, > Ronald. > > >> >> First of all, thanks to ray and the various "ed"s for all the hard work >> making the newcons/vt(4) modern subsystem. This is very important, and >> much less appreciated than shiny popular widgets! I very much look >> forward to when vt(4) has the stability and feature parity with >> decades-old syscons... plus all the critical new features for >> non-English language, etc. >> >> I just tested in 10.1-BETA2 with following steps; specific questions are >> below: >> >> 1. Drop to loader prompt, "set kern.vty=vt", "boot". >> >> 2. Drop from installer to "live system". >> >> 3. kldload appropriate kms driver (could also do in step 1). >> >> 4. vidfont(1) has bug which prevents selecting Gallant (12x22 >> biggest font provided). So, use vidcontrol(1) with "-f" switch >> directly. >> >> 5. Try setting LINES and COLS in environment, at least fool >> the applications... Not working, really. >> >> vidcontrol(1) is totally confused about screen modes. I understand this >> is work in progress. >> >> I read every manpage, https://wiki.freebsd.org/Newcons , searched web. >> >> Why this is important: If I edit source code in vi(1), my lines will >> become too long. Other applications expecting the 80x25 or other >> customary sizes may be confused. Most of all, I want the fonts bigger - >> as big as fit 80x25 on my physical screen. I have poor eyesight! >> >> Quick calc example for optimal font sizing: At the common nowadays >> resolution of 1366x768, biggest pixel fitting 80x25 will be 17x30. For >> tty style fonts with 2:1 ratio, this means 15x30 font with 166x18 waste >> pixels HxW - unless extra pixel row needed after each line, in which >> case 14x28 font with 246x43 waste pixels. A 12x22 font (as gallant) >> with extra 1px row spacing results in 113x33 character grid - or if >> restricted to 80x25 grid (how!?), then 406x193 waste pixels. >> >> Questions: >> >> A. How to force 80x25 terminal, even if it does not use >> whole screen? This will be the quick workaround! >> >> B. Where are sources for Gallant? What program is used to >> create it? A brief web search did not reveal this. >> >> C. Any work in font besides Gallant? (Sorry, it is matter >> of taste!) I would try make my own, but I am not font >> talent. >> >> D. Any suggestions from font guys of non-Xorg program to >> rasterize OpenType fonts, make Metafont rasters into >> the appropriate format, etc.? >> >> E. Side question: Is vgl(3) being supported or replaced with >> vt(4) newcons? (Have not tested; but at the brief look, it >> all ioctls changed around.) >> >> F. How to set screen resolution, with not working vidcontrol(1)? >> >> Suggestions: >> >> * Dynamically created raster font, from vector sources, to create at >> runtime the largest glyphs which will permit 80 columns and 25 lines >> at the screen's actual resolution. Just like most tex systems >> automatically run mf when needed. I could maybe play with this, if >> I have time and the font sources. >> >> * Try converting metafont output to the appropriate format. It's >> already tuned for to give old fashioned pixmap. I will play with this >> when time permits. >> >> I realize, most people just use X. But, please do not forget people who >> don't like the Xorg bugware disaster. >> >> Thanks again for all hard work to make the vt(4) newcons. >> >> >> _______________________________________________ >> freebsd-stable@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to >> "freebsd-stable-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >