[SOLVED] Wi-Fi not working until I start it manually with dhclient >network-interface<

xfce
acer
#1

Hey I'm pretty new to the forum and not an native english speaker - I hope you are patient with me.

I'm new to Linux as well and I've installed Manjaro for a couple of weeks now. Since yesterday I can't connect to any wifi. Ethernet is not working either.
I have uninstalled the NetworkManager and reinstalled it. Nothing happened. Then I tried various kernels with no effect.
Then I tried a different VPN Server. Now the icon in the tool bar is showing a Wifi connection. But I can not connect to the Internet for now. I found an threat about an other Wifi problem - there was written to try manually activate the connection by dhclient >network-interface<. Now Wifi as well as Ethernet is working fine.

Now this is my question. How can I get the notebook to connect to the Wifi and Ethernet automatically?

Thank you!!

Here are some informations:

~ >>> inxi -Fxxxz                                                                                                                                                                                                      
System:    Host: blackarch-pc Kernel: 4.19.36-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.3.0 Desktop: Xfce 4.13.3git-UNKNOWN 
           tk: Gtk 3.24.7 info: xfce4-panel wm: xfwm4 dm: LightDM 1.28.0 Distro: Manjaro Linux 
Machine:   Type: Laptop System: Acer product: Aspire VN7-571G v: V1.14 serial: <filter> 
           Mobo: Acer model: Aspire VN7-571G v: V1.14 serial: <filter> UEFI: Insyde v: 1.14 date: 01/08/2015 
Battery:   ID-1: BAT0 charge: 17.1 Wh condition: 46.2/52.5 Wh (88%) volts: 11.4/11.4 model: LGC AC14A8L type: Li-ion 
           serial: <filter> status: Charging 
CPU:       Topology: Dual Core model: Intel Core i5-4210U bits: 64 type: MT MCP arch: Haswell rev: 1 L2 cache: 3072 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19161 
           Speed: 798 MHz min/max: 800/2700 MHz Core speeds (MHz): 1: 798 2: 798 3: 798 4: 798 
Graphics:  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Acer Incorporated ALI driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:0a16 
           Device-2: NVIDIA GM108M [GeForce 840M] driver: N/A bus ID: 03:00.0 chip ID: 10de:1341 
           Display: x11 server: X.Org 1.20.4 driver: intel resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 19.0.3 compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel Haswell-ULT HD Audio vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel bus ID: 00:03.0 
           chip ID: 8086:0a0c 
           Device-2: Intel 8 Series HD Audio vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
           chip ID: 8086:9c20 
           Sound Server: ALSA v: k4.19.36-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8168 v: 8.045.08-NAPI port: 4000 
           bus ID: 01:00.0 chip ID: 10ec:8168 
           IF: enp1s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
           Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter vendor: Foxconn driver: ath10k_pci v: kernel 
           port: 4000 bus ID: 02:00.0 chip ID: 168c:003e 
           IF: wlp2s0 state: down mac: <filter> 
Drives:    Local Storage: total: 342.81 GiB used: 71.05 GiB (20.7%) 
           ID-1: /dev/sda vendor: Kingston model: SA400S37240G size: 223.57 GiB speed: 6.0 Gb/s serial: <filter> rev: 61K1 
           scheme: GPT 
           ID-2: /dev/sdb vendor: LITE-ON IT model: L8T-128L9G size: 119.24 GiB speed: 6.0 Gb/s serial: <filter> rev: 202 
           scheme: GPT 
Partition: ID-1: / size: 210.11 GiB used: 71.04 GiB (33.8%) fs: ext4 dev: /dev/dm-0 
           ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-1 
Sensors:   System Temperatures: cpu: 45.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 225 Uptime: 1h 00m Memory: 7.71 GiB used: 2.43 GiB (31.5%) Init: systemd v: 242 Compilers: gcc: 8.3.0 
           Shell: zsh v: 5.7.1 running in: guake inxi: 3.0.33
~ >>> lsmod                                                                                                                                                                                                            
Module                  Size  Used by
nls_utf8               16384  0
udf                   106496  0
crc_itu_t              16384  1 udf
tun                    45056  0
ccm                    20480  0
rfcomm                 86016  4
fuse                  118784  3
arc4                   16384  2
bnep                   24576  2
bbswitch               16384  0
nls_iso8859_1          16384  1
nls_cp437              20480  1
vfat                   24576  1
fat                    81920  1 vfat
squashfs               69632  6
loop                   40960  12
ath10k_pci             61440  0
ath10k_core           532480  1 ath10k_pci
snd_hda_codec_hdmi     57344  1
btusb                  53248  0
btrtl                  16384  1 btusb
uvcvideo              118784  0
btbcm                  16384  1 btusb
btintel                24576  1 btusb
ath                    36864  1 ath10k_core
videobuf2_vmalloc      16384  1 uvcvideo
bluetooth             655360  31 btrtl,btintel,btbcm,bnep,btusb,rfcomm
rtsx_usb_ms            20480  0
mac80211              933888  1 ath10k_core
videobuf2_memops       16384  1 videobuf2_vmalloc
memstick               16384  1 rtsx_usb_ms
i915                 2097152  9
videobuf2_v4l2         28672  1 uvcvideo
videobuf2_common       53248  2 videobuf2_v4l2,uvcvideo
videodev              217088  3 videobuf2_v4l2,uvcvideo,videobuf2_common
intel_rapl             24576  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
ecdh_generic           24576  1 bluetooth
media                  45056  2 videodev,uvcvideo
kvm_intel             245760  0
kvmgt                  28672  0
vfio_mdev              16384  0
mdev                   20480  2 kvmgt,vfio_mdev
vfio_iommu_type1       28672  0
vfio                   32768  3 kvmgt,vfio_mdev,vfio_iommu_type1
i2c_algo_bit           16384  1 i915
drm_kms_helper        208896  1 i915
snd_hda_codec_realtek   122880  1
kvm                   737280  2 kvmgt,kvm_intel
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
cfg80211              778240  3 ath,mac80211,ath10k_core
drm                   495616  7 drm_kms_helper,i915
snd_hda_intel          45056  4
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
ofpart                 16384  0
joydev                 24576  0
cmdlinepart            16384  0
mousedev               24576  0
intel_spi_platform     16384  0
snd_hda_core           94208  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
intel_spi              20480  1 intel_spi_platform
spi_nor                36864  1 intel_spi
snd_hwdep              16384  1 snd_hda_codec
mtd                    69632  5 cmdlinepart,intel_spi,ofpart
snd_pcm               131072  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
iTCO_wdt               16384  0
hid_multitouch         28672  0
iTCO_vendor_support    16384  1 iTCO_wdt
intel_gtt              24576  1 i915
irqbypass              16384  1 kvm
agpgart                49152  2 intel_gtt,drm
acer_wmi               24576  0
wmi_bmof               16384  0
sparse_keymap          16384  1 acer_wmi
intel_cstate           16384  0
mei_me                 45056  0
intel_uncore          135168  0
snd_timer              36864  1 snd_pcm
mei                   114688  1 mei_me
snd                    98304  16 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
lpc_ich                28672  0
r8168                 540672  0
intel_rapl_perf        16384  0
input_leds             16384  0
syscopyarea            16384  1 drm_kms_helper
rfkill                 28672  7 acer_wmi,bluetooth,cfg80211
i2c_i801               32768  0
pcspkr                 16384  0
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
soundcore              16384  1 snd
i2c_hid                28672  0
battery                24576  0
ac                     16384  0
evdev                  28672  20
mac_hid                16384  0
pcc_cpufreq            16384  0
wmi                    28672  2 acer_wmi,wmi_bmof
nf_log_ipv6            16384  5
ip6t_REJECT            16384  1
nf_reject_ipv6         16384  1 ip6t_REJECT
xt_hl                  16384  22
ip6t_rt                16384  3
nf_log_ipv4            16384  5
nf_log_common          16384  2 nf_log_ipv4,nf_log_ipv6
ipt_REJECT             16384  1
nf_reject_ipv4         16384  1 ipt_REJECT
xt_LOG                 16384  10
xt_limit               16384  13
xt_addrtype            16384  4
xt_tcpudp              16384  18
xt_conntrack           16384  16
ip6table_filter        16384  1
ip6_tables             32768  53 ip6table_filter
nf_conntrack_netbios_ns    16384  0
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_nat_ftp             16384  0
nf_nat                 36864  1 nf_nat_ftp
nf_conntrack_ftp       20480  1 nf_nat_ftp
nf_conntrack          167936  6 xt_conntrack,nf_nat,nf_nat_ftp,nf_conntrack_netbios_ns,nf_conntrack_broadcast,nf_conntrack_ftp
nf_defrag_ipv6         20480  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
libcrc32c              16384  2 nf_conntrack,nf_nat
iptable_filter         16384  1
uinput                 20480  0
vboxpci                28672  0
vboxnetflt             32768  0
vboxnetadp             28672  0
vboxdrv               495616  3 vboxpci,vboxnetadp,vboxnetflt
crypto_user            16384  0
ip_tables              28672  9 iptable_filter
x_tables               45056  13 ip6table_filter,xt_conntrack,iptable_filter,xt_LOG,xt_tcpudp,xt_addrtype,ip6t_rt,ip6_tables,ipt_REJECT,ip_tables,xt_limit,xt_hl,ip6t_REJECT
ext4                  737280  1
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  126976  1 ext4
fscrypto               32768  1 ext4
algif_skcipher         16384  0
af_alg                 28672  1 algif_skcipher
dm_crypt               40960  2
dm_mod                155648  5 dm_crypt
rtsx_usb_sdmmc         28672  0
mmc_core              176128  1 rtsx_usb_sdmmc
rtsx_usb               20480  2 rtsx_usb_sdmmc,rtsx_usb_ms
sr_mod                 28672  0
cdrom                  69632  1 sr_mod
sd_mod                 61440  4
hid_logitech_hidpp     40960  0
hid_logitech_dj        24576  0
hid_generic            16384  0
usbhid                 57344  0
hid                   139264  6 i2c_hid,usbhid,hid_multitouch,hid_generic,hid_logitech_dj,hid_logitech_hidpp
ahci                   40960  3
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
libahci                40960  1 ahci
serio_raw              16384  0
crc32c_intel           24576  3
atkbd                  32768  0
ghash_clmulni_intel    16384  0
libps2                 16384  1 atkbd
pcbc                   16384  0
libata                278528  2 libahci,ahci
aesni_intel           200704  5
scsi_mod              253952  3 sd_mod,libata,sr_mod
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
cryptd                 28672  5 crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
xhci_pci               16384  0
ehci_pci               16384  0
xhci_hcd              266240  1 xhci_pci
ehci_hcd               94208  1 ehci_pci
i8042                  32768  1 acer_wmi
serio                  28672  4 serio_raw,atkbd,i8042
~ >>> hwinfo --netcard --wlan --bluetooth | grep -Ei "model\:|drive\:|status\:|cmd\:|file\:|detected\:" |grep -v "Config Status"                                                                                       
  Model: "Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter"
  Device File: wlp2s0
  Link detected: no
    Driver Status: ath10k_pci is active
    Driver Activation Cmd: "modprobe ath10k_pci"
  Model: "Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
  Device File: enp1s0
  Link detected: yes
    Driver Status: r8169 is not active
    Driver Activation Cmd: "modprobe r8169"
    Driver Status: r8168 is active
    Driver Activation Cmd: "modprobe r8168"
  Model: "Foxconn / Hon Hai Bluetooth Device"
    Driver Status: btusb is active
    Driver Activation Cmd: "modprobe btusb"
#2

Wired LAN do this:

The r8168 driver has been experiencing major problems lately.

The r8169 kernel module is now the preferred driver.

Follow the instructions below to get your LAN working properly.

Uninstall the linuxXXX-r8168 driver:

Open Manjaro Settings Manager -> Hardware configuration -> Network controller

Right click on the RTL8111/8168/8411 ethernet device and select “Remove”.

After the uninstall process has finshed, restart.

After you restart the computer, the 8169 kernel module should now be automatically loaded.

If the r8169 kernel module is not loaded automatically when you reboot (after uninstalling r8168) then do this:

Open any file located in /etc/modprobe.d and ensure there is no reference to r8169.

Any file that contains the line:

blacklist r8169

Change to:

blacklist r8168

Save the edited conf file with root permissions, and then reboot

Alternately, you may delete the conf file entirely, (if it only contains the entry "blacklist r8169").

Example:

If /etc/modprobe.d contains a file named r8169_blacklist.conf then you can delete it with this command:

sudo rm /etc/modprobe.d/r8169_blacklist.conf

Be very careful, you do not make any errors when using the "rm" command with sudo privileges.

Reboot after making any changes to files in /etc/modprobe.d.

#3

Thank you for the quick response.
I uninstalled the r8168 from the Manjaro Settings. When I reboot there is no other driver loaded.

In the Directory modprobe.d there is one file with the mentioned line.

blacklist-r8169-dkms.conf

with the entries:

blacklist r8169
blacklist r8168

so I deleted the first line and saved it. Then reboot.
But I can not connect with Ethernet.

But I can connect via Wifi - I just installed another driver for an external network adapter.

#4

Please post:

lsmod | grep r816

grep -r "blacklist\|install\|options"  /etc/modprobe.d/ /etc/modules-load.d/ /usr/lib/modprobe.d/ 
#5
~ >>> lsmod | grep r816                                                                                                                                                                                                
r8169                  90112  0
libphy                 77824  3 r8169,realtek
~ >>> grep -r "blacklist\|install\|options"  /etc/modprobe.d/ /etc/modules-load.d/ /usr/lib/modprobe.d/                                                                                                                
/etc/modprobe.d/mhwd-bbswitch.conf:options bbswitch load_state=0 unload_state=0
/etc/modprobe.d/mhwd-nvidia.conf:blacklist nouveau
/etc/modprobe.d/mhwd-nvidia.conf:blacklist nvidia
/etc/modprobe.d/mhwd-nvidia.conf:blacklist nvidia-modeset
/etc/modprobe.d/mhwd-nvidia.conf:blacklist nvidia-uvm
/etc/modprobe.d/mhwd-nvidia.conf:blacklist ttm
/etc/modprobe.d/mhwd-nvidia.conf:blacklist drm_kms_helper
/etc/modprobe.d/mhwd-nvidia.conf:blacklist drm
/etc/modprobe.d/mhwd-nvidia.conf.save:blacklist nouveau
/etc/modprobe.d/mhwd-nvidia.conf.save:blacklist nvidia
/etc/modprobe.d/mhwd-nvidia.conf.save:blacklist nvidia-modeset
/etc/modprobe.d/mhwd-nvidia.conf.save:blacklist nvidia-uvm
/etc/modprobe.d/mhwd-nvidia.conf.save:blacklist ttm
/etc/modprobe.d/mhwd-nvidia.conf.save:blacklist drm_kms_helper
/etc/modprobe.d/mhwd-nvidia.conf.save:blacklist drm
/usr/lib/modprobe.d/systemd.conf:options bonding max_bonds=0
/usr/lib/modprobe.d/systemd.conf:options dummy numdummies=0
/usr/lib/modprobe.d/uvesafb.conf:# options uvesafb mode=<xres>x<yres>[-<bpp>][@<refresh>] scroll=<ywrap|ypan|redraw> ...
/usr/lib/modprobe.d/uvesafb.conf:options uvesafb mode_option=1024x768-32 scroll=ywrap
/usr/lib/modprobe.d/nvdimm-security.conf:install libnvdimm /usr/bin/ndctl load-keys ; /sbin/modprobe --ignore-install libnvdimm $CMDLINE_OPTS
/usr/lib/modprobe.d/bluetooth-usb.conf:options btusb reset=1
/usr/lib/modprobe.d/bumblebee.conf:blacklist nvidia
/usr/lib/modprobe.d/bumblebee.conf:blacklist nvidia-drm
/usr/lib/modprobe.d/bumblebee.conf:blacklist nvidia-modeset
/usr/lib/modprobe.d/bumblebee.conf:blacklist nvidia-uvm
/usr/lib/modprobe.d/bumblebee.conf:blacklist nouveau

Ok it looks like the driver is loaded and active -- but why is my Ethernet interface not working then?
Thank you for your help.

~ >>> hwinfo --netcard --wlan --bluetooth | grep -Ei "model\:|drive\:|status\:|cmd\:|file\:|detected\:" |grep -v "Config Status"                                                                                       
  Model: "Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter"
  Device File: wlp2s0
  Link detected: no
    Driver Status: ath10k_pci is active
    Driver Activation Cmd: "modprobe ath10k_pci"
  Model: "Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
  Device File: enp1s0
  Link detected: yes
    Driver Status: r8169 is active
    Driver Activation Cmd: "modprobe r8169"
  Model: "Foxconn / Hon Hai Bluetooth Device"
    Driver Status: btusb is active
    Driver Activation Cmd: "modprobe btusb"
  Model: "Realtek RTL8812AU 802.11a/b/g/n/ac WLAN Adapter"
  Device File: wlp0s20u2
  Link detected: yes
    Driver Status: 88XXau is active
    Driver Activation Cmd: "modprobe 88XXau"
#6

According to your outputs your adapter is active and working. Disable your wifi with the airplane key then test your wireless connection:

ping -c5 8.8.8.8  

ping -c5 google.com

Did you possibly try setting static IP addresses and set the same address for both adapters. They will conflict if the are both active at the same time.

You might also want to test some different kernels.

#7

Tank you for your answer.

My wireless connection or my wired connection?
When I disable my wifi I get no connection with both pings. (The first says it can not connect to the network and the second cant resolve the name)

I have already tried different kernels with no success.
But when I disable VPN the wired connection shows up as connected (the icon). But with your pings I got the same result.

I also have MAC spoofing on, I set the DNS manually and I have IPv6 ignoring by the NetworkManager. Could that be the problem?

#8

Ashes on my head. I just tried another Ethernet connection - directly from the Router. It works just fine. The problem has to be in the switch.

So thank you for your time. Cheers.