[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does not halt after Menu - Logout - Shut down and closing notebook h
From: |
宋文武 |
Subject: |
Re: Does not halt after Menu - Logout - Shut down and closing notebook hood |
Date: |
Sun, 14 Oct 2018 20:10:08 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
<address@hidden> 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!