From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GNZGEVFuIWQZ4AAASxT56A (envelope-from ) for ; Mon, 27 Mar 2023 12:22:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aE4VEVFuIWQvlQAAauVa8A (envelope-from ) for ; Mon, 27 Mar 2023 12:22:09 +0200 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 479B928E10 for ; Mon, 27 Mar 2023 12:22:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgjys-0006uQ-I6; Mon, 27 Mar 2023 06:21:38 -0400 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 1pgjyi-0006tE-MA for help-guix@gnu.org; Mon, 27 Mar 2023 06:21:28 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgjyg-00080E-JD for help-guix@gnu.org; Mon, 27 Mar 2023 06:21:28 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 16F43414AF; Mon, 27 Mar 2023 12:21:19 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WqoDQ6aLTyrg; Mon, 27 Mar 2023 12:21:17 +0200 (CEST) Date: Mon, 27 Mar 2023 07:21:09 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1679912477; bh=fVx8UqQEOMD61dybtVVsEV3HwZEiK1dk4W5wco+bDAo=; h=Date:From:To:Subject:In-Reply-To:References; b=DFB+Gi2AFpRUnZ4HGxYCspbAorW4v4KIqMt7az9C+mBdh1vyPxjQ6kwcz2BxsLXYN l4pAY2pACPRmn3UzMeVjL7T0mr4GiAIEgx94dYo/NYvce76E28RPe0SMABKNhfO0m1 2cjLiRKCcx3PgAz3wa5Q3yamob9MfAAVlG2CKqWFVwP/qM8gpWJGfXVl3l+0gi5SJh 3VsGcLb1bxyu9fJ741v8ewMDnlpo/9061W9xTb21AgCDMDv4xNV3HRnUuNkNLb2gOI w7oQCeLQNRYmh2josmm8YunqWiSWMmGByJTHksHAsTUmuH7Be0z2hNXQgFZUXiGBSQ H62KSJzOo8CnA== From: SeerLite To: Martin Castillo , help-guix@gnu.org Subject: Re: getting loginctl to work In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=178.21.23.139; envelope-from=seerlite@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679912528; a=rsa-sha256; cv=none; b=DqiOUbCbKK9USnYSD8BSmNHDEZ3sI18K7m6BCK79DYEplgnmtrLehAbwoMStkH33BXA2Hh 2h/ocwsL+0Cd/QhQdfmjhBgbZAM8u0i1l+Ffthj21qQWMpisgIbocb/d1qAJdHn3pKFOkK ABHea+Pefi6HxCyFfvE5pJC1eUTMdiVFdnKK0Hsd924kYGyLFk8iDl9eIgalMmXK5/mpMH IYMe/3V1UmbdLLqi4sqpUp/IawCkut7Yk7n7ZG9M+epmEUyhRUxgM03mTOx5p3CC5eUZ9Z h+bxZG0qGXcrBc3BU+LgbLi+Zq1qRYzZTLl8EMK+2hLb6cZBGAWEPqn/wNoArQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=DFB+Gi2A; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679912528; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2PZQcKCY7hD2Kl+8K7hlEB1trN0rH/NhisCc5/cReQc=; b=Ljc9FLFKEIWGt3+J4geypENdji3ABXHWWjHAGJE6xSNlv4D4rTXnEopoIJaDeJsQkxfI6M NPn7IUodxI4rfLdyvxQ+7QjEQX7YtOm+J5yFTdbcPimw8BRMYeI/42obIzyg+iPpXKWhyI +DN+hD9x5x8c2pRcfpnmCaJbR/Yyk1ZsLAiWHviMmose5OoWuT48qQ8jQzp7Jzfl6fShFI E2i+03j0ldTzbD9tZ8mJnz5FkpIs2M5PAZECRouQ9IzVgPOxAPzmh5EqxV5m2mZuCHCD5y 5hHzj2DKlSUpuHFzg+2EuuRR9q4mzOKrZsgSjFVVtTAvXIcBto8UIOOxwfpbbA== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=DFB+Gi2A; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.42 X-Spam-Score: -6.42 X-Migadu-Queue-Id: 479B928E10 X-TUID: AptocI0u8nz/ Hi! Is it maybe Polkit? Polkit was stopping me from suspending my laptop vi= a SSH=2E The exact same behavior as you: no output and error code 1=2E Since the only `loginctl` command I cared about was `suspend`, I added my = user to the `power` group, added the `power` group to `operating-system`, d= efined the following extension: ; Rule template stolen from from gnu/services/desktop=2Escm: polkit-wh= eel ; and rule itself stolen from https://askubuntu=2Ecom/a/992878 (define polkit-power-rules (file-union "polkit-power" `(("share/polkit-1/rules=2Ed/power=2Erules" ,(plain-file "power=2Erules" "polkit=2EaddRule(function(action, subject) { if (action=2Eid =3D=3D \"org=2Efreedesktop=2Elogin1=2Esuspend\" && subject=2EisInGroup(\"power\")) { return polkit=2EResult=2EYES; } });"))))) and added the above to my services like: (simple-service 'polkit-power-rules polkit-service-type (list polkit-p= ower-rules)) You'd have to do something but I'm guessing for `login1=2Epoweroff` instea= d=2E SeerLite