From owner-freebsd-questions@freebsd.org Thu Feb 22 14:59:32 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 641DFF0B671 for ; Thu, 22 Feb 2018 14:59:32 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C4C148791F for ; Thu, 22 Feb 2018 14:59:31 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.213.55]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPA (Nemesis) id 0LtX6a-1eeo9N41CO-010t34; Thu, 22 Feb 2018 15:59:22 +0100 Date: Thu, 22 Feb 2018 15:59:21 +0100 From: Polytropon To: =?UTF-8?B?5p2O5ZGo5Y2O?= Cc: freebsd Subject: Re: how to change console font type and size ? Message-Id: <20180222155921.ca0fea60.freebsd@edvax.de> In-Reply-To: <62509DC6-7852-4CB7-92E3-0ACC0E4D3344@icloud.com> References: <62509DC6-7852-4CB7-92E3-0ACC0E4D3344@icloud.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:fx3x9IFFXld9iuoYVQ23BD51DZYrTlGPBMHwjgswO+Js7vrqaEn n1cWgiaXK5Zl1CujmLTZBDdEVIPVSUMB5KQrRgFILynvQVhwlecjkSpQDEQDfY3kwcmH7c3 dEWMwOH7zZQH8p60TNnHhpIQBy23iulUbkyBVl1U759bhj8Jf46HLxHFPKHba1jjZ/toQxK f5TDPgFH/n7jDB2bW68YA== X-UI-Out-Filterresults: notjunk:1;V01:K0:duPPZlpcnWM=:CKvy8uAes8IyHVXAAZk7CU 7/GGyMAdIhF/ow5U5YxpJCrAmW902/cPGl/du/5avtCjC5rY0hh8SwrNo1mvYhR0GELPdFuOv 7ToXQXt5qmkLf6Izj6U+nDLIteWlsYzFU+GqMt1ND9w2HTVQ8TVevziTCL4lq1CgRDrMA88Ky C+raXpHTRvwM+KcJBZg7AwKbptlN93ZW+ZjIXlfa81cdEm3iyUX+yuiUaPOc4zB3t4N7uYrpL 3ZLEEq0fvu0N/Oiv4YchiJBKnKYvrpDXAv2E/QXQntRVuUdgrovsxwaRLJdJtOQfAjYK01E6R hNrwC/ikiJGzMiNRC/xcYZpbFL+7mAwIAQgjPSFctbqXkiweVh+FrhfH8t39I56dEt5A+mi0c 1mBZRo6FAg4qGj9ZIuLVX2ELIJCLcNfiVtr2tuJ0iANMKMZKaO1GL0b4tdV5e8Ijkp0SQCGJS Rc2vMiYtNKn8LZjyLh+dNWj3X4BfDxwxtxZuTHY7KcxXLD6VeN5MgdwOhI+4Yws/jiszTvIdk 6NTQv3kbJCbh77DPx9X4/JVtGh/QWBSUKu5CjgqDQEF0ilpi/boq5+sAxVxK2mf/bTEA5xxlz Ne9cgHfMht+plH4fAtZaz+59ybVmVFjZ5dg3TPAaJrxTazAzsQW1zzqpguKX7vC3ec83QluqG 7r1HHuolf6KGW7x92NfhUm2QXqbyGxgDPnMPeAtdWjXkjW7o282yKSgFIOtIgSaWeqR35ZoGK Vi6qH+oXXPUoINrWKwi+9rGfV9k0E2OlVIWQR2T9MUapG33ft7/czDtYdL8= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2018 14:59:32 -0000 On Thu, 22 Feb 2018 15:48:40 +0800, æŽć‘šćŽ wrote: > I'm now working on freebsd 11.1 . > Sometimes i no need to login X, just veiw some source code > after boot completely. > > On boot process after invoke 'kldload i915kms' console font > becomes small and difficult to distinguish. Welcome to the "wonderful" world of sc. ;-) No, seriously: With vt, the new console subsystem, the selection of a readable font is still something that needs development. While sc defaulted to 80x25 (and you could switch to something bigger if you wanted), vt does not directly allow you to select a size on x. Instead, you need to experiment with the screen size (in pixels) and the font. > If i not invoke 'kldload i915kms' the font size becomes too big to read. How can anything be too big to read? :-) > Is there any way to change font type and size ? Yes. At least the font can be changed, its size will depend on many parameters quite hard to discover. Use # vidcontrol -f to experiment with the fonts. The available fonts are stored in the system directory /usr/share/vt/fonts. You can make the setting permanent using the corresponding entries in /etc/rc.conf, for example: allscreens_flags="-f gallant" This would choose the font "gallant" during multi-user boot. In /boot/loader.conf, you can set those: kern.vty=vt hw.vga.textmode=1 i915kms_load="YES" Note that the 1st entry - if I remember correctly - is optional in FreeBSD 11 because vt has obsoleted sc as the default console driver. But it doesn't hurt. :-) The 2nd entry is for experimenting. The 3rd entry is required if you want to run X. You can also experiment with a 4th entry: kern.vt.fb.default_mode="1280x800" which should be the physical size (in pixels) of your screen; I assume you have a flatscreen display (no CRT), so you can provide that value accordingly. Please also check this list's archive for font settings related to the new vt console subsystem. I have the same problem (font too small to read, no way back to standard 80x25 except with sc, but then, no X). One of the threads is called "Restoring sc console look and feel with vt" from september 2017, but there are others equally full of information and disappointment... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...