Network only connecting after gnome-session login

Hi everyone,

I noticed that Garuda does not seem to enable the network devices on boot, but only does so after the Gnome-session has been started and I am on the desktop. This results in me having to wait for 10-15 seconds until the network is connected.

I googled this for Arch where the suggestion was to enable dhcpcd on boot - however I found that Garuda does not have this module in systemctl at all. Guess the network manager works differently or something?

How do I enable the start of the Ethernet connection during the boot sequence in Garuda?

Thank you.
dapari

Why do you need to wait 10-15 Seconds until an ethernet connection is established? That should be near instant.

And what means "wait"? Can't you do anything?

For me, usually, it takes longer to start a browser than it takes to have a connection established, especially for ethernet but also mostly for wifi nowadays.

So I suspect there is some issue with your network.

On the other hand, you can get rid of network manager and install something else. But I'd discuss that as next step, if there really is nothing wrong with your network.

4 Likes

Please follow the template and post your garuda-inxi as text.

4 Likes

Isn’t dhcpd an actual DHCP server? In regular consumer networks usually the router has this role already, therefore adding another DHCP server would likely cause issues.

3 Likes

The network devices are enabled before this, during the boot process. This sounds like maybe an authentication issue. Does your network have a captive portal?

These should not both be in use, rather one or the other. Either is fine, although NetworkManager is more commonly implemented in my experience. Solutions you see involving dhcpcd can likely be implemented with NetworkManager instead (obviously with different commands or services).

Please post the output of garuda-inxi as requested in the forum template.

4 Likes

Sorry for not sharing the inxi earlier.

@Garfonso No, the session is working fine and the system is usable. There's just no internet the first 10-15 seconds after the GNOME session started.

@Rest: No I have not installed another competing network manager. As I said: I tried to google the issue and learned the proposed solution from Arch community does not apply here. That's when I started bothering you with this :wink:

System:
  Kernel: 6.1.7-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=96d85ceb-9f0c-4bbf-a5b5-78faf25e7cde rw rootflags=subvol=@
    quiet
    cryptdevice=UUID=037c865d-59ed-4f6b-9fd9-2480ed588a95:luks-037c865d-59ed-4f6b-9fd9-2480ed588a95
    root=/dev/mapper/luks-037c865d-59ed-4f6b-9fd9-2480ed588a95 quiet splash
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 ibt=off
  Desktop: GNOME v: 43.2 tk: GTK v: 3.24.36 wm: gnome-shell dm: GDM v: 43.0
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ROG STRIX X670E-A GAMING WIFI v: Rev 1.xx
    serial: <superuser required> UEFI: American Megatrends v: 0805
    date: 11/04/2022
CPU:
  Info: model: AMD Ryzen 5 7600X bits: 64 type: MT MCP arch: Zen 4 gen: 5
    level: v4 note: check built: 2022 process: TSMC n5 (5nm) family: 0x19 (25)
    model-id: 0x61 (97) stepping: 2 microcode: 0xA601203
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 6 MiB desc: 6x1024 KiB
    L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 3090 high: 4416 min/max: 3000/5453 boost: disabled
    scaling: driver: acpi-cpufreq governor: ondemand cores: 1: 3000 2: 3000
    3: 2876 4: 3000 5: 3000 6: 2915 7: 2880 8: 4416 9: 3000 10: 3000 11: 3000
    12: 3000 bogomips: 112796
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6950 XT] vendor: Sapphire driver: amdgpu
    v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm) built: 2020-22
    pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-3
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 03:00.0 chip-ID: 1002:73a5
    class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.6 with: Xwayland v: 22.1.7
    compositor: gnome-shell driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: 0
  Monitor-1: DP-3 model: Acer XV282K KV serial: <filter> built: 2022
    res: 3840x2160 dpi: 157 gamma: 1.2 size: 621x341mm (24.45x13.43")
    diag: 708mm (27.9") ratio: 16:9 modes: max: 3840x2160 min: 720x400
  API: OpenGL v: 4.6 Mesa 22.3.3 renderer: AMD Radeon RX 6950 XT (navi21
    LLVM 15.0.7 DRM 3.49 6.1.7-zen1-1-zen) direct render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    bus-ID: 3-6:2 gen: 4 chip-ID: 0b05:1a52 speed: 16 GT/s class-ID: 0300
    lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab28 class-ID: 0403
  Device-2: ASUSTek USB Audio type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound API: ALSA v: k6.1.7-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.64 running: yes
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    vendor: Foxconn driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
    lanes: 1 bus-ID: 0b:00.0 chip-ID: 14c3:0616 class-ID: 0280
  Device-2: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 0c:00.0
    chip-ID: 8086:15f3 class-ID: 0200
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.38 TiB used: 245.81 GiB (10.1%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WD BLACK SN850X 1000GB size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 620281WD temp: 28.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:3 vendor: Western Digital
    model: WD BLACK SN850X 1000GB size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 620281WD temp: 26.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 840 EVO 120GB
    size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: DB6Q scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT500MX200SSD1
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: MU02 scheme: GPT
Partition:
  ID-1: / raw-size: 931.21 GiB size: 931.21 GiB (100.00%)
    used: 245.78 GiB (26.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-037c865d-59ed-4f6b-9fd9-2480ed588a95
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 29.8 MiB (10.0%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 931.21 GiB size: 931.21 GiB (100.00%)
    used: 245.78 GiB (26.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-037c865d-59ed-4f6b-9fd9-2480ed588a95
  ID-4: /var/log raw-size: 931.21 GiB size: 931.21 GiB (100.00%)
    used: 245.78 GiB (26.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-037c865d-59ed-4f6b-9fd9-2480ed588a95
  ID-5: /var/tmp raw-size: 931.21 GiB size: 931.21 GiB (100.00%)
    used: 245.78 GiB (26.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-037c865d-59ed-4f6b-9fd9-2480ed588a95
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.09 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 42.9 C mobo: N/A gpu: amdgpu temp: 46.0 C
    mem: 38.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
  Processes: 377 Uptime: 2m wakeups: 0 Memory: 31.09 GiB used: 2.52 GiB (8.1%)
  Init: systemd v: 252 default: graphical tool: systemctl Compilers:
  gcc: 12.2.1 Packages: pm: pacman pkgs: 1408 libs: 451 tools: pamac,paru
  Shell: fish v: 3.6.0 default: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.24
Garuda (2.6.14-1):
  System install date:     2023-01-07
  Last full system update: 2023-01-25
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            

Are you connecting to the network with the ethernet interface? Or WiFi? Does the network require authentication?

Are you using a VPN?

4 Likes

Yes, it's a regular ethernet interface. Wifi is disabled. No, the network does not require authentication or authorization - it's a normal router running a DHCP server for the whole home network.

No, I am not using a VPN.

What is the output of:

journalctl -r -b -u NetworkManager
systemd-analyze
systemd-analyze blame

If you hit a post limit, use the PrivateBin link in the upper right-hand corner to dump some lengthy text output.

1 Like

If you are dual booting with Windows, disable your NIC's power saving option in the advanced properties of the Windows device manager.

You may also want to try installing the linux-firmware-git package. Even in Windows the bugs have yet to be worked out for this Intel network adapter.

3 Likes

I have a drive for Windows, but I have only used it to confirm that my hardware is fully functional (as I experienced other issues with the ALSA sound driver as published here). I am not actually using dual boot / grub for that at all (but if necessary directly via Bios).

Thanks all for the feedback so far. Enclosed the log outputs.

journalctl -r -b -u NetworkManager

Jan 31 08:20:14 myhostname NetworkManager[662]: <info>  [1675149614.3641] dhcp6 (eno1): state changed new lease, address=fd59:73bc:fba1::923
Jan 31 08:20:14 myhostname NetworkManager[662]: <info>  [1675149614.3614] dhcp6 (eno1): activation: beginning transaction (timeout in 45 seconds)
Jan 31 08:20:12 myhostname NetworkManager[662]: <info>  [1675149612.9041] manager: NetworkManager state is now CONNECTED_GLOBAL
Jan 31 08:20:12 myhostname NetworkManager[662]: <info>  [1675149612.7918] device (eno1): Activation: successful, device activated.
Jan 31 08:20:12 myhostname NetworkManager[662]: <info>  [1675149612.7916] manager: NetworkManager state is now CONNECTED_SITE
Jan 31 08:20:12 myhostname NetworkManager[662]: <info>  [1675149612.7914] device (eno1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Jan 31 08:20:12 myhostname NetworkManager[662]: <info>  [1675149612.7913] device (eno1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Jan 31 08:20:12 myhostname NetworkManager[662]: <info>  [1675149612.7482] device (eno1): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Jan 31 08:20:12 myhostname NetworkManager[662]: <info>  [1675149612.7446] policy: set 'Kabelgebundene Verbindung 1' (eno1) as default for IPv4 routing and DNS
Jan 31 08:20:12 myhostname NetworkManager[662]: <info>  [1675149612.7443] dhcp4 (eno1): state changed new lease, address=192.168.1.148
Jan 31 08:20:07 myhostname NetworkManager[662]: <info>  [1675149607.4344] device (eno1): carrier: link connected
Jan 31 08:20:01 myhostname NetworkManager[662]: <info>  [1675149601.4097] dhcp4 (eno1): activation: beginning transaction (timeout in 45 seconds)
Jan 31 08:20:01 myhostname NetworkManager[662]: <info>  [1675149601.4093] device (eno1): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Jan 31 08:20:01 myhostname NetworkManager[662]: <info>  [1675149601.4089] device (eno1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jan 31 08:20:01 myhostname NetworkManager[662]: <info>  [1675149601.4088] manager: NetworkManager state is now CONNECTING
Jan 31 08:20:01 myhostname NetworkManager[662]: <info>  [1675149601.4087] device (eno1): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jan 31 08:20:01 myhostname NetworkManager[662]: <info>  [1675149601.4087] device (eno1): Activation: starting connection 'Kabelgebundene Verbindung 1' (46cbf47f-c14c-31a1-9382-03b962bdd79a)
Jan 31 08:20:01 myhostname NetworkManager[662]: <info>  [1675149601.4084] policy: auto-activating connection 'Kabelgebundene Verbindung 1' (46cbf47f-c14c-31a1-9382-03b962bdd79a)
Jan 31 08:20:01 myhostname NetworkManager[662]: <info>  [1675149601.4079] device (eno1): state change: unavailable -> disconnected (reason 'carrier-changed', sys-iface-state: 'managed')
Jan 31 08:20:01 myhostname NetworkManager[662]: <info>  [1675149601.4077] device (eno1): carrier: link connected
Jan 31 08:19:58 myhostname NetworkManager[662]: <info>  [1675149598.5984] manager: startup complete
Jan 31 08:19:54 myhostname NetworkManager[662]: <info>  [1675149594.7304] agent-manager: agent[67b075c4f395eda8,:1.23/org.gnome.Shell.NetworkAgent/1000]: agent registered
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5966] modem-manager: ModemManager available
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5959] ovsdb: disconnected from ovsdb
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5211] device (eno1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5211] settings: (eno1): created default wired connection 'Kabelgebundene Verbindung 1'
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5204] manager: (eno1): new Ethernet device (/org/freedesktop/NetworkManager/Devices/2)
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5197] manager: (lo): new Generic device (/org/freedesktop/NetworkManager/Devices/1)
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5196] device (lo): carrier: link connected
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5196] dhcp: init: Using DHCP client 'internal'
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5192] settings: Loaded settings plugin: keyfile (internal)
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5184] manager: Networking is enabled by state file
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5183] manager: rfkill: WWAN enabled by radio killswitch; enabled by state file
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5180] manager: rfkill: Wi-Fi enabled by radio killswitch; disabled by state file
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5175] Loaded device plugin: NMWwanFactory (/usr/lib/NetworkManager/1.40.10-1/libnm-device-plugin-wwan.so)
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5167] Loaded device plugin: NMWifiFactory (/usr/lib/NetworkManager/1.40.10-1/libnm-device-plugin-wifi.so)
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5156] Loaded device plugin: NMTeamFactory (/usr/lib/NetworkManager/1.40.10-1/libnm-device-plugin-team.so)
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5068] Loaded device plugin: NMOvsFactory (/usr/lib/NetworkManager/1.40.10-1/libnm-device-plugin-ovs.so)
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5063] Loaded device plugin: NMBluezManager (/usr/lib/NetworkManager/1.40.10-1/libnm-device-plugin-bluetooth.so)
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5047] Loaded device plugin: NMAtmManager (/usr/lib/NetworkManager/1.40.10-1/libnm-device-plugin-adsl.so)
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5031] manager[0x55990ceb1090]: rfkill: WWAN hardware radio set enabled
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5031] manager[0x55990ceb1090]: rfkill: Wi-Fi hardware radio set disabled
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5029] dns-mgr: init: dns=default,systemd-resolved rc-manager=symlink
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5027] hostname: static hostname changed from (none) to "myhostname"
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.5026] hostname: hostname: using hostnamed
Jan 31 08:19:52 myhostname systemd[1]: Started Network Manager.
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.4603] manager[0x55990ceb1090]: monitoring kernel firmware directory '/lib/firmware'.
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.4591] bus-manager: acquired D-Bus service "org.freedesktop.NetworkManager"
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.4582] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 20-connectivity.conf)
Jan 31 08:19:52 myhostname NetworkManager[662]: <info>  [1675149592.4582] NetworkManager (version 1.40.10-1) is starting... (boot:5dd0ae9a-f1f2-4a64-9223-c535d1b5c092)
Jan 31 08:19:52 myhostname systemd[1]: Starting Network Manager...

systemd-analyze

Startup finished in 27.149s (firmware) + 35.207s (loader) + 13.912s (kernel) + 23.020s (userspace) = 1min 39.289s 
graphical.target reached after 23.020s in userspace.

systemd-analyze blame

14.292s nmb.service
 6.153s NetworkManager-wait-online.service
  651ms dev-mapper-luks\x2d037c865d\x2d59ed\x2d4f6b\x2d9fd9\x2d2480ed588a95.device
  576ms systemd-tmpfiles-setup.service
  407ms linux-modules-cleanup.service
  313ms systemd-udev-trigger.service
  283ms systemd-remount-fs.service
  233ms systemd-modules-load.service
  185ms systemd-binfmt.service
  180ms polkit.service
  180ms power-profiles-daemon.service
  176ms systemd-tmpfiles-setup-dev.service
  163ms plymouth-quit.service
  161ms udisks2.service
  160ms avahi-daemon.service
  159ms accounts-daemon.service
  155ms [email protected]
  154ms systemd-logind.service
  145ms lvm2-monitor.service
  145ms [email protected]
  141ms plymouth-quit-wait.service
  135ms systemd-vconsole-setup.service
   99ms plymouth-start.service
   98ms ModemManager.service
   93ms systemd-random-seed.service
   93ms systemd-journal-flush.service
   91ms garuda-pacman-snapshot-reject.service
   86ms plymouth-read-write.service
   78ms [email protected]
   78ms logrotate.service
   60ms [email protected]
   60ms dev-zram0.swap
   57ms systemd-fsck@dev-disk-by\x2duuid-AA03\x2dD56F.service
   53ms systemd-oomd.service
   53ms [email protected]
   52ms systemd-timesyncd.service
   51ms systemd-update-utmp.service
   47ms systemd-user-sessions.service
   46ms [email protected]
   46ms garuda-pacman-lock.service
   46ms kmod-static-nodes.service
   45ms alsa-restore.service
   45ms dbus.service
   44ms systemd-journald.service
   36ms systemd-sysctl.service
   31ms systemd-cryptsetup@luks\x2d037c865d\x2d59ed\x2d4f6b\x2d9fd9\x2d2480ed588a95.service
   30ms smb.service
   28ms [email protected]
   26ms systemd-udevd.service
   26ms NetworkManager.service
   22ms boot-efi.mount
   21ms upower.service
   11ms sys-fs-fuse-connections.mount
   10ms sys-kernel-config.mount
    9ms cups.service
    6ms colord.service
    5ms gdm.service
    5ms dev-hugepages.mount
    4ms dev-mqueue.mount
    4ms sys-kernel-debug.mount
    4ms sys-kernel-tracing.mount
    3ms home.mount
    3ms root.mount
    2ms srv.mount
    2ms tmp.mount
    2ms var-cache.mount
    2ms wpa_supplicant.service
    2ms var-log.mount
    1ms var-tmp.mount
    1ms rtkit-daemon.service
    1ms proc-sys-fs-binfmt_misc.mount

This is not exactly a speedy boot process you have there. That doesn’t necessarily indicate an issue, but if you have a slow boot process then having to wait a few seconds for services to be up is perfectly normal.

I don’t see any issues here. The network devices look like they are coming right up.

Let’s back up for a moment:

What specifically are you doing that has led you to this conclusion? Are you just opening a browser and it takes a while to load, or something else?

If you are opening a browser and you have to wait ten or fifteen seconds until it loads, that could be related to the slow boot time and a bottleneck when you launch the desktop environment (as opposed to an issue with establishing a network connection).

Test by booting, then instead of logging in on the GDM screen, switch to a TTY (Ctrl+Alt+F3) and test if you are WAN connected by sending a ping to archlinux.org (or whatever connectivity test you like).

4 Likes

I noticed this both through the browser (it is not loading the page but directly hits the “Unable to connect” screen) as well as Nextcloud Sync App which is not capable of synchronizing during that time frame. When that time frame is over, everything works as it should.

The boot-up time is not really a concern for me. However, since you deem it slow, do you have any resources I can read up on or suggestions on how to improve that? The hardware is brand new and should be up and atom :wink:

Since I am using full disk encryption, I activated auto-login. So not sure how to boot directly into a TTY. But I will try that next.