From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 GF3wOjA0DmMaXwEAbAwnHQ (envelope-from ) for ; Tue, 30 Aug 2022 18:00:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eNHaOjA0DmMKeAAAauVa8A (envelope-from ) for ; Tue, 30 Aug 2022 18:00:48 +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 51484A1A4 for ; Tue, 30 Aug 2022 18:00:48 +0200 (CEST) Received: from localhost ([::1]:48684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oT3fT-0002Q2-9R for larch@yhetil.org; Tue, 30 Aug 2022 12:00:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT3el-0002Pb-Cq for bug-guix@gnu.org; Tue, 30 Aug 2022 12:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oT3el-00070r-2H for bug-guix@gnu.org; Tue, 30 Aug 2022 12:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oT3ek-0004e7-LX for bug-guix@gnu.org; Tue, 30 Aug 2022 12:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57490: UPower ignores =?UTF-8?Q?=E2=80=98critical-power-action=E2=80=99?= Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 30 Aug 2022 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57490 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 57490@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166187517717789 (code B ref -1); Tue, 30 Aug 2022 16:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Aug 2022 15:59:37 +0000 Received: from localhost ([127.0.0.1]:37195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oT3eL-0004cr-9U for submit@debbugs.gnu.org; Tue, 30 Aug 2022 11:59:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:52208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oT3eI-0004cg-3t for submit@debbugs.gnu.org; Tue, 30 Aug 2022 11:59:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT3eH-0002MM-Tr for bug-guix@gnu.org; Tue, 30 Aug 2022 11:59:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT3eH-0006uI-Lc for bug-guix@gnu.org; Tue, 30 Aug 2022 11:59:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=T299uBI2Y2HVuWxW6lovnKIRbtwnwGTXCmWtqwFkqHk=; b=mlHe3Dd0ggZjnm nts61N1gqS/9omuQF1vXDucq5p+GSoRkbg7zC0aySoOEsIHNU7UJF4Hvp1KNjlBDnWS9B2GCsdXje qr2S/PhSP6NIauy7TnnKOFTdOMa+/ww4XF2pK1kn5ksMjD2vWYf7m6dDsljgIMMEVZnGdTyoT67ZZ 1/DQpov6YC0RXFj7YiyTZcRa+kefAedqDCaFZRZ/orRgQYyMMHknWhlLJbfJCCqe304FN9Ss9f7RH bu9scyKqOEgG7XEPmDPwPTBNSAq+POGEIZpdJvf4Qp9UxJ8afKJms7aIjjUdl+q+smn3F7VZPPD6t qo/5yfB6qsQYClQFY3YA==; Received: from [193.50.111.124] (port=51214 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oT3eG-0007kk-N2 for bug-guix@gnu.org; Tue, 30 Aug 2022 11:59:33 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Tridi 13 Fructidor an 230 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de =?UTF-8?Q?l'=C3=89pine-vinette?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 30 Aug 2022 17:59:30 +0200 Message-ID: <87sflden8d.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661875248; 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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=T299uBI2Y2HVuWxW6lovnKIRbtwnwGTXCmWtqwFkqHk=; b=EyJifUTWsRpRb6J18nlFQXYt1rkbEjVpOreuQj+Eh7eDvxE19u9wQkheCXKpO3fKy1izQP mmzm5IJCuO3oFpwF8dLrRwwlBoE2KCSYnlNnf3rI/I/nrzUfltrBtEtMCho11X1CjTxOhH TQe3eQicqAIx5oTW1m39nkrwczKp/XERj1j29bA8B9FHmlpMauI8rRVmJCmdkUMsuTkTvq ecdbS+Q7C3NuImC6aY7UU2aqTX09p03tID2OkA9m3l1WDrpYzheOEGIGYs4EWNoldhYUez hwmnjg3rmm4W3yq43oW/gBRIF6I/bIXfuBpWZRdgi9NeOSBo07Qi7nx8MIzWLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661875248; a=rsa-sha256; cv=none; b=ep5glNfRiJvpF/x2hwOChvc+4xvAz6H+3i7c3o819DyAWRPp2PtRr/Ruf6l0g/fbv0jfHE BqmPx1D+bTphVSnFsxIZdPC2FgXwb4ANMO17UbU/ncTN9eZEH+W0oUvC/Cp3bLIJ/C6VNP YwBysNGy8VwyJ4UsY2WXo+JsHs0OOw+5u14QzC9Ecgk/Mbuo7AfsW+3izar47jME4Oo4ql Ql5dVJ5Nyxp4UZGO8Np19XzkC+ZWO/EKuV4tJTKjBPISuKz9Gxyq8tS1FQGND2ddExUU4E jRFK7uDu8w8tdi5gg2GrrsSSZq0Z4xiR+3R1wAyb2YsExTuHrBpHwZy9kiQqUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=mlHe3Dd0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=mlHe3Dd0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 51484A1A4 X-Spam-Score: -3.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: J3qvHlESKMnQ As discussed on IRC with Tobias, UPower appears to ignore our =E2=80=98critical-power-action=E2=80=99 setting. On my machine, I left the= default (=E2=80=98HybridSleep=E2=80=99) but upowerd dismisses it and chooses =E2=80= =98PowerOff=E2=80=99: --8<---------------cut here---------------start------------->8--- $ guix system describe Generation 198 Aug 29 2022 00:47:53 (current) file name: /var/guix/profiles/system-198-link canonical file name: /gnu/store/85441w3nzqv8lg04gm7601wi9np4qlw7-system label: GNU with Linux-Libre 5.18.19 bootloader: grub-efi root device: label: "root" kernel: /gnu/store/a43ai5qi4vbgm2zywg4b60y71d7whccn-linux-libre-5.18.19/b= zImage channels: guix: repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 3294fa2ba451c7d5ef42a5d9fac780877f364bc7 configuration file: /gnu/store/lmqb5d0il8zydd0p0vz4kviaq1qg4n9m-configura= tion.scm $ upower -d | tail -6 Daemon: daemon-version: 0.99.15 on-battery: no lid-is-closed: no lid-is-present: yes critical-action: PowerOff $ sudo herd status upower-daemon=20 Status of upower-daemon: It is started. Running value is 338. It is enabled. Provides (upower-daemon). Requires (dbus-system udev). Conflicts with (). Will be respawned. $ sudo cat /proc/338/environ |xargs -0 PWD=3D/ UPOWER_CONF_FILE_NAME=3D/gnu/store/yq6zf8q2l2axy03d99pami3sxrk4784y= -UPower.conf SHLVL=3D0 XDG_DATA_DIRS=3D/gnu/store/bnsf9il448hl5xjavbhq3rcx3= 55svz2v-glib-2.70.2/share $ cat /gnu/store/yq6zf8q2l2axy03d99pami3sxrk4784y-UPower.conf |grep Critical PercentageCritical=3D3 TimeCritical=3D300 CriticalPowerAction=3DHybridSleep --8<---------------cut here---------------end--------------->8--- Looking at the code, it could be because the =E2=80=98CanHybridSleep=E2=80= =99 method returns false, but why that would happen is unknown to me. Thoughts? Ludo=E2=80=99.