From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713871250; x=1714476050; darn=lists.altlinux.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=eUWP8qT24H9JI0v0CWGcWefB0mJOMji2tWSKjBFzeg8=; b=UqB+qepCof32jnz8exnuki3HSPs1dH4hpVUDP7RG2pVHdiRN507Xtv68+ENzGwno2z G4RjbU131Sogl8xZq+LlZ67N9UIxK5PVn2/MnL5pP2juHZiu/MGGy15wblnW0kA/cfxd NHCL/hz/6bJ7e8vt/H87JiMGQ6HAeRtM7fFFYL+0/XA/SsuvM2g5Xf6JZLeLjwckUOPZ /uvFVMXUlbXCreaDwino/w1DrgB8Qw03QmeJn27MKwPvqrnI7VCGYg+e2Fo3Bm++0gHK D5AO6UWC6816KDwUO2LwgEyTW/xGBgrz5WdtPhngkkfgu1D6wu/eodqiYXooDDtCi1uC E1Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713871250; x=1714476050; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eUWP8qT24H9JI0v0CWGcWefB0mJOMji2tWSKjBFzeg8=; b=Vx0fzYYasH2CO+8zNezkDBwEudJt2iYTkd8ODMO5l7StzH31nnF0K4YTvyhOJjVv4g zQMVWk4fmvhVXqw6WYdtLsZYe1omC84u0IQCfCEdijewc83riR7/I8YH36H5KMHeCWti Jqc0btE4YQm7YDamCr+41eKLxdoM60C95pMctj1F9eQ8CZ/wp6p1MsHI6h+mq1fdn2EV 99OARc5Z7mLMuLgysNrOir1nLKIfz+78obhdXJOPf/T9OsbzFA6KH+z2kpVoqzxCmzWl 1C1R4MBW9vPl8d+E9ZlNfRuZCUWbZzMpfsk9YRjQb+28jPQLwbAAWr4Xz9fHha1gc5OA SMQQ== X-Gm-Message-State: AOJu0YwvDxPNAyvqkt265x6GfMhSshxHxt3sPYhamPdMcxUQaZXFNqZu 0F/wPZFSR95YwtSm/bJpwMT745NmP1PLwy5gqT56crqKphXDYDRqfipALg== X-Google-Smtp-Source: AGHT+IHoB7ZPQuV/5xETG230vCQWXveNNwlRAPeyqBVH4UqnebqVKn9lvrp7i1RdClE/CwGhjSPLAw== X-Received: by 2002:ac2:555d:0:b0:51a:d93f:72e8 with SMTP id l29-20020ac2555d000000b0051ad93f72e8mr5371260lfk.51.1713871250118; Tue, 23 Apr 2024 04:20:50 -0700 (PDT) Date: Tue, 23 Apr 2024 13:20:47 +0200 From: Alexey Gladkov To: make-initrd@lists.altlinux.org Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [make-initrd] [PATCH 1/2] plymouth: fix plymouth showing when drm is not ready yet X-BeenThere: make-initrd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: make-initrd@lists.altlinux.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2024 11:20:54 -0000 Archived-At: List-Archive: On Tue, Apr 23, 2024 at 12:51:37PM +0700, antohami@basealt.ru wrote: > From: Anton Midyukov > > Fix waiting for a real video card when simpledrm is available. > card0 will disappear when the DRM module of the real video card is > loaded. Because of this, by the time Plymouth was shown, simpledrm > was no longer there, and there was no real video card yet. > > Instead of waiting for devices to appear, is proposed to launch > triggers for subsystems, as is uses in dracut. > > Signed-off-by: Anton Midyukov > --- > features/plymouth/data/etc/rc.d/init.d/plymouth | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > > diff --git a/features/plymouth/data/etc/rc.d/init.d/plymouth b/features/plymouth/data/etc/rc.d/init.d/plymouth > index 20d64011..27d91876 100755 > --- a/features/plymouth/data/etc/rc.d/init.d/plymouth > +++ b/features/plymouth/data/etc/rc.d/init.d/plymouth > @@ -19,8 +19,17 @@ start() { > [ -z "${NOSPLASH-}" ] && [ -z "${RDSHELL-}" ] || > return 0 > > - udevadm settle --timeout=30 --exit-if-exists=/sys/class/drm/card0/dev > - udevadm settle --timeout=30 --exit-if-exists=/sys/class/graphics/fb0/dev > + # first trigger graphics subsystem > + udevadm trigger --action=add --attr-match=class=0x030000 > /dev/null 2>&1 > + # first trigger graphics and tty subsystem > + udevadm trigger --action=add \ > + --subsystem-match=graphics \ > + --subsystem-match=drm \ > + --subsystem-match=tty \ > + --subsystem-match=acpi \ > + > /dev/null 2>&1 > + > + udevadm settle --timeout=60 2>&1 > > local pidfile=/run/plymouth/pid Хоть подход не нравится, но я смирился, что фича plymouth это чёрная дыра. У меня другой вопрос раз мы смотрим на dracut. Не стоит ли также скопировать у них код по вычислению tty вместо хардкода --tty=/dev/tty1 ? https://github.com/dracutdevs/dracut/blob/master/modules.d/50plymouth/plymouth-pretrigger.sh#L19-L21 -- Rgrds, legion