From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KGaWNfwwkWCRygAAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 13:33:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WBtRMfwwkWARPAAA1q6Kng (envelope-from ) for ; Tue, 04 May 2021 11:33:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 49CD010625 for ; Tue, 4 May 2021 13:33:16 +0200 (CEST) Received: from localhost ([::1]:53698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldtIh-0003HF-HR for larch@yhetil.org; Tue, 04 May 2021 07:33:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldtIU-0003FT-PE for guix-patches@gnu.org; Tue, 04 May 2021 07:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldtIU-0004pC-HX for guix-patches@gnu.org; Tue, 04 May 2021 07:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldtIU-0004Wr-F1 for guix-patches@gnu.org; Tue, 04 May 2021 07:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47994] [PATCH] services: kmscon: Add xkb-layout and xkb-options fields. Resent-From: luhui Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 May 2021 11:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47994 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 47994@debbugs.gnu.org, luhui Received: via spool by 47994-submit@debbugs.gnu.org id=B47994.162012798117403 (code B ref 47994); Tue, 04 May 2021 11:33:02 +0000 Received: (at 47994) by debbugs.gnu.org; 4 May 2021 11:33:01 +0000 Received: from localhost ([127.0.0.1]:52669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldtIT-0004Wd-JU for submit@debbugs.gnu.org; Tue, 04 May 2021 07:33:01 -0400 Received: from m12-16.163.com ([220.181.12.16]:46961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldtIQ-0004WX-Nf for 47994@debbugs.gnu.org; Tue, 04 May 2021 07:33:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=KNjxz v+yIuyfGkfSXXsgh6marZCmxlovzZ69EcZcLdQ=; b=WbmfXCAIuZPZWrT1kw//N ZfElyOrgcy+OV3sgXsg1WwbkDLx8F9rRzmeAZ1J9+C+T26vIYmTIa/JrzB4X2Jz8 NI+yla0kmbq73zafqboBgtcqXZFbBMs/+WROKmBTKzPi2FxfMLtVos10g7egL9KA mL/bw7tB5NwR94dIDPI07I= Received: from localhost (unknown [110.183.12.194]) by smtp12 (Coremail) with SMTP id EMCowABnK2niMJFgx9_dpA--.46654S3; Tue, 04 May 2021 19:32:51 +0800 (CST) Date: Tue, 4 May 2021 19:32:49 +0800 From: luhui Message-ID: References: <328fbd240891f63e52020fa59341c8fbf1f3bb42.camel@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CM-TRANSID: EMCowABnK2niMJFgx9_dpA--.46654S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7Kw45JF1Utr1xJw1fAr43Wrg_yoW8Gr13pa 9rWF18Ca1Yq3WFkwn3XryxGr15Wws3CFyfXr4DWasFqFWUCr90vrnakryY9ws7Ar18Jr1j qayUWF1F934UZ3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jzT5dUUUUU= X-Originating-IP: [110.183.12.194] X-CM-SenderInfo: 5oxk3xlqv6il2tof0z/xtbBQgCIDF++LoawwAABs+ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620127996; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=KNjxzv+yIuyfGkfSXXsgh6marZCmxlovzZ69EcZcLdQ=; b=gxqgpnj1GgzgQxEuFZGLmbY2T6V3dmsiSmS/DQYuC/KXmevO02cpz4BiRAOLts4J/Zt5k7 TGtlnmm5ePReL0UmmrPdTfK487iOPvsQndF4nhcMOWae8sUcEofJytqySvGc6VrWWTMFG4 Sqy8XMEQIzsGxcRW2rYUvfzI3UoQycWZ7ffuR3UWtEmVcBpfDecZZs+TDuSip9Q3ePDqF4 tPSPCFqgDDfJk5c5/Q1o1SZS3kudvSqm4u+eDfG4KLQvFKiDz4LGrqjJzMyxyLa1boB4xE 60jNCi+yq+/6CDakAbBTMSlAd3Tix6OazZuFnjPEbhrPGJ4Fer19grwo0DUPGA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620127996; a=rsa-sha256; cv=none; b=Vik2f9p6Iwoc3aqSaaKxAOaklQ5sWKKXTx0a4kzMNM+E6k8ja3LBezcTL/NNVFa9AKVrNU GyCl5fi2BUAdyQgbGgFRsgkVlMMiieXgMiIIUvCOdCFDBfbgnkKbSQ/jhYyH4ngMsMAuOA qIv6knV5GjXqMLR+M3Q8u96EQ4dSpBx4z/TxmjTs/LaSMm8QP2XFJlzQHadmTU9xFJVW3W pyBF+WmFtX6gFSJDEj5mFQEe7vqczosQ+jtk9pkKeILhj4Ln4zJmULjD/buJiJlyS3eWCM UH33uWSnqkIZegOlu78kKaRQCybkJy/4jF8aeJjPOu63tCQSLjt5t8jqozBHLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=WbmfXCAI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=WbmfXCAI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 49CD010625 X-Spam-Score: -0.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: rsDSCCz/xJIP On Mon, Apr 26, 2021 at 09:23:00PM +0200, Maxime Devos wrote: > luhui schreef op ma 26-04-2021 om 10:07 [+0800]: > > OK,Re-written the code according to your suggestion. > > > > new patch: > > The new patch looks good to me, but I haven't tested it. write it in a vm configuration test code: #+BEGIN_SRC scheme ;; need delete getty service (tty3,tty4,tty5,tty6) (dbus-service) (syslog-service) ;; default (service kmscon-service-type (kmscon-configuration (virtual-terminal "tty3"))) ;; us (service kmscon-service-type (kmscon-configuration (virtual-terminal "tty4") (keyboard-layout (keyboard-layout "us")))) ;; us with ctrl:nocaps options (service kmscon-service-type (kmscon-configuration (virtual-terminal "tty5") (keyboard-layout (keyboard-layout "us" #:options '("ctrl:nocaps"))))) ;; with all args (service kmscon-service-type (kmscon-configuration (virtual-terminal "tty6") (keyboard-layout (keyboard-layout "us" "intl" #:model "macbook78" #:options '("ctrl:nocaps" "compose:menu"))))) #+END_SRC then guix system vm vm-configuration.scm xxxxxxxxxx-vm.sh # need graphic in vm: herd status # ensure services is running # test Ctrl + Alt + F3 # ensure it is us keyboard layout Ctrl + Alt + F4 # ensure it is us keyboard layout Ctrl + Alt + F5 # ensure Caps Locks is Ctrl ...