all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Etienne B. Roesch" <etienne.roesch@gmail.com>
To: "Ignas Lapėnas" <ignas@lapenas.dev>
Cc: help-guix@gnu.org
Subject: Re: Getting Guix to shutdown my laptop properly with Sway and no DE
Date: Mon, 17 Jul 2023 11:06:56 +0300	[thread overview]
Message-ID: <CAPX-MzBA1wTfUYhkWt6mOUTmb6nBOuoZKt04TXOj8oz53mH7zg@mail.gmail.com> (raw)
In-Reply-To: <87fs6229yw.fsf@lapenas.dev>

Hi,

I think I have been having the same problem for a while, using standalone
guix system on a desktop. It seems to sort itself out after a pull and
system reconfigure, but then it breaks again: The countdown does not start
and hangs. I have to hard stop the desktop, which is fine but not exactly
what should be happening.

Etienne

On Sun, Jul 9, 2023 at 3:42 PM Ignas Lapėnas <ignas@lapenas.dev> wrote:

> Hello,
>
> I have the same (or extremely similiar) issue. It seems that it is because
> of
> shepherd. The system seems to work alright, although can’t communicate
> with it
> at all. For some reason it hangs. Tried looking for logs for the program,
> sadly
> I’m extremely new to Gnu Guix and still stuck here. :(
>
> (Writing this out with an idea that it might maybe help)
>
> danclm— via <help-guix@gnu.org> writes:
>
> > Hello everyone!
> >
> > My T420 with Guix (no DE, only SDDM + Elogind + Sway) hangs during
> shutdown
> > after running loginctl poweroff/reboot or /sbin/shutdown /sbin/reboot.
> It just
> > sits there and only resolution is hard poweroff. It happens often.
> >
> > Is there something that I’m missing in my system.scm?
> >
> > ```
> > ;; My Guix config with the SwayWM
> >
> > (use-modules
> >   (gnu) (gnu system nss) (gnu system setuid))
> > (use-service-modules
> >   dbus desktop networking sddm sound ssh)
> > (use-package-modules
> >   certs
> >   compression
> >   disk
> >   emacs
> >   finance
> >   fonts
> >   fontutils
> >   freedesktop
> >   glib
> >   games
> >   gnome
> >   gnupg
> >   gnuzilla
> >   gtk
> >   haskell-xyz
> >   image
> >   libreoffice
> >   linux
> >   package-management
> >   password-utils
> >   pulseaudio
> >   rsync
> >   ruby
> >   ssh
> >   terminals
> >   tex
> >   texinfo
> >   version-control
> >   wm)
> >
> > (operating-system
> > (host-name “t420”)
> > (timezone “Europe/Rome”)
> > (locale “en_US.utf8”)
> >
> >   ;; Keyboard layout.
> >   (keyboard-layout (keyboard-layout “us”))
> >
> >   ;; Bootloader
> >   (bootloader (bootloader-configuration
> >                (bootloader grub-bootloader)
> >        (terminal-outputs ’(console))
> >                (targets (list “/dev/sda”))
> >                (keyboard-layout keyboard-layout)))
> >
> >   ;; Specify a mapped device for the encrypted root partition.
> >   ;; The UUID is that returned by ’cryptsetup luksUUID’.
> >   (mapped-devices
> >    (list (mapped-device
> >           (source (uuid “8022876e-e0cc-4ec5-8363-0f07c590cdbc”))
> >           (targets (list “guix-root”))
> >           (type luks-device-mapping))))
> >
> >   (file-systems
> >    (append
> >     (list (file-system
> >            (device (file-system-label “guix-root”))
> >            (mount-point “/“)
> >            (type ”ext4“)
> >            (dependencies mapped-devices)))
> >          %base-file-systems))
> >
> >   (swap-devices (list
> > (swap-space (target ”/swapfile“))))
> >
> >   ;; Define users and groups.
> >   (users
> >    (cons (user-account
> >           (name ”dani“)
> >           (comment ”“)
> >           (group ”users“)
> >           (home-directory ”/home/dani“)
> >           (supplementary-groups ’(”wheel“ ”netdev“
> >                                   ”audio“ ”video“ ”input“)))
> >          %base-user-accounts))
> >
> >   ;; Sudoers
> >   (sudoers-file
> >    (plain-file ”sudoers“ ”\
> > %root ALL=(ALL) ALL
> > %wheel ALL=(ALL) ALL
> > %wheel ALL=(ALL) NOPASSWD: /run/current-system/profile/sbin/reboot\n“))
> >
> >   ;; This is where we specify system-wide packages.
> >   (packages
> >    (append
> >     (list
> >      adwaita-icon-theme
> >      alacritty
> >      at-spi2-core
> >      dbus
> >      emacs
> >      font-awesome
> >      fontconfig
> >      font-dejavu
> >      font-gnu-unifont
> >      fzf
> >      git
> >      gnupg
> >      grim
> >      gtypist
> >      icecat
> >      keepassxc
> >      ledger
> >      libreoffice
> >      nss-certs
> >      openssh-sans-x
> >      pandoc
> >      parted
> >      pass-otp
> >      password-store
> >      pavucontrol
> >      pinentry
> >      pulseaudio
> >      rsync
> >      ruby-asciidoctor
> >      slurp
> >      stow
> >      sway
> >      swayidle
> >      swaylock-effects
> >      texinfo
> >      texlive-base
> >      unzip
> >      waybar
> >      xdg-utils
> >      zip)
> >     %base-packages))
> >
> >   ;; Some programs need to run with “root” privileges, even when they
> are launched by unprivileged users
> >   (setuid-programs (cons*
> >     (setuid-program
> >                      (program
> >       (file-append swaylock-effects ”/bin/swaylock“)))
> >                     %setuid-programs))
> >
> >   ;; Services
> >   (services
> >    (cons*
> >     (service alsa-service-type
> >      (alsa-configuration
> >       (pulseaudio? #t)))
> >     (service dbus-root-service-type)
> >     (service elogind-service-type)
> >     (service openssh-service-type
> >      (openssh-configuration
> >               (openssh openssh-sans-x)
> >               (port-number 22)
> >               (password-authentication? #f)
> >       (permit-root-login ‘prohibit-password)
> >               (authorized-keys
> >                `((”dani“ ,(local-file
> ”/home/dani/.ssh/authorized_keys“))))))
> >     (service polkit-service-type)
> >     (service sddm-service-type
> >        (sddm-configuration
> >   (auto-login-user ”dani“)
> >   (display-server ”wayland“)))
> >     ;; Static networking for one NIC, IPv4-only.
> >     (service static-networking-service-type
> >              (list (static-networking
> >                     (addresses
> >                      (list (network-address
> >                             (device ”wlp1s0“)
> >                             (value ”192.168.1.200/24“))))
> >                     (routes
> >                      (list (network-route
> >                             (destination ”default“)
> >                             (gateway ”192.168.1.1“))))
> >                     (name-servers ’(”1.1.1.1“ ”1.0.0.1“)))))
> >     (service wpa-supplicant-service-type
> >      (wpa-supplicant-configuration
> >       (config-file ”/etc/wpa-supplicant/wpa-supplicant.conf“)
> >       (interface ”wlp1s0“)))
> >     %base-services))
> >
> >   ;; Allow resolution of ‘.local’ host names with mDNS.
> >   (name-service-switch %mdns-host-lookup-nss))
> > ```
> >
> > Thank you in advance,
> >
> > Greetings
>

  reply	other threads:[~2023-07-17  9:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-04 19:26 Getting Guix to shutdown my laptop properly with Sway and no DE danclm--- via
2023-07-04 21:19 ` Robby Zambito
2023-07-04 22:12   ` danclm--- via
2023-07-05  2:44     ` Robby Zambito
2023-07-05  1:11 ` Skyler Ferris
2023-07-05  5:25 ` Ignas Lapėnas
2023-07-17  8:06   ` Etienne B. Roesch [this message]
2023-07-17 14:18     ` Chris Keschnat
2023-08-09 12:41 ` bug#65178: Shepherd hangs (was: Getting Guix to shutdown my laptop properly with Sway and no DE) Hilton Chain via Bug reports for GNU Guix
2023-08-13 15:25   ` Hilton Chain via Bug reports for GNU Guix
2023-08-15 13:20     ` Hilton Chain via Bug reports for GNU Guix
2023-09-02 20:49       ` Ludovic Courtès
2023-09-03  8:21         ` Hilton Chain via Bug reports for GNU Guix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPX-MzBA1wTfUYhkWt6mOUTmb6nBOuoZKt04TXOj8oz53mH7zg@mail.gmail.com \
    --to=etienne.roesch@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=ignas@lapenas.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.