From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: acpi, suspend, hibernate Date: Sat, 28 Mar 2015 14:37:11 -0400 Message-ID: <87twx5arzc.fsf@netris.org> References: <4157721eb7315db31a3b8ecfbab4adc3@hcoop.net> <877fu158sc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbvbF-0003vG-Fp for guix-devel@gnu.org; Sat, 28 Mar 2015 14:36:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbvbC-0008Pk-8A for guix-devel@gnu.org; Sat, 28 Mar 2015 14:36:49 -0400 In-Reply-To: <877fu158sc.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 28 Mar 2015 18:30:43 +0100") 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > =E7=99=BD=E3=81=84=E7=86=8A=EF=BC=A0=E7=9B=B8=E6=92=B2=E9=81=93 skribis: > >> I have GuixSD installed on the Gluglug X200 and would like to issue >> suspend and hibernate commands. Upon inspecting /proc/acpi however it >> seems that this is not built in the current kernel that I have booted. > > We currently lack the pm-utils package, which provides =E2=80=98pm-suspen= d=E2=80=99 > (currently I use a script that writes to /sys/power/state as Tom=C3=A1=C5= =A1 > suggested.) Would you like to give it a try? I wonder if it might be better to implement suspend/resume in dmd, so that services could easily define actions to be run before suspend and after resume. I guess the pm-utils approach is to put shell scripts into /etc/pm. Mark