From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 GK8YOUsz5mMOggEAbAwnHQ (envelope-from ) for ; Fri, 10 Feb 2023 13:06:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8INJOEsz5mO6LQEAG6o9tA (envelope-from ) for ; Fri, 10 Feb 2023 13:06:35 +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 63195BDA2 for ; Fri, 10 Feb 2023 13:06:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQSAI-00008W-4i; Fri, 10 Feb 2023 07:06:06 -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 1pQSA8-00007G-Ag for guix-devel@gnu.org; Fri, 10 Feb 2023 07:05:57 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQSA5-00052l-Ax for guix-devel@gnu.org; Fri, 10 Feb 2023 07:05:56 -0500 Date: Fri, 10 Feb 2023 12:05:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail2; t=1676030747; x=1676289947; bh=20SXzGsAV5bWqyLVj/EW865jNa9JbBVypuqeqwsOPr4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=UUL6Bl6Zn8OBU2lGC1YiXGl2Mp2re/j2/athCwUnd1MDpmaX4B7k4pVD1Gj2VlbdT g1MN0bVki83whrHnoR1qE1RxiIxjHQguwPSuUJZ0eVYWx+6Oy2jlrkU1Selay/dhBw MhOeTJo+BpKQV//xPY+liaM0RsGUi/PoD3J8Y/PiaFKG7uTKLaWpJAjMSVlGwSqaVY bPcvWigBkyNgG9x04RTw18r620qej7C2IpVbzFdQUWL03a9TJifSGS4BS9F15c7vVW ISTV3726KarFV1cuGndr9V0Z0ATQ1UGAoRwPBjSqt6ei96bGQS2NMTzpqcdiL3cRgQ XrHQo10sCFI2A== To: Attila Lendvai From: Attila Lendvai Cc: guix-devel Subject: Re: [RFC] refactoring extra-special-file; an /etc/tmpfiles/ equivalent Message-ID: In-Reply-To: References: Feedback-ID: 28384833:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=attila@lendvai.name; helo=mail-4323.proton.ch X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TO_EQ_FM_DIRECT_MX=1 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-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=1676030795; a=rsa-sha256; cv=none; b=eRf787G2C6vHnk5neMKXDI6slaMgNdpf4+yAPwROIfbN+jpxHVaeew3JHa44/7hWFiP+zV J1uiLFoR+em2LGhv+vK3rTz9PuGHfnwsgNA0mnmMiVaMtmJ2rF50/WX0We1/jq56o2YUrp ebgW4E3N/iJJcVku3ngd7cvpIQ+scI/uxohxVo0Vhgn7DCus/7j6OTW/2hZk+5YAOjWVGN xEHoMz+q89F7nxQ0oswKoc++AbtiXXryZdjS++ng2HEcNZjYmhdJnqyjIl3kQkTK+OM0/x 65eTGjMg7H/UaXB4O8wA/D9/dKgyxYQ3T5Cj4Z6JtR+Sya/k9q4ciX8N0mfmUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b=UUL6Bl6Z; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676030795; 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: 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=20SXzGsAV5bWqyLVj/EW865jNa9JbBVypuqeqwsOPr4=; b=t43P+w3BxTc8mZj/Z7nCVmKWN6OpaIzHWtetlsg7jLuwXpyHAW6cFhs+19nuqdfPuXWnTU mptKn/xiGsHIudu9NaN0/GeiMrk5rgzcBUG/XfwnCyfAhK7C6rldEGkwF4grOtSxl/iBLm B6Opk59S1yPi+M1QlUmdEbnq/pzXUITbra/DHpPJXfpkjYrh7kF1zEAUWgHzgYJBRvPlyF vRONy4v6xzpEAwxccDrZPkcuu0ctEuYOpi4U6+EiQBk7qz4t5bP6vle+o1YW2g/+3MMKWm e4WzOKglYR2ks5JI0JYJEGvYjWnhPGlFghlcWSdM8uIaZ5V36dUlg3QL4ojluw== X-Spam-Score: -5.47 X-Migadu-Queue-Id: 63195BDA2 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b=UUL6Bl6Z; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.47 X-TUID: mZNMcBTp5V/p > i want to write a string into a file at boot to disable wake-up by > my keyboard (so that it doesn't immediately wake up my laptop after > i suspend it). it requires doing this once per boot: > > echo XHC >/proc/acpi/wakeup >=20 > the standard solution on systemd distros is to use a > /etc/tmpfiles.d/disable-usb-wake.conf file, which systemd interprets > (see e.g. https://forums.linuxmint.com/viewtopic.php?f=3D42&t=3D312953). FTR, the "guixy way" currently is to add a service like this: (simple-service 'disable-keyboard-wakeup activation-service-type #~(begin (use-modules (ice-9 regex)) (use-modules (ice-9 textual-ports)) (when (string-match "XHC\t S3\t\\*enabled" (call-with-input-file "/proc/acpi/wakeup" get-string-all)) (display "Turning off usb wakeup\n") (with-output-to-file "/proc/acpi/wakeup" (lambda _ (display "XHC")))))) --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- Censorship is telling a man he can't have a steak just because a baby can't= chew it.