From patchwork Tue Apr 10 11:20:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramon Fried X-Patchwork-Id: 133066 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1186985ljb; Tue, 10 Apr 2018 04:20:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx48u1vprligy/jfQZPDB8X/3T4XCOKAL+o1vQbQ+ymsSnxAhAPi0znDHsw/Q3GJ5JqEbtbK2 X-Received: by 10.101.96.135 with SMTP id t7mr17583417pgu.382.1523359256091; Tue, 10 Apr 2018 04:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523359256; cv=none; d=google.com; s=arc-20160816; b=frlXolOfU0mHrnP6pa0R89GZSiL90ANpCo+cZGr9SQZ19sYC4uzoEtYMCokeq+QFcG /dzaaMZmssmoCZHxXlZhPSLI7pPrWLUzP+5X3kgpPAygHwJ96sHf25az1IXgyZIoSxvN /sb8QD1rBXMPGf7OfdXgnFbnyYkZT4RBJHek8lEkn8C2xihdnQ7D9MDb/vsEBKXM/PQA OyBql+VVchoBn7Jt0/yAPCIeMe6AxU0StZrRk2LvkHJh5AbqJ9yOXe7Ik9HYRXYsJC/C PIt7XIXerxwNJd1aJLStxvzg7Vb6v/fzEL+uBjeKqxpUoHiLTk4KmY8x0sYXW6PPvUD0 6sFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=+eMip7rQZpsIPy4Hsr/sAp1TTBPj9vByOWh9hD8lVoo=; b=vVwxwXSAi2tzKdnsFDREABgGa06q3i4F8pyxmRBAevdnkQ0ZsL9OC36I51CIWTafHQ ycLcxcOcJEpIqnRQuHGLdX0dGCee+8D6GbYLprRv5dUKYvOAQ4NwMA2ZISUBgNlgXlRe 6Sw9wnnxd1ARj/9lYSYL3xV/rNxxAjanUHz6z/H3PJEoRC9EAbm1E/ypxN4s+VX9S8jj CBrKQhEanXJ4eo0+i7Z6oxXU+uu93P2Rl57uMemUbyA1Z47kpzOSPqLZqcnAOJCw4/lk ALGqxoihKssLM4KyLLG3XVuo0Urg/d5EAXqERszwMcJ1fElBigTOe4A24SXx6hSn3k26 2yMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XyFVr4ub; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id z16si1709713pge.353.2018.04.10.04.20.55; Tue, 10 Apr 2018 04:20:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XyFVr4ub; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id D377A746E6; Tue, 10 Apr 2018 11:20:50 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by mail.openembedded.org (Postfix) with ESMTP id 231A374A21 for ; Tue, 10 Apr 2018 11:20:48 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id 66so19058307wmd.3 for ; Tue, 10 Apr 2018 04:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=k1NZRiUYpf0ERu22y1xAPlLZHpBfarsvjZPy5VaoCS4=; b=XyFVr4ubMTCRERhjU8CkOR9BH92advSaV1QGFbgs0AqhGlLiop1A1QEjW5Gq9CsR73 qjpEg4LxmAiWvDlZkoRm7oN/s062+JhgpcDQgNc0uVOf07MrO1NIrXgIYk576Ivt6bPv HgyPkRKHuZj+XdCQ0Fo4JNCQfPCYcD1ctQsqM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=k1NZRiUYpf0ERu22y1xAPlLZHpBfarsvjZPy5VaoCS4=; b=kIgEJf0qtZf0qee4iYoPnq4EOVlSqyjj6oEneiVPcCm7UOP79SFyjEGgIxhiTrOjoR cFTbyXA2gclQ4wNz4pZcCitZBMMRZoi2nAu/Mvz6m+3Shz4r/vwWtBYCepD9ThCAw+Kt 8uI3A0SuqlKvOJSDDJoqIe80dK45+WdKos0/mSNLhf7l0dnKX5VwOL1Zb8BxF1NHL1dF j3VljIKZJol3zwKZ6BJfpUVXqdlEsbvS5hc0u3fCntAQiY7grx8IZrgNHQsTM2OhE37R HvtME+T4Zbh3ZnnAx1UB3rnJIBgaNEC1xQVt2yOeV933QPvbBPKODuzxFEYvRatvdww1 dCyg== X-Gm-Message-State: ALQs6tBgJCuc+CM+32qZ7y5Oyrg2XEmsUIeVqCgM0BIgzrH+xoz46Cbh r4KhM0Cc2rGOUCf2cSVrbrDGhc5zmck= X-Received: by 10.80.230.9 with SMTP id y9mr2547411edm.26.1523359249255; Tue, 10 Apr 2018 04:20:49 -0700 (PDT) Received: from lx-rfried.mea.qualcomm.com ([185.23.60.4]) by smtp.gmail.com with ESMTPSA id l91sm1669157ede.50.2018.04.10.04.20.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Apr 2018 04:20:48 -0700 (PDT) From: Ramon Fried To: openembedded-core@lists.openembedded.org Date: Tue, 10 Apr 2018 14:20:40 +0300 Message-Id: <20180410112040.13506-1-ramon.fried@linaro.org> X-Mailer: git-send-email 2.15.1 Cc: Ramon Fried Subject: [OE-core] [PATCH] xserver-nodm-init: Respawn service in case of failure X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ramon Fried It appears that sometimes xserver-nodm.service is starting before display driver finished loading causing the following failure in Xorg log: (EE) open /dev/dri/card0: No such file or directory The introduced by this patch is to restart the service, hopefully the display driver will finish loading. Signed-off-by: Ramon Fried --- .../x11-common/xserver-nodm-init/xserver-nodm.service.in | 1 + 1 file changed, 1 insertion(+) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core Reviewed-by: Nicolas Dechesne diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.service.in b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.service.in index 324a26f549..87dc4f8fcd 100644 --- a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.service.in +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm.service.in @@ -5,6 +5,7 @@ Description=Xserver startup without a display manager EnvironmentFile=/etc/default/xserver-nodm User=@USER@ ExecStart=/etc/xserver-nodm/Xserver +Restart=always [Install] Alias=display-manager.service