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=1713873222; x=1714478022; 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=8bjfIE+dbRBSgYg6q1vogrNaS1HaZ6HIRhygr4ocjf0=; b=Zk+83qE0TL2fjcTFCzKAloSx4OOdKNNBu6zaktecPglSQ7xt/SONNBL/mp4Auefen7 1rNFXHwa2hp/m/JySRji8J5nRCT4ZP9clsBP946tIHdmRL/KVp8XZiA8PDd29Egos8G0 6rPJ1K5qrYm0A5y00TjAb3Ecl+P/1pM4X89nZzwG/o/2vwgT4NRbfyPVxWYHUHIY49EB oLpoFcShkMpJmZMT8X0kfXnvxDUoNV9L48GJbNtdhMh1LyNWdPkWVd5AqkQ8usg8/joi U34gvnnmadnfzE75UeCogN6v/tcLFDojW89MAd5ImW4QueZoYZpnNT8Gtw92tEWsHQ4t iTQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713873222; x=1714478022; 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=8bjfIE+dbRBSgYg6q1vogrNaS1HaZ6HIRhygr4ocjf0=; b=nifO7lnxLZ4xBzb6k1xQgaVbs3uHVGaWy3xZFNowwG4oTInSdrgIHyCTJsfncXxnVa CPVm4/qr53uuYHmw2hZ1UoC8gxoS8Y8l7e0R733WwtZBm6A1RV10WSyN+FzZLO1KJXcG MBFCknOzIw4dmfaIq02erB6w0dDCdyKmKGeAFZ8uBieR9qZcAPeYNbm+mEIuIEByqvmN wcl6eXGciyjpOnvBlGloWhqEHe34ID5NnYt/5qX7/W5hqeGBJqzXIHv6RbiilO5jJEwb NmLDscmiZO0vWEsWzpJ20LgHNfow5yEmu/FdcZQpiSvWyQtNulvVazMTKchTcTahIAHN ZPgg== X-Gm-Message-State: AOJu0Ywh9/hmSIrIHZneEFUey2ftllbafo9IPwKfSN60E1T+Ea3p9QpU jphPMlNArufZWCnTn4EnqW6flQfasLhpdfzbr6vjB5XjHU8LzxLxjD8Ryw== X-Google-Smtp-Source: AGHT+IHkDKWWqSjGfvr+zsRspQTxV2nrrNrR75MC/CW9OEpcpZ2GeZ2M7wDTwCvxYZ2g/Vd7cM/QNg== X-Received: by 2002:a50:9faa:0:b0:56e:2393:cee4 with SMTP id c39-20020a509faa000000b0056e2393cee4mr8228540edf.9.1713873221488; Tue, 23 Apr 2024 04:53:41 -0700 (PDT) Date: Tue, 23 Apr 2024 13:53:39 +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:53:45 -0000 Archived-At: List-Archive: On Tue, Apr 23, 2024 at 06:35:06PM +0700, Антон Мидюков wrote: > 23.04.2024 18:20, Alexey Gladkov пишет: > > 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