From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: acpi, suspend, hibernate Date: Tue, 31 Mar 2015 14:18:30 +0200 Message-ID: <87d23pcqcp.fsf@gnu.org> References: <4157721eb7315db31a3b8ecfbab4adc3@hcoop.net> <877fu158sc.fsf@gnu.org> <87twx5arzc.fsf@netris.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]:48731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycv7s-0004XJ-Jb for guix-devel@gnu.org; Tue, 31 Mar 2015 08:18:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ycv7o-0005wx-Je for guix-devel@gnu.org; Tue, 31 Mar 2015 08:18:36 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycv7o-0005wt-Hg for guix-devel@gnu.org; Tue, 31 Mar 2015 08:18:32 -0400 In-Reply-To: <87twx5arzc.fsf@netris.org> (Mark H. Weaver's message of "Sat, 28 Mar 2015 14:37:11 -0400") 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: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver skribis: > 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-suspe= nd=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. Good point, and this would be quite easy. I wonder where things like X session locking should take place though. (I guess this is one of the things that ConsoleKit and its replacements took care of.) Thoughts? Ludo=E2=80=99.