unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: znavko@disroot.org
To: help-guix <help-guix@gnu.org>
Subject: How to timeout herd's network services start for not to stop boot process ?
Date: Mon, 23 Mar 2020 17:15:29 +0000	[thread overview]
Message-ID: <29a98f87a01e64a00e0fb9833aaf6dc7@disroot.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1605 bytes --]

Hello, Guix developers! I'm so happy that OS Guix works on a new PC, cause I've tried to buy 2 laptops where wifi or even graphics did not work!
On Dell Vostro 3670, Core i5 9400, Nvidia Geforce 710 Guix works and even wifi works (but I use usb wifi adapter for better connection power).

I have inconvenience: during boot guix stops and wait for about 30 seconds on wifi connection, as on images and dmesg:

http://0x0.st/ialz.jpg
http://0x0.st/ial-.jpg

# dmesg |grep wlp
[ 2.715775] ath9k 0000:05:00.0 wlp5s0: renamed from wlan0
[ 3.383086] ath9k_htc 1-1:1.0 wlp0s20f0u1: renamed from wlan0
[ 174.055212] wlp0s20f0u1: authenticate with xx:pp:xx:pp:xx:pp
[ 174.313915] wlp0s20f0u1: send auth to xx:pp:xx:pp:xx:pp (try 1/3)
[ 174.315645] wlp0s20f0u1: authenticated
[ 174.318674] wlp0s20f0u1: associate with xx:pp:xx:pp:xx:pp (try 1/3)
[ 174.323907] wlp0s20f0u1: RX AssocResp from xx:pp:xx:pp:xx:pp (capab=0xc11 status=0 aid=3)
[ 174.332535] wlp0s20f0u1: associated
[ 174.528137] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s20f0u1: link becomes ready

I did not tried with internal wifi, but usb wifi adapter starts for soo long!

I've attached my config where I have to comment wpa_supplicant service and dhclient for resist this delay during boot. And I connect manually.

Please, can you say me how to postpone herd services networking, wpa-supplicant, dhclient and start them after slim's start or for example after 5 seconds after finish of boot process?

Also can you say how to add my bash script to autorun after boot if I do not use cron (for my future experiments)?

znavko.

[-- Attachment #2: guix-config.scm --]
[-- Type: application/octet-stream, Size: 2646 bytes --]

;-*- mode: Scheme; -*-
;;this is znavko's cute config
;; for lightweight xfce4 desktop

(use-modules (gnu) (gnu system nss)
	     (gnu system locale) ;;for locale-definition
	     (gnu services desktop)
	     (srfi srfi-1)	       ;;for remove function
	     (gnu services networking) ;;for remove ntp
	     (gnu services avahi)      ;;for remove avahi
	     (gnu services xorg)
	     (gnu packages admin) ;;for wpa_supplicant
	     )

(use-service-modules desktop)
(use-package-modules certs gnome)

(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
		  (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (target "/boot/efi")))
		  (file-systems (cons* 
					(file-system (device "/dev/sda1") (mount-point "/boot/efi") (type "vfat"))
					(file-system (device "/dev/sda2") (mount-point "/") (type "ext4")) 
				%base-file-systems))

		  (swap-devices '("/dev/sda3"))

		  (users (cons* (user-account (name "bob") (group "users")
					      (supplementary-groups '("wheel" "netdev" "audio" "video"))
					      (home-directory "/home/bob"))
				(user-account (name "mom") (group "users")
					      (supplementary-groups '("wheel" "netdev" "audio" "video"))
					      (home-directory "/home/mom"))
				%base-user-accounts))

		  ;; This is where we specify system-wide packages.
		  (packages (cons* nss-certs ;for HTTPS access
				   gvfs	     ;for user mounts
				   wpa-supplicant
				   %base-packages))

		  (services (cons* 
			     ;; xfce4 desktop, dhcp-client, slim
			     (service xfce-desktop-service-type)
			     ;(service dhcp-client-service-type)
			     (service slim-service-type)

			     (modify-services      
			      ;; removing unnecessary services
			      (remove (lambda (service)
					(member (service-kind service)
						(list ntp-service-type avahi-service-type 
						      bluetooth-service network-manager-service-type
						      gdm-service-type)))
				      %desktop-services) ;end of remove lambda services

			      ;; wpa_supplicant + dhcp-client (above) instead of networkmanager
			      ;(wpa-supplicant-service-type config =>
			;				   (wpa-supplicant-configuration
			;				    (interface "wlp0s77")
			;				    (config-file "/etc/wpa_supplicant/wpa_supplicant.conf")))

			      )	;;end of modify-services
			     ))	;;end of services

		  ;; Allow resolution of '.local' host names with mDNS.
		  (name-service-switch %mdns-host-lookup-nss)

		  ;;blacklist ugly sound speaker, blacklist ideapad_laptop for prevent soft blocking wlan
		  (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp,bluetooth"))

		  ) ;;end of operating-system

             reply	other threads:[~2020-03-23 17:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-23 17:15 znavko [this message]
2020-03-23 18:08 ` How to timeout herd's network services start for not to stop boot process ? Jelle Licht
2020-03-23 20:03 ` znavko

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=29a98f87a01e64a00e0fb9833aaf6dc7@disroot.org \
    --to=znavko@disroot.org \
    --cc=help-guix@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).