unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How to timeout herd's network services start for not to stop boot process ?
@ 2020-03-23 17:15 znavko
  2020-03-23 18:08 ` Jelle Licht
  2020-03-23 20:03 ` znavko
  0 siblings, 2 replies; 3+ messages in thread
From: znavko @ 2020-03-23 17:15 UTC (permalink / raw)
  To: help-guix

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to timeout herd's network services start for not to stop boot process ?
  2020-03-23 17:15 How to timeout herd's network services start for not to stop boot process ? znavko
@ 2020-03-23 18:08 ` Jelle Licht
  2020-03-23 20:03 ` znavko
  1 sibling, 0 replies; 3+ messages in thread
From: Jelle Licht @ 2020-03-23 18:08 UTC (permalink / raw)
  To: znavko, help-guix


Hey znavko,

znavko@disroot.org writes:

> 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

Perhaps totally unrelated and unhelpful, but are you using Guix System
with a hard drive? I ask because I had similar issues in the past that
magically went away (=were hidden) after moving to an SSD.

- Jelle

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to timeout herd's network services start for not to stop boot process ?
  2020-03-23 17:15 How to timeout herd's network services start for not to stop boot process ? znavko
  2020-03-23 18:08 ` Jelle Licht
@ 2020-03-23 20:03 ` znavko
  1 sibling, 0 replies; 3+ messages in thread
From: znavko @ 2020-03-23 20:03 UTC (permalink / raw)
  To: Jelle Licht, help-guix

Hello! I am using SSD.
When I'ive install preinstalled Ubuntu 18.04 on this computer with HDD Seagate as it was there from shop
Ubuntu was booting for 63 seconds!
Now Guix boots in 22 seconds. Also I have laptop with ssd and pentium cpu it boots also 22 seconds.
But the usb wifi adapter makes a delay in boot process. I need to replace networking service's start after slim shows.

March 23, 2020 6:08 PM, "Jelle Licht" <jlicht@fsfe.org> wrote:

> Hey znavko,
> 
> znavko@disroot.org writes:
> 
>> 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
> 
> Perhaps totally unrelated and unhelpful, but are you using Guix System
> with a hard drive? I ask because I had similar issues in the past that
> magically went away (=were hidden) after moving to an SSD.
> 
> - Jelle

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-23 20:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 17:15 How to timeout herd's network services start for not to stop boot process ? znavko
2020-03-23 18:08 ` Jelle Licht
2020-03-23 20:03 ` znavko

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).