From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?VG9tw6HFoSDEjGVjaA==?= Subject: Re: acpi, suspend, hibernate Date: Sat, 28 Mar 2015 21:59:04 +0100 Message-ID: <20150328205904.GB8346@venom> References: <4157721eb7315db31a3b8ecfbab4adc3@hcoop.net> <877fu158sc.fsf@gnu.org> <87twx5arzc.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y7xTucakfITjPcLV" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybxp2-0008AT-Kl for guix-devel@gnu.org; Sat, 28 Mar 2015 16:59:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ybxox-00061d-O7 for guix-devel@gnu.org; Sat, 28 Mar 2015 16:59:12 -0400 Received: from cantor2.suse.de ([195.135.220.15]:60680 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybxox-00061X-HR for guix-devel@gnu.org; Sat, 28 Mar 2015 16:59:07 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1735FAAC8 for ; Sat, 28 Mar 2015 20:59:06 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87twx5arzc.fsf@netris.org> 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: guix-devel@gnu.org --Y7xTucakfITjPcLV Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 28, 2015 at 02:37:11PM -0400, Mark H Weaver wrote: >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. I guess the pm-utils approach is to put shell scripts >into /etc/pm. I second this idea. Dmd is proper place to implement such actions as services may benefit from performing actions before suspend or after resume. Pm-utils package was collection of hacks and workarounds for broken hardware. It hopefully won't be needed anymore. To have the list of options richer, there is also UPower (http://upower.freedesktop.org/) which is designed to take care of power management. Best regards, S_W --Y7xTucakfITjPcLV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlUXFhYACgkQ37XrCapiVCNknwCfW3vNO2yx693b2KRLSTjLVj5f +SUAn34vLErWWIEHLW7Pq+dm8b2+xvU2 =lYWU -----END PGP SIGNATURE----- --Y7xTucakfITjPcLV--