From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6NspCOxcm2NnTgEAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 18:44:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cMpECOxcm2M6pgAAauVa8A (envelope-from ) for ; Thu, 15 Dec 2022 18:44:12 +0100 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 98C7336382 for ; Thu, 15 Dec 2022 18:44:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5sH5-0002OL-RO; Thu, 15 Dec 2022 12:44:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5sH4-0002OD-Ff for bug-guix@gnu.org; Thu, 15 Dec 2022 12:44:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5sH4-0001Bo-7z for bug-guix@gnu.org; Thu, 15 Dec 2022 12:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5sH3-000343-Od for bug-guix@gnu.org; Thu, 15 Dec 2022 12:44:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#60010: [version 1.4.0] AMD screen stays black; modprobe fails Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 15 Dec 2022 17:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60010 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 60010@debbugs.gnu.org Received: via spool by 60010-submit@debbugs.gnu.org id=B60010.167112619211756 (code B ref 60010); Thu, 15 Dec 2022 17:44:01 +0000 Received: (at 60010) by debbugs.gnu.org; 15 Dec 2022 17:43:12 +0000 Received: from localhost ([127.0.0.1]:43975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5sGG-00033Y-At for submit@debbugs.gnu.org; Thu, 15 Dec 2022 12:43:12 -0500 Received: from relay.yourmailgateway.de ([188.68.63.98]:45795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5sGD-00033O-Dz for 60010@debbugs.gnu.org; Thu, 15 Dec 2022 12:43:10 -0500 Received: from mors-relay-2501.netcup.net (localhost [127.0.0.1]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4NY0236zQSz6027; Thu, 15 Dec 2022 18:43:07 +0100 (CET) Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4NY0236CXkz4xXk; Thu, 15 Dec 2022 18:43:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at policy02-mors.netcup.net Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4NY0230wWjz8shM; Thu, 15 Dec 2022 18:43:06 +0100 (CET) Received: from florianrock64 (ip5b40a50f.dynamic.kabel-deutschland.de [91.64.165.15]) by mxe217.netcup.net (Postfix) with ESMTPSA id 560707FC1E; Thu, 15 Dec 2022 18:43:01 +0100 (CET) From: "pelzflorian (Florian Pelz)" References: <87y1rcegff.fsf@pelzflorian.de> <87wn6wyzvn.fsf@gnu.org> <875yefy665.fsf@gnu.org> <87o7s7zcum.fsf@pelzflorian.de> <87k02vwj5c.fsf@gnu.org> <87r0x2f62t.fsf@pelzflorian.de> <87y1r9r2cj.fsf@gnu.org> Date: Thu, 15 Dec 2022 18:42:59 +0100 In-Reply-To: <87y1r9r2cj.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 15 Dec 2022 00:29:32 +0100") Message-ID: <875yec5zrw.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Rspamd-Queue-Id: 560707FC1E X-Spamd-Result: default: False [-5.60 / 15.00]; BAYES_HAM(-5.50)[100.00%]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:3209, ipnet:91.64.0.0/14, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:+]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: wc9RlZnl8V1CMkrrzfIv0Km6nEAU+v1rXaiv05MLi4wkjIch67DzsFEG X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671126251; a=rsa-sha256; cv=none; b=NSHfeciPUSKxN802UnRusrXe+YLjJ69VpCcRqADJtIlGwY/WfsH6QhUdLdI11WrBSHMtlW a5IdbJ4OELH9gZH/kHJPVHfCN5Uz3Ht3ABPu6QgCUSmQlVeCB1QeRR542zQvfJXrtcbkB6 yK6Q7OJMzB2uDU6pgcdL4JlXzLFUa0kSl0CMXR/u/A+NjceAeaX32AEdZP6f0/CFbm1YIZ KMXBjUI5mRUb9/HbXUi3Qeixze/Z89451fY1ZPHKA8j6dCc8MQdxpeGgBbv+Z5CZxXMkPe Vlal7hoAweAfFjUvXbDc8N7Sazt9cssTDHM3Xu+2sf9dB5I944VhxnPtJYMt/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671126251; 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; bh=9DmMX3zen/IIdsA5Yvw2s8zTdeDC7G4i0I76tRSLW8Y=; b=OziH3jPMAsUqtIrAsnDeil+BgJwueRmVsbeHMIf3/8NTtGYtFrMRKXpvZzKHBiu/3PtPGZ ROAO+cTG3n4FxPsmoGt/QT1wQpQL73qtHiuZ32plXdrEHUD6CHbyM3z8krIHCeh8v4HAzt ZkQAiZxD7o4Lnfp2JV4dZE0kKsM/t2LZLrKvf7mHccHiYssPneKl70aaL5NemL8xBSz7Dm EFLodsISBx+iDPShUucXx3GnGb4UsdfugEv9cuSXuY/x+GGoKKrbWIKqdrZVRJwpFvxf3G lguDXxw++aqGonsvwrdyDw6tWYW9DIM6ACbK9gVtkg2Hcgm2eFy/LihdAZfsWQ== X-Migadu-Spam-Score: -3.28 X-Spam-Score: -3.28 X-Migadu-Queue-Id: 98C7336382 Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Scanner: scn0.migadu.com X-TUID: oH0Dga23b2Cd --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Ludo, sorry to say I attempted your modprobe patch that uses (parameterize ((default-environment-variables =E2=80=A6 No good. Screen is black. Same [ modprobe ] failure in dmesg on QEMU and on real AMD hardware. There are workarounds by surrounding modprobe within strace or alternatively using kernel-module-loader-service (attached; but again, without the file-exists? check, this would cause new issues on some machines that dont need uvesafb). A stupid diff --git a/gnu/system/install.scm b/gnu/system/install.scm index f6f1923121..a99cf09e31 100644 --- a/gnu/system/install.scm +++ b/gnu/system/install.scm @@ -289,6 +289,7 @@ (define (uvesafb-shepherd-service _) (provision '(maybe-uvesafb)) (requirement '(file-systems)) (start #~(lambda () + (sleep 1) (or (file-exists? "/dev/fb0") (invoke #+(file-append kmod "/bin/modprobe") "uvesafb" fails though. All bad=E2=80=A6 Regards, Florian --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=use-kernel-module-loader.patch diff --git a/gnu/system/install.scm b/gnu/sysdiff --git a/gnu/system/install.scm b/gnu/system/install.scm index f6f1923121..2a1f401536 100644 --- a/gnu/system/install.scm +++ b/gnu/system/install.scm @@ -40,6 +40,7 @@ (define-module (gnu system install) #:use-module (gnu system locale) #:use-module (gnu services avahi) #:use-module (gnu services dbus) + #:use-module (gnu services linux) #:use-module (gnu services networking) #:use-module (gnu services shepherd) #:use-module (gnu services ssh) @@ -283,29 +284,22 @@ (define %nscd-minimal-caches ;; These define a service to load the uvesafb kernel module with the ;; appropriate options. The GUI installer needs it when the machine does not ;; support Kernel Mode Setting. Otherwise kmscon is missing /dev/fb0. -(define (uvesafb-shepherd-service _) - (list (shepherd-service - (documentation "Load the uvesafb kernel module if needed.") - (provision '(maybe-uvesafb)) - (requirement '(file-systems)) - (start #~(lambda () - (or (file-exists? "/dev/fb0") - (invoke #+(file-append kmod "/bin/modprobe") - "uvesafb" - (string-append "v86d=" #$v86d "/sbin/v86d") - "mode_option=1024x768")))) - (respawn? #f) - (one-shot? #t)))) - -(define uvesafb-service-type - (service-type - (name 'uvesafb) - (extensions - (list (service-extension shepherd-root-service-type - uvesafb-shepherd-service))) - (description - "Load the @code{uvesafb} kernel module with the right options.") - (default-value #t))) +(define uvesafb-config + (computed-file "uvesafb.conf" + #~(with-output-to-file #$output + (lambda () + (display + (string-append "options uvesafb" + " " "v86d=" #$v86d "/sbin/v86d" + " " "mode_option=1024x768")))))) + +(define uvesafb-services + (list (service kernel-module-loader-service-type + '("uvesafb")) + (simple-service 'uvesafb-config etc-service-type + (list `("modprobe.d/uvesafb.conf" + ,uvesafb-config))))) + (define* (%installation-services #:key (system (or (and=> (%current-target-system) @@ -450,8 +444,7 @@ (define bare-bones-os ;; installer. Some may also need a kernel parameter like nomodeset ;; or vga=793, but we leave that for the user to specify in GRUB. `(,@(if (supported-package? v86d system) - (list (service uvesafb-service-type)) - '()))))) + uvesafb-services))))) (define %issue ;; Greeting. --=-=-=--