From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1npZUo-0006wu-SM for mharc-grub-devel@gnu.org; Fri, 13 May 2022 13:54:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npZUm-0006u7-SY for grub-devel@gnu.org; Fri, 13 May 2022 13:54:33 -0400 Received: from mail-vk1-xa35.google.com ([2607:f8b0:4864:20::a35]:44843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npZUk-0004hK-PW for grub-devel@gnu.org; Fri, 13 May 2022 13:54:32 -0400 Received: by mail-vk1-xa35.google.com with SMTP id o132so4546347vko.11 for ; Fri, 13 May 2022 10:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aqhAPN3bu8SfEk679ZW5UpdG9RXbPzh1EkQqHG0s0C4=; b=fXKCreJvqEkevXE/I9wzB5IuRGopI8Q/qGPU3gby8RVreZoWKV/Y3vwBncSCC43f+h x45JLXVRGkWjUSS8l522FlXpdg0Gd9kyFjVlpa3SPKR+X2ekUzbYwjE7QJURZecRwU5L fgUOb36whrmYaDdnk2tGXT+lNPdAga8ZMZVFO1EjDib2Jt7ofPjnHe6MUJdxrCns97Hn nUKNNDYFeNPz7pUGl14Xn3RZ/rohP5kuVIRwTKIrKtzj6H2XIGSXAhH8GfYAoIIdQFoH jEm96OdxcKLMTxkSeldb91x5yhUu1Odc2GiPlYdU1SNAHSlLcg1SAk7rtHC8uE3HxQ3K TBbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aqhAPN3bu8SfEk679ZW5UpdG9RXbPzh1EkQqHG0s0C4=; b=SzEoJ6jrvsQ9Hx+GaA0+goY3y16JVthbp1lgqO2MHVIgSUXpDcpqt2gRJq22nZJ5ic aLm5wixyv51kGfjDM7CabbxZKX4eReYSEQ6kZ9+k3Ryy+csMS3ByKBmBWqSllmWv1ag+ LoREZrWi91L8UsvnP3S/MHKCKaE4wRCrPmesB4z7pC5B5nqKS1BjIN+5RNafSVUrKmmb OeTHrR274/qJNgcoc8n4hZ40XhUglB+BKQyw/xZkND1cEpX1KwD65yshYqhCno5wdaJA xxnwxVR8zLmnjIcGCVHzqFDv4REmlNjsSED2U9VYlnwEj9fDEYxdrmbygPAJ8H+oEK8/ 8Vtw== X-Gm-Message-State: AOAM531/fGZmPFHqOnJf/E+pfv8+Q7mWvxdKVJqakl0UmBnvBg+o94ke GWEMMX0LmSXlGnbCFWhaPtTzKPiPLdPgqn/g X-Google-Smtp-Source: ABdhPJxZF5KL5jQsb/5p2DKxy4pj9Kp0sgDOqWW1Xp0sImbwLKbjVJzioKigvqVkZl7XRc3KCdegRw== X-Received: by 2002:a1f:5907:0:b0:352:6327:926f with SMTP id n7-20020a1f5907000000b003526327926fmr2637080vkb.1.1652464469340; Fri, 13 May 2022 10:54:29 -0700 (PDT) Received: from localhost.localdomain ([37.218.244.249]) by smtp.gmail.com with ESMTPSA id l14-20020ab0164e000000b003626f894decsm421717uae.26.2022.05.13.10.54.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 10:54:28 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Paul Menzel , Glenn Washburn Subject: [PATCH v2 0/2] Add efitextmode command Date: Fri, 13 May 2022 12:54:10 -0500 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::a35; envelope-from=development@efficientek.com; helo=mail-vk1-xa35.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2022 17:54:33 -0000 Updates since v1: * Update documentation language as suggested by Paul This patch add the efitextmode command which is used for showing all available text output modes and setting a specific mode. Its basically the equivalent of the EFI Shell's "mode" command and its output looks similar. The main difference is that its shows the mode number in the listing and takes a mode number when setting the mode. As a convenience, it can take arguments "min" or "max" to set to the minimum or maximum mode. Glenn Glenn Washburn (2): efi: Add efitextmode command for getting/setting the text mode resolution docs: Document efitextmode command docs/grub.texi | 26 ++++++ grub-core/Makefile.core.def | 6 ++ grub-core/commands/efi/efitextmode.c | 118 +++++++++++++++++++++++++++ 3 files changed, 150 insertions(+) create mode 100644 grub-core/commands/efi/efitextmode.c -- 2.34.1