From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 EJfgHcTIvmMybAAAbAwnHQ (envelope-from ) for ; Wed, 11 Jan 2023 15:33:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OIKWHcTIvmN/gwEA9RJhRA (envelope-from ) for ; Wed, 11 Jan 2023 15:33:40 +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 EB99034674 for ; Wed, 11 Jan 2023 15:33:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFc96-0004LW-SD; Wed, 11 Jan 2023 09:32:04 -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 1pFc95-0004L7-11 for guix-patches@gnu.org; Wed, 11 Jan 2023 09:32:03 -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 1pFc94-0001rg-OQ for guix-patches@gnu.org; Wed, 11 Jan 2023 09:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pFc94-0002ay-7T for guix-patches@gnu.org; Wed, 11 Jan 2023 09:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60699] [PATCH 1/2] gnu: Add fwupd service. Resent-From: Jelle Licht Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Jan 2023 14:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60699 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: phodina Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 60699@debbugs.gnu.org Received: via spool by 60699-submit@debbugs.gnu.org id=B60699.16734474929934 (code B ref 60699); Wed, 11 Jan 2023 14:32:02 +0000 Received: (at 60699) by debbugs.gnu.org; 11 Jan 2023 14:31:32 +0000 Received: from localhost ([127.0.0.1]:41995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFc8a-0002aA-FG for submit@debbugs.gnu.org; Wed, 11 Jan 2023 09:31:32 -0500 Received: from mail1.fsfe.org ([217.69.89.151]:53252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFc8V-0002Zz-SV for 60699@debbugs.gnu.org; Wed, 11 Jan 2023 09:31:30 -0500 From: Jelle Licht DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1673447485; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BYhfgzg0nUfJ4/uB6tnjrzua3Mi9FS4rksaWzfkiQDU=; b=QJmKlumxpK09PH/sLGFAekDZZs7mjsmdY8hHMUDArtgLtLYG4422nDCMWSKFlMZOfsT7QK j1iyERFP8WoMAkSFKQqro14GTJV4N5DLqxED2tF4/xeYug3WJ35STHdMzidAw4iW5Lk4VW TDTNaJ1ekqOZp+v90HCwv3EDYgxqo2U= In-Reply-To: <2QY4qmI1HEY8z5nFzdmKy4dh65q6GHmMaOl1KXu0u3tL3EnVVuwL3IkCHjAjI6P9axsRfEsEU33HcRARJLDj4u_-uw6-GwokEtNMkok9HF4=@protonmail.com> References: <4jVXzFcbk7yONwfqid6qqilCgTRGy444TSoquZ-JyjNWsQ7wBLNZmrr221In95YehmkIVQGRFWaJSPIOHUx8jpr1V3JeXDuOQZ3WeRI-B6o=@protonmail.com> <87a62qbsg2.fsf@fsfe.org> <2QY4qmI1HEY8z5nFzdmKy4dh65q6GHmMaOl1KXu0u3tL3EnVVuwL3IkCHjAjI6P9axsRfEsEU33HcRARJLDj4u_-uw6-GwokEtNMkok9HF4=@protonmail.com> Date: Wed, 11 Jan 2023 15:31:24 +0100 Message-ID: <87fschkurn.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021100501 header.b=QJmKlumx; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673447620; a=rsa-sha256; cv=none; b=szejGJZ1910RxKmUSan1zxaM85sUv2mQGikEpi3tPp3spOZ6sHD2/Ojohlxq9d5XAY+BUV cHjP2VQRCEIIOdwBwBlDtyuMXisWlNovDn7SVwB1shshAwS2EG5CaYxuQXtb5dXATjIeok mT0BZg7BRax4cvkY78VklIpaaAesUySUz2/LaLgx3rmnqkHsgikaViBhOsr3vcbgs1YE8x imSYvEDHxa/8+1vtzIgQaVvxm0mWPGBu+Okowhub+Al+GBQyc8IaWkSTSjmH0hIPcvfwPY F5xfhfRP0k1NQWM8zrN+CNVYGw0gfy5AvTNTUMmKbGKU7rmR3AZgvw8SlY4H4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673447620; 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: dkim-signature; bh=BYhfgzg0nUfJ4/uB6tnjrzua3Mi9FS4rksaWzfkiQDU=; b=UZw/yRqcKMQ5LHVW7cq9MaABfEOZ7bKUtfbdXiJuwguuhfEygCPb8dG1i6+kJQzCSN8NRF XuWUL/CRjkmFWrVx9mMwam6hISeQU6ae7jvR/uDB/JUKdv8NlV7KNLaqag4c/OxTMObL5h fukbdoiK0WFjZqrbyreJg3smY3Sg3fvvKdF1RIuS03eVGaRdzpbHTAR5G0sBoE/S/iyN55 2FGytPBOwUspHeL9/FUG770MP4ZBPxeYISZGJvSfgr9y7b6wXzxU9BMaSSwoxbM6HerYXs sfF50KYkIWaV3ShfuP0c6T3gij0cDZtOd4oDWvz4KB73/gITdDhZpZzdc47aow== X-Migadu-Queue-Id: EB99034674 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021100501 header.b=QJmKlumx; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (policy=none) X-Migadu-Spam-Score: -2.29 X-Spam-Score: -2.29 X-TUID: 34I9NIUd5qye phodina writes: > Hi Jelle, > > I've tested the fwupd on my Asus Zenbook machine - see the attached screenshot. > > Without the service running the gnome-firmware or fwupdtool didn't work. > > With the service running I get some information about the firmware, EFI... It hasn't been battle tested by updating anything as the firmware there is the latest. > > I've also tried adding polkit extension but it seems to run without it in my case. Could you please test the patch if it works also for you, if not we can add it :-) > >From my system logs: --8<---------------cut here---------------start------------->8--- Jan 11 15:17:09 localhost shepherd[1]: [fwupd] 14:17:09:0330 FuMain another service has claimed the dbus name org.freedesktop.fwupd Jan 11 15:17:09 localhost shepherd[1]: Respawning fwupd. --8<---------------cut here---------------end--------------->8--- (and this repeated till shepherd disables the fwupd service). Note that 'another service has claimed the dbus name' seems to be a misleading error message: Running `sudo herd enable fwupd', `sudo herd start fwupd', while paying attention to the output of `sudo dbus-monitor --system' (/w `guix shell dbus') in another terminal: --8<---------------cut here---------------start------------->8--- method call time=1673446874.805907 sender=:1.162 -> destination=org.freedesktop.DBus serial=645 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RequestName string "org.freedesktop.fwupd" uint32 3 error time=1673446874.805914 sender=org.freedesktop.DBus -> destination=:1.162 error_name=org.freedesktop.DBus.Error.AccessDenied reply_serial=645 string "Connection ":1.162" is not allowed to own the service "org.freedesktop.fwupd" due to security policies in the configuration file" --8<---------------cut here---------------end--------------->8--- WDYT about adding a system test that verifies that fwupd can be started? Then we will know whether it's an anomaly on either of our respective machines :-). Additionally, would you be able to write documentation for the new service as well? > Check the rewritten synposis for gnome-firmware. LGTM. Thanks! - Jelle