From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Hinsen Subject: Who is sending my Guix System to sleep? Date: Thu, 26 Sep 2019 09:21:13 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56163) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDO5b-0000Fd-Ng for help-guix@gnu.org; Thu, 26 Sep 2019 03:21:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDO5W-0006AL-Tz for help-guix@gnu.org; Thu, 26 Sep 2019 03:21:23 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:46015) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iDO5W-00064o-Jl for help-guix@gnu.org; Thu, 26 Sep 2019 03:21:18 -0400 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: help-guix@gnu.org Hi Guix, In an attempt to make more use of Guix in my daily life on a MacBook, I have set up a virtual machine (using VirtualBox) that contains a desktop installation of Guix. I have then set up ssh with X11 forwarding, and thus run software such as Emacs from my macOS terminal. Since I don't need the virtual machine's display, I usually run the machine in headless mode. The only problem is that after 20 minutes, the virtual machine seems to freeze. I found the cause in /var/log/messages: Sep 26 08:54:40 localhost NetworkManager[282]: [1569480880.2246] manager: sleep: sleep requested (sleeping: no enabled: yes) Sep 26 08:54:40 localhost NetworkManager[282]: [1569480880.2247] manager: NetworkManager state is now ASLEEP Sep 26 08:54:40 localhost NetworkManager[282]: [1569480880.2248] device (enp0s3): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed') Sep 26 08:54:40 localhost NetworkManager[282]: [1569480880.2293] device (enp0s3): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed') Something requests NetworkManager to go to sleep, which is obviously not good for my ssh connection. But what? First I went to the XFCE settings and switched off all automatic suspend and hibernate actions. No success. Then I replaced %desktop-services in my config.scm by %base-services plus the explicit list of what %desktop-services adds to it. And then I removed suspect and/or unneeded services one by one. Now I have nothing left that I can remove without losing some functionality or getting en error message at "guix system reconfigure". But my system still goes to sleep after 20 minutes. These are the services I still have, in addition to %base-services: (list (service xfce-desktop-service-type) (service openssh-service-type (openssh-configuration (x11-forwarding? #t))) (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout))) (service gdm-service-type) (service network-manager-service-type) (service wpa-supplicant-service-type) (service avahi-service-type) (accountsservice-service) (elogind-service) (dbus-service) (service ntp-service-type) x11-socket-directory-service) Does anyone have an idea what could cause the automatic sleep? BTW, I also tried using a basic non-desktop system, but then I cannot run X11 applications for whatever reason. Thanks in advance, Konrad