From owner-freebsd-current@FreeBSD.ORG Thu May 29 20:37:17 2014 Return-Path: Delivered-To: current@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 53AAC642 for ; Thu, 29 May 2014 20:37:17 +0000 (UTC) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BD2672518 for ; Thu, 29 May 2014 20:37:16 +0000 (UTC) Received: by mail-lb0-f176.google.com with SMTP id p9so499840lbv.35 for ; Thu, 29 May 2014 13:37:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=BujbmJAXB+gjAx1QYkEQcbhAg04weki3h/c1t03WR6c=; b=Hg+KxGBbpqjFi1Mv6SAYhtdPITsKLOxebQ0hmgfUgWEy1gna3bn2cLKv5jxej58cNB 0aL+bQ3lAzk/RjqMRVfVhQp0FkwCbuVxCq5KfQC/nqjKB6Ra3UUIeTY/KfwJQ3Rkvml6 1xgczp7AayomSttl+jefblX/TgrszISfabA/qmC9cTza08smZG4QbvW/gzi1K4n9miMh 6EoeruqLcqAwmSJ9rFpn/UpufbZV3hu0T17l+sNrPhJwDq3XnZYm5/Yk4pHSleOFtwxB ksY7J7sr7isQSJb5EtasGt0W+Ak83aRQkB3AA7v19z9r5dSmbtwMt4xrdI4VT8zdOOWM Tx7Q== X-Gm-Message-State: ALoCoQl4RLH4PNGEHzTK0j+ZzFwjJk8Kp6au+sLRfo+A3KJiAnBYLbTNUTgin0JXyWSV1fH36JOk X-Received: by 10.112.34.243 with SMTP id c19mr7586000lbj.57.1401395833989; Thu, 29 May 2014 13:37:13 -0700 (PDT) Received: from rnote.ddteam.net (203-161-133-95.pool.ukrtel.net. [95.133.161.203]) by mx.google.com with ESMTPSA id d8sm1393825lah.12.2014.05.29.13.37.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 29 May 2014 13:37:12 -0700 (PDT) Date: Thu, 29 May 2014 23:37:05 +0300 From: Aleksandr Rybalko To: Kevin Oberman Subject: Re: RFT vidcontrol for vt(4) Message-Id: <20140529233705.db3d307e.ray@ddteam.net> In-Reply-To: References: <20140311162743.072870a9afd4f74fff9e99e8@ddteam.net> <5370CE34.8000905@orange.fr> <20140512171415.558dbcb68971d1db675ea39e@ddteam.net> <5370E47E.7030304@orange.fr> <20140529161743.a124c539c3b73dc908d7850e@ddteam.net> <53874A8D.8000205@orange.fr> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Claude Buisson , Ed Maste , "current@freebsd.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Thu, 29 May 2014 20:37:17 -0000 On Thu, 29 May 2014 09:11:04 -0700 Kevin Oberman wrote: > On Thu, May 29, 2014 at 7:56 AM, Claude Buisson > wrote: > > > On 05/29/2014 15:17, Aleksandr Rybalko wrote: > > > >> On Mon, 12 May 2014 17:10:54 +0200 > >> Claude Buisson wrote: > >> > >> On 05/12/2014 16:14, Aleksandr Rybalko wrote: > >>> > >>>> On Mon, 12 May 2014 15:35:48 +0200 > >>>> Claude Buisson wrote: > >>>> > >>>> On 03/11/2014 15:27, Aleksandr Rybalko wrote: > >>>>> > >>>>>> Hello hackers! > >>>>>> > >>>>>> Here is link to the patch[1] for vidcontrol that makes it to > >>>>>> know if it > >>>>>> run w/ or w/o vt(4) and if vt(4) is present, then: > >>>>>> 1. screen map feature disabled (vt(4) use Unicode, so screen > >>>>>> map not needed). > >>>>>> 2. enable to load fornt from /usr/share/vt/fonts/ dir. PLease > >>>>>> put "gallant" font[2] to /usr/share/vt/fonts/. > >>>>>> > >>>>>> Looks like it works fine, but maybe I forgot something :) > >>>>>> So please test it in your own environment. > >>>>>> > >>>>>> Big thanks to Ed for preparing that font file! > >>>>>> > >>>>>> 1. > >>>>>> http://people.freebsd.org/~ray/newcons/vidcontrol_for_vt_ > >>>>>> 2014-03-11.patch > >>>>>> 2. http://people.freebsd.org/~emaste/newcons/gallant.fnt > >>>>>> > >>>>>> Thanks! > >>>>>> > >>>>>> WBW > >>>>>> > >>>>>> > >>>>> Hi, > >>>>> > >>>>> I applied this patch on a 10.0-STABLE r264390 with a Radeon > >>>>> Mobility X300 (M22) > >>>>> 5460, and DRM2. > >>>>> > >>>>> I could load an home made terminus 16x32 font (my eyes are too > >>>>> old to work with > >>>>> a 8x16 font on a 1920x1200 17" screen), by > >>>>> > >>>>> - looping on each ttyvN in a rc.local script > >>>>> > >>>>> or > >>>>> > >>>>> - adding allscreens_flags="-f terminus-u32" to rc.conf (for > >>>>> /etc/rc.d/syscons > >>>>> consumption) > >>>>> > >>>> > >>>> Cool! > >>>> Are you like to share that font? > >>>> > >>>> > >>> Off course. > >>> In fact I generated 12x24, 14x28 and 16x32 fonts from > >>> terminus-font-4.38 by > >>> using the tools/tools/vt/fontcvt utility. > >>> I will send you these fonts offlist (because the FreeBSD lists do > >>> not like > >>> attachments). > >>> > >>> > >>>>> I just discovered than scrolling back in console mode works > >>>>> ONLY on ttyv0. > >>>>> > >>>> > >>>> Huh, it's surprising me. Before your mail I think we have > >>>> problem with scrollback on vty0, but not on others. :) > >>>> Looks like I have to concentrate and fix them all at once. > >>>> > >>>> > >>> I confirm that scrollback works on ttyv0, but not on others ttyv > >>> when a font is > >>> loaded. > >>> > >>> > >>>>> What I have to do to get scrolling on every ttyvN ? > >>>>> > >>>>> The only way to get the system working in normal VGA mode > >>>>> (640x480) (not loading > >>>>> the drm2 and radeon kms modules by loader.conf) is by > >>>>> configuring the BIOS to > >>>>> not do display expansion - which leads to the same ridiculously > >>>>> small font.. > >>>>> > >>>>> And of course, kbdmux keeps being mandatory to be able to load a > >>>>> keymap. > >>>>> > >>>> > >>>> Yeah, I still remember. :) > >>>> > >>>> > >>> This could be noted in the newly born vt(4) man page .. > >>> > >>> > >>>>> TIA > >>>>> > >>>>> Claude Buisson > >>>>> > >>>>> > >>>> Many thanks Claude! > >>>> > >>>> WBW > >>>> > >>>> > >>> CBu > >>> > >>> > >> Hello Claude! > >> > >> Looks like nobody care about this patch, only you did test for > >> it :) So I commit it to HEAD, if you need it to be MFCed, I will > >> do it a week later. > >> > >> Many thanks for your help!!! > >> > >> WBW > >> > >> > > Hello ! > > > > I (sort of) solved the scroll problem by patching > > sys/dev/vt/font/vt_font_default.c > > to compile my 16x32 font into the kernel. > > > > Clearly some more work is needed to make the modified vidcontrol a > > finished utility and to have the proper rc.conf knob to load a > > custom font at boot. And it must also be possible to generate a > > kernel with a custom font, without > > having to patch the source. > > > > I also found that > > tools/tools/vt/mkkfont/mkkfont.c > > does not put a comma after the final "}" of .vf_map, so one must > > apply the attached patch. > > > > Keep the work going ! > > > > CBu > > > > Actually, I did test vidcontrol patches, but everything just seemed > to work fine, so I failed to report anything. I guess reporting that > nothing happened is a bit boring, but still important. > > -- > R. Kevin Oberman, Network Engineer, Retired > E-mail: rkoberman@gmail.com Late is better than never :) Thanks Kevin! WBW -- Aleksandr Rybalko