From patchwork Mon Dec 30 11:12:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 19475 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 37CEB1797C; Mon, 30 Dec 2019 11:15:01 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id CF3B117960 for ; Mon, 30 Dec 2019 11:15:00 +0000 (GMT) Received: from localhost ([::1]:60514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilt0m-0003wf-80 for patchwork@mira.cbaines.net; Mon, 30 Dec 2019 06:15:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35734) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsyu-0001ti-6q for guix-patches@gnu.org; Mon, 30 Dec 2019 06:13:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilsys-00058C-Lt for guix-patches@gnu.org; Mon, 30 Dec 2019 06:13:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54556) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilsys-000582-Id for guix-patches@gnu.org; Mon, 30 Dec 2019 06:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ilsys-00013e-Ci for guix-patches@gnu.org; Mon, 30 Dec 2019 06:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38810] [PATCH] services: console-font: Update example with HDPI font suggestion. Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 Dec 2019 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38810 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38810@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15777043604028 (code B ref -1); Mon, 30 Dec 2019 11:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Dec 2019 11:12:40 +0000 Received: from localhost ([127.0.0.1]:60529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilsyQ-00012j-9I for submit@debbugs.gnu.org; Mon, 30 Dec 2019 06:12:40 -0500 Received: from lists.gnu.org ([209.51.188.17]:48492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilsyP-00012c-6c for submit@debbugs.gnu.org; Mon, 30 Dec 2019 06:12:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35700) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsyM-00018K-Vc for guix-patches@gnu.org; Mon, 30 Dec 2019 06:12:32 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ilsyM-00050r-Pc; Mon, 30 Dec 2019 06:12:30 -0500 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=58604 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ilsyL-0006Y0-Vw; Mon, 30 Dec 2019 06:12:30 -0500 From: Jan Nieuwenhuizen Date: Mon, 30 Dec 2019 12:12:27 +0100 Message-ID: <87h81ihxt0.fsf@gnu.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi, Another HDPI-inspired patch; since Marrakech I finally have a readable console font, thanks to Bernhard M. Wiedemann. This solution enters the manual in a kind of tricksy way. More seriously, when updating the `guix system search console font' example output, I found that mingetty and login and ... entries to be missing. Is that a bug, or should the output be fixed? We could also change the example command to `guix search console', then those entries are present again. Greetings, janneke From 1b0d736405354c2c1aeb7aee00e63307d956ceae Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 30 Dec 2019 11:56:58 +0100 Subject: [PATCH] services: console-font: Update example with HDPI font suggestion. This solution was kindly provided by Bernard M. Wiedemann. * gnu/services/base.scm (console-font-service-type): Add ter132n (terminus 132 nomal) font example, for HDPI displays. * doc/guix.texi (Invoking guix system): Update `guix system search console font' example output. --- doc/guix.texi | 20 +++++++++++++++----- gnu/services/base.scm | 6 +++++- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 02cecae043..298b9a531c 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -25980,17 +25980,27 @@ supported: Display available service type definitions that match the given regular expressions, sorted by relevance: +@cindex HDPI +@cindex resolution @example $ guix system search console font name: console-fonts location: gnu/services/base.scm:729:2 extends: shepherd-root -description: Install the given fonts on the specified ttys (fonts are -+ per virtual console on GNU/Linux). The value of this service is a list -+ of tty/font pairs like: +description: Install the given fonts on the specified ttys ++ (fonts are per virtual console on GNU/Linux). The value of this ++ service is a list of tty/font pairs. The font can be the name ++ of a font provided by the `kbd' package or any valid argument to ++ `setfont', as in this example: + -+ '(("tty1" . "LatGrkCyr-8x16")) -relevance: 20 ++ '(("tty1" . "LatGrkCyr-8x16") ++ ("tty2" . (file-append ++ font-tamzen ++ "/share/kbd/consolefonts/TamzenForPowerline10x20.psf")) ++ ("tty3" . (file-append ++ font-terminus ++ "/share/consolefonts/ter-132n"))) ; for HDPI +relevance: 32 name: mingetty location: gnu/services/base.scm:1048:2 diff --git a/gnu/services/base.scm b/gnu/services/base.scm index b1eff89ecc..77215e411c 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2019 Efraim Flashner ;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; Copyright © 2019 John Soo +;;; Copyright © 2019 Jan (janneke) Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -818,7 +819,10 @@ package or any valid argument to @command{setfont}, as in this example: '((\"tty1\" . \"LatGrkCyr-8x16\") (\"tty2\" . (file-append font-tamzen - \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))) + \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\")) + (\"tty3\" . (file-append + font-terminus + \"/share/consolefonts/ter-132n\"))) ; for HDPI @end example\n"))) (define* (console-font-service tty #:optional (font "LatGrkCyr-8x16")) -- 2.24.0