Re: Does not halt after Menu - Logout - Shut down and closing notebook hood

2018-10-15 Thread znavko
This idea is quite interesting! For me very novice, there are too few examples 
of config file in cgit and manual.
As Ludovic Courtes says 'So we have a package abstraction. Just pretty useful' 
https://peertube.social/videos/watch/2d3b999c-0bc8-4375-87ad-91ff86b9521a?start=12m26s
 

When user is not familiar with Scheme need to learn variables described here 
https://www.gnu.org/software/guix/manual/en/html_node/Services.html#Services 
 
before your attempt to add a new service becomes successful.
I cannot understand the chain of those variables and do not know the content of 
variables. So how to display them without starting compilation? 
Is it possible to get something like analysis of my config.scm before running 
`guix system reconfigure /etc/config.scm` ?
And how to know what (use-modules (gnu services networking)) adds or what (gnu 
services audio) adds. F.e. if I do not want pulseaudio, but want only alsa, how 
to type it in my config.scm?
Need to discover a tree of variables for know which modules and may be other 
git parts are necessary for adding new service or package into system.
As I imagine only guix messages while starting compilation can help and cgit is 
the one place where source code may have helpful stuff.
I also cannot understand how function (use-modules) works, and what does it do 
with arguments? Arguments look like childs gnu->services->audio, but why I see 
they are separated by space? All I've got at this moment listening MIT LISP 
lectures that (use-modules) is a function.
May be you'll offer more powerful learning with examples for quick start?


15. Oct 2018 21:35 by mba...@fastmail.com :


> Perhaps it would be useful with an appendix to the manual explaining
> some of the concepts in play.  Not only Scheme and the configuration
> system, but also things like bootloaders, partitioning, LUKS, etc.
>
> I think it could be good resource for many new and intermediate
> GNU/Linux users, sort of like the Arch wiki for GuixSD.

Re: Does not halt after Menu - Logout - Shut down and closing notebook hood

2018-10-15 Thread Marius Bakke
Chris Marusich  writes:

>  writes:
>
>> [...]  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?
>
> Some (perhaps most) services assume that you are somewhat familiar with
> the software in question.  For example, the explanation of the
> openssh-configuration in the Guix manual explains what the configuration
> items do, but if you don't know what OpenSSH is, then it probably
> doesn't help you very much.  When you encounter situations like this,
> you might sometimes need to read more about the software in question
> before you will understand how to use it in GuixSD.  This is generally
> true for any GNU/Linux distribution.

Perhaps it would be useful with an appendix to the manual explaining
some of the concepts in play.  Not only Scheme and the configuration
system, but also things like bootloaders, partitioning, LUKS, etc.

I think it could be good resource for many new and intermediate
GNU/Linux users, sort of like the Arch wiki for GuixSD.


signature.asc
Description: PGP signature


Re: Does not halt after Menu - Logout - Shut down and closing notebook hood

2018-10-15 Thread Chris Marusich
 writes:

> [...]  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?

Some (perhaps most) services assume that you are somewhat familiar with
the software in question.  For example, the explanation of the
openssh-configuration in the Guix manual explains what the configuration
items do, but if you don't know what OpenSSH is, then it probably
doesn't help you very much.  When you encounter situations like this,
you might sometimes need to read more about the software in question
before you will understand how to use it in GuixSD.  This is generally
true for any GNU/Linux distribution.

> I started to learn guile at free time. But other Linux distributions
> had answers 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?

In cases like this, your best bet is to do the following:

1) Check the GNU Guix manual.  You can read it online [1] or on your
computer via the command "info guix".

2) Check the GNU Guix source.  It sounds like you already know how to do
that.  Sometimes, the source code contains helpful information that has
not yet been added to the manual.

3) Search the help-guix@gnu.org email archives [2] for information.
Sometimes, the same question has been asked before.  It's also useful to
search the guix-de...@gnu.org email list [3], since a lot of discussion
happens there, also.

4) If you still don't understand something, ask for help at
help-guix@gnu.org.  You can also ask for help in our IRC chat room [4].

Nobody starts out knowing everything.  The Guix community is very
welcoming to newcomers, and I'm sure that if you take the time to ask
questions, you'll receive friendly, useful advice.  Good luck!

Footnotes: 
[1]  https://www.gnu.org/software/guix/manual/en/html_node/GNU-Distribution.html

[2]  https://lists.gnu.org/archive/html/help-guix/

[3]  https://lists.gnu.org/archive/html/guix-devel/

[4]  https://www.gnu.org/software/guix/contact/irc/

-- 
Chris


signature.asc
Description: PGP signature


Re: Does not halt after Menu - Logout - Shut down and closing notebook hood

2018-10-14 Thread znavko
Would you be so kind to give me info where I can get the variables, its 
elements and possible values?
As you've offered this:

(modify-services %desktop-services
 (elogind-service-type
   c => (elogind-configuration
  (handle-lid-switch 'ignore

I can find elogind configuration here 
https://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 _elogind_ is a port 
of systemd _logind_ service.
Manual describes here  http://man7.org/linux/man-pages/man5/logind.conf.5.html 
 
"HandleLidSwitch=, HandleLidSwitchDocked=
   Controls how logind shall handle the system power and sleep keys
   and the lid switch to trigger actions such as system power-off or
   suspend. Can be one of "ignore", "poweroff", "reboot", "halt",
   "kexec", "suspend", "hibernate", "hybrid-sleep", and "lock". If
   "ignore", logind will never handle these keys."

Ok,  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 
answers 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?



Re: Does not halt after Menu - Logout - Shut down and closing notebook hood

2018-10-14 Thread znavko
Yes. After changes in /etc/config.scm and running as root `guix system 
reconfigure /etc/config.scm` and reboot I've got it!
 Your advice solved! Thank you!



Hello, I think this can be done by set 'handle-lid-switch' to 'ignore'(it's 
'suspend' by default) for the 'elogind-service-type', for 
example:(operating-system  ...  (services(cons* (xfce-desktop-service)  
 (modify-services %desktop-services (elogind-service-type   
c => (elogind-configuration  (handle-lid-switch 
'ignore)))Hope it helps!

Re: Does not halt after Menu - Logout - Shut down and closing notebook hood

2018-10-14 Thread 宋文武
 writes:

> When I return to notebook (even 8-10 hours later) and open it I see it is 
> working and lines in a black screen go there. Something like 'stoping 
> service.. will now halt'. And it turning off.
>
> Please, how to configure it not to sleep when I close hood but to halt when I 
> want it this way?
>
> Hello, Guix Help! I want to make an effort to solve a problem I've noticed.
> I am using GuixSD, Xfce4. I think I have no screensaver and Screen lock.
> But inconvenient thing rests there.
> Every time I want to turn of notebook and close it quickly it does not switch 
> off at all.
> 1. I click Xfce4 Menu -> Log out -> Shut down
> 2. I close notebook hood quickly
> 3. I go away
> 4. Notebook keep on working
>
> When I return to notebook (even 8-10 hours later) and open it I see it is 
> working and lines in a black screen go there. Something like 'stoping 
> service.. will now halt'. And it turning
> off.
>
> Please, how to configure it not to sleep when I close hood but to halt when I 
> want it this way?

Hello, I think this can be done by set 'handle-lid-switch' to 'ignore'
(it's 'suspend' by default) for the 'elogind-service-type', for example:

(operating-system
  ...
  (services
(cons* (xfce-desktop-service)
   (modify-services %desktop-services
 (elogind-service-type
   c => (elogind-configuration
  (handle-lid-switch 'ignore)))

Hope it helps!



Does not halt after Menu - Logout - Shut down and closing notebook hood

2018-10-14 Thread znavko
Hello, Guix Help! I want to make an effort to solve a problem I've noticed.
I am using GuixSD, Xfce4. I think I have no screensaver and Screen lock.
But inconvenient thing rests there.
Every time I want to turn of notebook and close it quickly it does not switch 
off at all.
1. I click Xfce4 Menu -> Log out -> Shut down
2. I close notebook hood quickly
3. I go away
4. Notebook keep on working

When I return to notebook (even 8-10 hours later) and open it I see it is 
working and lines in a black screen go there. Something like 'stoping service.. 
will now halt'. And it turning off.

Please, how to configure it not to sleep when I close hood but to halt when I 
want it this way?