You are not logged in.

#1 2014-04-23 07:54:01

Songohan
Member
Registered: 2012-03-19
Posts: 11

Sometimes Network service is started before udev renaming interface

Hello,

I've configured my Nuc D34010WYKH2 with a bridge static ip address (used for virtualization with qemu-kvm). Sometimes, when i reboot the network service fails to start because the network interface is not yet renamed.

Here is the systemd log :
http://www.filedropper.com/journalctl2

My network script /etc/systemd/system/network.service :
http://pastebin.archlinux.fr/501234

/etc/conf.d/network :
http://pastebin.archlinux.fr/501235

I have another problem like no hdmi sound sad and it seems i have acpi problems (system log)

Last edited by Songohan (2014-04-23 19:15:02)

Offline

#2 2014-04-23 14:38:15

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Sometimes Network service is started before udev renaming interface

I don't see any error messages in your systemD log file.

Looking at your ACPI messages, I don't see any apparent causes (but that does not indicate it is not).


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-04-23 19:16:33

Songohan
Member
Registered: 2012-03-19
Posts: 11

Re: Sometimes Network service is started before udev renaming interface

Rexilion wrote:

I don't see any error messages in your systemD log file.

Looking at your ACPI messages, I don't see any apparent causes (but that does not indicate it is not).

Thank you for your reply.
My systemd log file was truncated by the pastebin website. I've reuploaded the file here : http://www.filedropper.com/journalctl2

Offline

#4 2014-04-24 05:29:28

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Sometimes Network service is started before udev renaming interface

Apr 22 23:13:52 nuc systemd[1]: Starting udev Coldplug all Devices...
...
Apr 22 23:13:52 nuc systemd[1]: Started udev Coldplug all Devices.
Apr 22 23:13:54 nuc brctl[252]: interface eno1 does not exist!
...
Apr 22 23:13:54 nuc systemd-udevd[151]: renamed network interface eth0 to eno1

That's odd. You would expect udev to settle before the rest continue's.

I have it, look at comment #6 here. You need to instantiate (systemD jargon for multiplex) an ifplugd service file from netctl.

A different alternative is to add the following to your section:

BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device

I took these from the ifplugd service files. These are responsible for waiting after the device appears after it's rename. You need to replace %i with eno1, I think.

Apr 22 23:13:54 nuc kernel: snd_hda_intel 0000:00:1b.0: enabling device (0000 -> 0002)
Apr 22 23:13:54 nuc kernel: snd_hda_intel 0000:00:1b.0: irq 63 for MSI/MSI-X
...
Apr 22 23:13:54 nuc kernel: input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input7
...
Apr 22 23:13:54 nuc kernel: input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
Apr 22 23:13:54 nuc kernel: input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8

Could you post the output of:

cat /proc/asound/*

Last edited by Rexilion (2014-04-24 05:30:39)


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#5 2014-04-24 16:35:19

Songohan
Member
Registered: 2012-03-19
Posts: 11

Re: Sometimes Network service is started before udev renaming interface

[root@nuc ~]# cat /proc/asound/*
cat: /proc/asound/HDMI: Is a directory
cat: /proc/asound/PCH: Is a directory
cat: /proc/asound/card0: Is a directory
cat: /proc/asound/card1: Is a directory
 0 [HDMI           ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xf7c34000 irq 64
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7c30000 irq 62
  2: [ 1- 0]: digital audio playback
  3: [ 1- 0]: digital audio capture
  4: [ 1- 0]: hardware dependent
  5: [ 1]   : control
  6: [ 0- 7]: digital audio playback
  7: [ 0- 3]: digital audio playback
  8: [ 0- 0]: hardware dependent
  9: [ 0]   : control
 33:        : timer
01-00: HDA Codec 0
00-00: HDA Codec 0
 0 snd_hda_intel
 1 snd_hda_intel
cat: /proc/asound/oss: Is a directory
00-03: HDMI 0 : HDMI 0 : playback 1
00-07: HDMI 1 : HDMI 1 : playback 1
01-00: ALC283 Analog : ALC283 Analog : playback 1 : capture 1
cat: /proc/asound/seq: Is a directory
G0: system timer : 3333.333us (10000000 ticks)
P0-3-0: PCM playback 0-3-0 : SLAVE
P0-7-0: PCM playback 0-7-0 : SLAVE
P1-0-0: PCM playback 1-0-0 : SLAVE
P1-0-1: PCM capture 1-0-1 : SLAVE
Advanced Linux Sound Architecture Driver Version k3.14.1-1-ARCH.

Offline

#6 2014-04-24 16:54:29

Songohan
Member
Registered: 2012-03-19
Posts: 11

Re: Sometimes Network service is started before udev renaming interface

Rexilion wrote:

A different alternative is to add the following to your section:

BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device

It seems work.
Thank you smile

Offline

#7 2014-04-24 20:03:47

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Sometimes Network service is started before udev renaming interface

Good!

Check with alsamixer if your card is muted?


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#8 2014-04-29 11:14:47

Songohan
Member
Registered: 2012-03-19
Posts: 11

Re: Sometimes Network service is started before udev renaming interface

I've verified several times with gnome-alsamixer and my sound card is not muted.
I've also configured my sound card with pavucontrol. I've followed this how-to :
http://www.linux.com/learn/tutorials/76 … with-grunt

I have no hdmi sound with xbmc and vlc sad .

Offline

Board footer

Powered by FluxBB