From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: Does not halt after Menu - Logout - Shut down and closing notebook hood Date: Sun, 14 Oct 2018 18:43:04 +0200 (CEST) Message-ID: References: <> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_135575_1533555728.1539535384212" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBjTx-000857-DJ for help-guix@gnu.org; Sun, 14 Oct 2018 12:43:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBjTu-0002tM-6U for help-guix@gnu.org; Sun, 14 Oct 2018 12:43:09 -0400 Received: from w1.tutanota.de ([81.3.6.162]:54968) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gBjTt-0002o9-PG for help-guix@gnu.org; Sun, 14 Oct 2018 12:43:06 -0400 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id 360D2FBF094 for ; Sun, 14 Oct 2018 16:43:04 +0000 (UTC) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@tutanota.com Cc: Help Guix ------=_Part_135575_1533555728.1539535384212 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Would you be so kind to give me info where I can get the variables, its ele= ments and possible values? As you've offered this: (modify-services %desktop-services =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (e= logind-service-type =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 c =3D> (elogind-configuration =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (handle-lid-switch 'ign= ore)))) I can find elogind configuration here https://git.savannah.gnu.org/cgit/gui= x.git/tree/gnu/services/desktop.scm#n566 As I look at `guix package -s elogind` I've discovered that _elogind_ is a = port of systemd _logind_ service. Manual describes here=C2=A0 http://man7.org/linux/man-pages/man5/logind.con= f.5.html =20 "HandleLidSwitch=3D, HandleLidSwitchDocked=3D =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Controls how l= ogind shall handle the system power and sleep keys =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 and the lid sw= itch to trigger actions such as system power-off or =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 suspend. Can b= e one of "ignore", "poweroff", "reboot", "halt", =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "kexec", "susp= end", "hibernate", "hybrid-sleep", and "lock". If =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "ignore", logi= nd will never handle these keys." Ok,=C2=A0 I've got variable 'HandleLidSwitch' and it's value 'ignore' that = I need to use. It is so hard to get from all these sources the lines that you've wrote. But sorry, config contains 'handle-lid-switch'. And may be I will need any = other configurations in other services that were not mentioned in Guix cgit= . So how to get their exact names? I started to learn guile at free time. But other Linux distributions had an= swers in the web how to configure. Using GuixSD I need to know exactly every package configurations and to now= exactly how to translate it into Scheme. I there any specific manual how to do that? ------=_Part_135575_1533555728.1539535384212 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Would you be so kind to give me info where I can get the variables, its ele= ments and possible values?
As you've offered this:

(modify-= services %desktop-services
       &= nbsp;     (elogind-service-type
   =             c =3D>= ; (elogind-configuration
       &nb= sp;            =   (handle-lid-switch 'ignore))))

I can find elogind configu= ration here ht= tps://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n566=
As I look at `guix package -s elogind` I've discovered that _elog= ind_ is a port of systemd _logind_ service.
Manual describes here = ; http://man7.org/linux/man-pages/ma= n5/logind.conf.5.html
"HandleLidSwitch=3D, HandleLidSwitchDo= cked=3D
           C= ontrols how logind shall handle the system power and sleep keys
 =           and the lid switch t= o trigger actions such as system power-off or
    =        suspend. Can be one of "ignore&qu= ot;, "poweroff", "reboot", "halt",
 = ;          "kexec", = "suspend", "hibernate", "hybrid-sleep", and &= quot;lock". If
        &n= bsp;  "ignore", logind will never handle these keys."
Ok,  I've got variable 'HandleLidSwitch' and it's value 'ign= ore' that I need to use.
It is so hard to get from all these sources t= he lines that you've wrote.
But sorry, config contains 'handle-lid-swi= tch'. And may be I will need any other configurations in other services tha= t were not mentioned in Guix cgit.
So how to get their exact names?
I started to learn guile at free time. But other Linux distributio= ns had answers in the web how to configure.
Using GuixSD I need to kno= w exactly every package configurations and to now exactly how to translate = it into Scheme.
I there any specific manual how to do that?

------=_Part_135575_1533555728.1539535384212--