Wifi adapter needs to be unplugged everytime i boot

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
arieltal

Wifi adapter needs to be unplugged everytime i boot

Post by arieltal »

hello, i have a TP-Link W821n V5 wireless adapter connected to my desktop.
i have installed the rtlwifi driver from here https://sites.google.com/site/easylinux ... /reserve-7
which solved the problem of not connecting at all,
but the thing is that everytime i boot the computer, the connection fails, where dmesg says authentication timed out.
i unplug the device and put it back in, and it works.
i suspect there must be a better way.. but too unfamiliar with troubleshooting this kind of issue..
here is some info:

iwconfig:

Code: Select all

enp0s31f6  no wireless extensions.

lo        no wireless extensions.

wlx18d6c71615d3  IEEE 802.11  ESSID:"Talgawker"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 14:AE:DB:A3:21:BD   
          Bit Rate=1 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Power Management:off
          Link Quality=18/70  Signal level=-92 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:8   Missed beacon:0
inxi -Fxz:

Code: Select all

System:    Host: phoenixan Kernel: 4.15.0-29-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) Distro: Linux Mint 19 Tara
Machine:   Device: desktop Mobo: MSI model: B250M MORTAR (MS-7A69) v: 1.0 serial: N/A
           UEFI: American Megatrends v: 2.40 date: 11/17/2017
CPU:       Quad core Intel Core i7-7700 (-MT-MCP-) arch: Skylake rev.9 cache: 8192 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 28800
           clock speeds: max: 4200 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz 4: 800 MHz 5: 800 MHz 6: 800 MHz
           7: 800 MHz 8: 799 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 ) drivers: ati,amdgpu (unloaded: modesetting,fbdev,vesa,radeon)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: AMD Radeon RX 480 Graphics (POLARIS10 / DRM 3.23.0 / 4.15.0-29-generic, LLVM 6.0.0)
           version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card-1 Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 580]
           driver: snd_hda_intel bus-ID: 01:00.1
           Card-2 Intel 200 Series PCH HD Audio driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.15.0-29-generic
Network:   Card: Intel Ethernet Connection (2) I219-V driver: e1000e v: 3.2.6-k bus-ID: 00:1f.6
           IF: enp0s31f6 state: down mac: <filter>
Drives:    HDD Total Size: 1250.3GB (3.6% used)
           ID-1: /dev/nvme0n1 model: Samsung_SSD_960_EVO_250GB size: 250.1GB
           ID-2: /dev/sda model: ST1000DM010 size: 1000.2GB
Partition: ID-1: / size: 212G used: 27G (14%) fs: ext4 dev: /dev/dm-1
           ID-2: /boot size: 705M used: 151M (24%) fs: ext4 dev: /dev/nvme0n1p2
           ID-3: swap-1 size: 17.14GB used: 0.00GB (0%) fs: swap dev: /dev/dm-2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 45.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 243 Uptime: 2:55 Memory: 989.0/16003.0MB Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 
User avatar
CaptainKirksChair
Level 4
Level 4
Posts: 456
Joined: Sat Feb 18, 2017 9:29 pm

Re: Wifi adapter needs to be unplugged everytime i boot

Post by CaptainKirksChair »

You'll need to run these commands when the card is active. I don't see your WiFi card in either of these output files. We need both to see what changes are being made when the card fails.
arieltal

Re: Wifi adapter needs to be unplugged everytime i boot

Post by arieltal »

hello, in the first post i ran these commands while the wifi was connected,
i did the same when it was not, the results of inxi -Fzx were pretty much identical, the only differences were the cpu clock speed information,
the sensors temperature info, and the processes count..

when ran iwconfig it was this:

Code: Select all

wlx18d6c71615d3  IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Power Management:off
          
i thought maybe it would be useful to post the dmesg results:
i pasted here what i think is relevant, the first is after i first boot the computer,
the second when i unplug and re-plug.

Code: Select all

[  +0.063145] usb 1-7: Vendor: Realtek
[  +0.000002] usb 1-7: Product: 802.11n NI
[  +0.000001] usb 1-7: Serial: 
[  +0.000002] usb 1-7: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
[  +0.000001] usb 1-7: 00: 29 81 00 7c 01 40 03 00
[  +0.000001] usb 1-7: 08: 40 74 04 50 14 00 00 00
[  +0.000001] usb 1-7: 10: 29 29 28 28 28 28 2c 2c
[  +0.000001] usb 1-7: 18: 2b 2b 2b f2 ef ef ff ff
[  +0.000001] usb 1-7: 20: ff ff ff ff ff ff ff ff
[  +0.000002] usb 1-7: 28: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 30: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 38: ff ff 2a 2a 29 28 28 28
[  +0.000001] usb 1-7: 40: 2d 2d 2c 2b 2b f2 ef ef
[  +0.000001] usb 1-7: 48: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 50: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 58: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 60: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 68: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 70: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 78: ff ff ff ff ff ff ff ff
[  +0.000002] usb 1-7: 80: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 88: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 90: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 98: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: a0: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: a8: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: b0: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: b8: a1 1f 20 00 00 00 ff ff
[  +0.000001] usb 1-7: c0: ff 01 00 10 00 00 00 ff
[  +0.000001] usb 1-7: c8: 00 00 ff ff ff ff ff ff
[  +0.000002] usb 1-7: d0: 57 23 07 01 e7 47 02 18
[  +0.000001] usb 1-7: d8: d6 c7 16 15 d3 0a 03 52
[  +0.000001] usb 1-7: e0: 65 61 6c 74 65 6b 20 0e
[  +0.000001] usb 1-7: e8: 03 38 30 32 2e 31 31 6e
[  +0.000001] usb 1-7: f0: 20 4e 49 43 20 00 00 ff
[  +0.000001] usb 1-7: f8: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 100: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 108: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 110: ff ff ff ff ff ff ff 0d
[  +0.000001] usb 1-7: 118: 03 00 05 00 30 00 00 00
[  +0.000002] usb 1-7: 120: 00 93 ff ff ff ff ff ff
[  +0.000001] usb 1-7: 128: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 130: f6 a8 98 2d 03 92 98 00
[  +0.000001] usb 1-7: 138: fc 8c 00 11 9b 44 02 0a
[  +0.000001] usb 1-7: 140: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 148: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 150: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 158: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 160: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 168: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 170: ff ff ff ff ff ff ff ff
[  +0.000002] usb 1-7: 178: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 180: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 188: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 190: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 198: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1a0: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1a8: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1b0: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1b8: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1c0: ff ff ff ff ff ff ff ff
[  +0.000002] usb 1-7: 1c8: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1d0: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1d8: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1e0: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1e8: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1f0: ff ff ff ff ff ff ff ff
[  +0.000001] usb 1-7: 1f8: ff ff ff ff ff ff ff ff
[  +0.000002] usb 1-7: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[  +0.000002] usb 1-7: RTL8192EU MAC: 18:d6:c7:16:15:d3
[  +0.000001] usb 1-7: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[  +0.001256] usb 1-7: Firmware revision 19.0 (signature 0x92e1)
[  +0.009952] do the RAM reset
[  +0.070720] EXT4-fs (nvme0n1p2): mounted filesystem with ordered data mode. Opts: (null)
[  +0.034358] audit: type=1400 audit(1533548456.806:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=889 comm="apparmor_parser"
[  +0.000181] audit: type=1400 audit(1533548456.806:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=885 comm="apparmor_parser"
[  +0.000002] audit: type=1400 audit(1533548456.806:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=885 comm="apparmor_parser"
[  +0.000002] audit: type=1400 audit(1533548456.806:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=885 comm="apparmor_parser"
[  +0.000176] audit: type=1400 audit(1533548456.806:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=887 comm="apparmor_parser"
[  +0.000002] audit: type=1400 audit(1533548456.806:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc//sanitized_helper" pid=887 comm="apparmor_parser"
[  +0.000631] audit: type=1400 audit(1533548456.806:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oopslash" pid=886 comm="apparmor_parser"
[  +0.000027] audit: type=1400 audit(1533548456.806:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/ippusbxd" pid=892 comm="apparmor_parser"
[  +0.000153] audit: type=1400 audit(1533548456.806:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=883 comm="apparmor_parser"
[  +0.000003] audit: type=1400 audit(1533548456.806:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=883 comm="apparmor_parser"
[  +0.252853] IPv6: ADDRCONF(NETDEV_UP): enp0s31f6: link is not ready
[  +0.183799] IPv6: ADDRCONF(NETDEV_UP): enp0s31f6: link is not ready
[  +0.308151] usb 1-7: rtl8192eu_rx_iqk_path_a: Path A RX IQK failed!
[  +0.023725] usb 1-7: rtl8192eu_rx_iqk_path_a: Path A RX IQK failed!
[  +0.091122] usb 1-7: rtl8192eu_rx_iqk_path_b: Path B RX IQK failed!
[  +0.023761] usb 1-7: rtl8192eu_rx_iqk_path_b: Path B RX IQK failed!
[  +0.005483] usbcore: registered new interface driver rtl8xxxu
[  +0.001294] rtl8xxxu 1-7:1.0 wlx18d6c71615d3: renamed from wlan0
[  +0.034971] IPv6: ADDRCONF(NETDEV_UP): wlx18d6c71615d3: link is not ready
[  +0.005998] IPv6: ADDRCONF(NETDEV_UP): wlx18d6c71615d3: link is not ready
[  +0.075990] IPv6: ADDRCONF(NETDEV_UP): wlx18d6c71615d3: link is not ready
[Aug 6 12:43] wlx18d6c71615d3: authenticate with 14:ae:db:a3:21:bd
[  +0.003920] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 1/3)
[  +0.203608] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 2/3)
[  +0.204039] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 3/3)
[  +0.208009] wlx18d6c71615d3: authentication with 14:ae:db:a3:21:bd timed out
[  +7.237031] wlx18d6c71615d3: authenticate with 14:ae:db:a3:21:bd
[  +0.007246] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 1/3)
[  +0.203814] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 2/3)
[  +0.204006] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 3/3)
[  +0.204004] wlx18d6c71615d3: authentication with 14:ae:db:a3:21:bd timed out
[  +1.573116] wlx18d6c71615d3: authenticate with 14:ae:db:a3:21:bd
[  +0.006941] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 1/3)
[  +0.203944] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 2/3)
[  +0.203992] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 3/3)
[  +0.204001] wlx18d6c71615d3: authentication with 14:ae:db:a3:21:bd timed out
[  +2.065154] wlx18d6c71615d3: authenticate with 14:ae:db:a3:21:bd
[  +0.007045] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 1/3)
[  +0.203865] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 2/3)
[  +0.204002] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 3/3)
[  +0.204043] wlx18d6c71615d3: authentication with 14:ae:db:a3:21:bd timed out
[ +10.081108] wlx18d6c71615d3: authenticate with 14:ae:db:a3:21:bd
[  +0.004203] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 1/3)
[  +0.202794] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 2/3)
[  +0.204009] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 3/3)
[  +0.204001] wlx18d6c71615d3: authentication with 14:ae:db:a3:21:bd timed out
[  +1.033062] IPv6: ADDRCONF(NETDEV_UP): wlx18d6c71615d3: link is not ready

Code: Select all

[ +21.161881] usb 1-7: USB disconnect, device number 2
[  +0.000300] xhci_hcd 0000:00:14.0: WARN Cannot submit Set TR Deq Ptr
[  +0.000003] xhci_hcd 0000:00:14.0: A Set TR Deq Ptr command is pending.
[  +0.000113] xhci_hcd 0000:00:14.0: WARN Cannot submit Set TR Deq Ptr
[  +0.000003] xhci_hcd 0000:00:14.0: A Set TR Deq Ptr command is pending.
[  +0.120421] usb 1-7: rtl8192eu_active_to_emu: Disabling MAC timed out
[  +0.000001] usb 1-7: disconnecting
[  +2.284542] usb 1-7: new high-speed USB device number 4 using xhci_hcd
[  +0.148418] usb 1-7: New USB device found, idVendor=2357, idProduct=0107
[  +0.000005] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000004] usb 1-7: Product: 802.11n NIC 
[  +0.000004] usb 1-7: Manufacturer: Realtek 
[  +0.000004] usb 1-7: SerialNumber: 00e04c000001
[  +0.000582] usb 1-7: This Realtek USB WiFi dongle (0x2357:0x0107) is untested!
[  +0.000003] usb 1-7: Please report results to Jes.Sorensen@gmail.com
[  +0.058604] usb 1-7: Vendor: Realtek
[  +0.000005] usb 1-7: Product: 802.11n NI
[  +0.000003] usb 1-7: Serial: 
[  +0.000005] usb 1-7: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
[  +0.000004] usb 1-7: 00: 29 81 00 7c 01 40 03 00
[  +0.000004] usb 1-7: 08: 40 74 04 50 14 00 00 00
[  +0.000003] usb 1-7: 10: 29 29 28 28 28 28 2c 2c
[  +0.000004] usb 1-7: 18: 2b 2b 2b f2 ef ef ff ff
[  +0.000004] usb 1-7: 20: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 28: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 30: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 38: ff ff 2a 2a 29 28 28 28
[  +0.000004] usb 1-7: 40: 2d 2d 2c 2b 2b f2 ef ef
[  +0.000003] usb 1-7: 48: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 50: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 58: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 60: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 68: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 70: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 78: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 80: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 88: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 90: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 98: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: a0: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: a8: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: b0: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: b8: a1 1f 20 00 00 00 ff ff
[  +0.000004] usb 1-7: c0: ff 01 00 10 00 00 00 ff
[  +0.000003] usb 1-7: c8: 00 00 ff ff ff ff ff ff
[  +0.000004] usb 1-7: d0: 57 23 07 01 e7 47 02 18
[  +0.000004] usb 1-7: d8: d6 c7 16 15 d3 0a 03 52
[  +0.000003] usb 1-7: e0: 65 61 6c 74 65 6b 20 0e
[  +0.000003] usb 1-7: e8: 03 38 30 32 2e 31 31 6e
[  +0.000004] usb 1-7: f0: 20 4e 49 43 20 00 00 ff
[  +0.000003] usb 1-7: f8: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 100: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 108: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 110: ff ff ff ff ff ff ff 0d
[  +0.000004] usb 1-7: 118: 03 00 05 00 30 00 00 00
[  +0.000003] usb 1-7: 120: 00 93 ff ff ff ff ff ff
[  +0.000004] usb 1-7: 128: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 130: f6 a8 98 2d 03 92 98 00
[  +0.000003] usb 1-7: 138: fc 8c 00 11 9b 44 02 0a
[  +0.000004] usb 1-7: 140: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 148: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 150: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 158: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 160: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 168: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 170: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 178: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 180: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 188: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 190: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 198: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 1a0: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 1a8: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 1b0: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 1b8: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 1c0: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 1c8: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 1d0: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 1d8: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 1e0: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 1e8: ff ff ff ff ff ff ff ff
[  +0.000003] usb 1-7: 1f0: ff ff ff ff ff ff ff ff
[  +0.000004] usb 1-7: 1f8: ff ff ff ff ff ff ff ff
[  +0.000007] usb 1-7: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[  +0.000004] usb 1-7: RTL8192EU MAC: 18:d6:c7:16:15:d3
[  +0.000004] usb 1-7: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[  +0.000158] usb 1-7: Firmware revision 19.0 (signature 0x92e1)
[  +0.839688] usb 1-7: rtl8192eu_rx_iqk_path_a: Path A RX IQK failed!
[  +0.023691] usb 1-7: rtl8192eu_rx_iqk_path_a: Path A RX IQK failed!
[  +0.026630] usb 1-7: rtl8192eu_rx_iqk_path_b: Path B RX IQK failed!
[  +0.023727] usb 1-7: rtl8192eu_rx_iqk_path_b: Path B RX IQK failed!
[  +0.075533] rtl8xxxu 1-7:1.0 wlx18d6c71615d3: renamed from wlan0
[  +0.046637] IPv6: ADDRCONF(NETDEV_UP): wlx18d6c71615d3: link is not ready
[  +0.005298] IPv6: ADDRCONF(NETDEV_UP): wlx18d6c71615d3: link is not ready
[  +0.073596] IPv6: ADDRCONF(NETDEV_UP): wlx18d6c71615d3: link is not ready
[Aug 6 12:44] wlx18d6c71615d3: authenticate with 14:ae:db:a3:21:bd
[  +0.007445] wlx18d6c71615d3: send auth to 14:ae:db:a3:21:bd (try 1/3)
[  +0.001534] wlx18d6c71615d3: authenticated
[  +0.002072] wlx18d6c71615d3: associate with 14:ae:db:a3:21:bd (try 1/3)
[  +0.003454] wlx18d6c71615d3: RX AssocResp from 14:ae:db:a3:21:bd (capab=0x431 status=0 aid=4)
[  +0.000574] usb 1-7: rtl8xxxu_bss_info_changed: HT supported
[  +0.000525] wlx18d6c71615d3: associated
[  +0.035765] IPv6: ADDRCONF(NETDEV_CHANGE): wlx18d6c71615d3: link becomes ready
i hope this is sufficient data.. if there are more commands to provide info please let me know
gm10

Re: Wifi adapter needs to be unplugged everytime i boot

Post by gm10 »

After a boot try if this gets it working without a re-plug:

Code: Select all

sudo modprobe -r rtl8xxxu
sudo modprobe rtl8xxxu
arieltal

Re: Wifi adapter needs to be unplugged everytime i boot

Post by arieltal »

Re: Wifi adapter needs to be unplugged everytime i boot

by gm10 » Tue Aug 07, 2018 12:42 pm
After a boot try if this gets it working without a re-plug:

Code: Select all

sudo modprobe -r rtl8xxxu
sudo modprobe rtl8xxxu
yes this has worked!
thank you.
i wonder if there is an explanation as to why this happens..
gm10

Re: Wifi adapter needs to be unplugged everytime i boot

Post by gm10 »

I'm not sure why it fails from those logs alone but my guess is the driver isn't waiting for the hardware to be fully initialized and thus it doesn't set the device up correctly the first time it gets loaded. I don't feel like debugging and fixing the driver sources though, so let's stick with the above workaround.

Before we can make that permanent I need to know whether we'll only need to fix it at boot or whether it also breaks at resume from a suspend or hibernate (when it was working before entering sleep). Let me know.
arieltal

Re: Wifi adapter needs to be unplugged everytime i boot

Post by arieltal »

Re: Wifi adapter needs to be unplugged everytime i boot

I'm not sure why it fails from those logs alone but my guess is the driver isn't waiting for the hardware to be fully initialized and thus it doesn't set the device up correctly the first time it gets loaded. I don't feel like debugging and fixing the driver sources though, so let's stick with the above workaround.

Before we can make that permanent I need to know whether we'll only need to fix it at boot or whether it also breaks at resume from a suspend or hibernate (when it was working before entering sleep). Let me know.
i have tried to go into suspend mode to check, but the computer did not return, after a quick google search, i pressed the power button - which gave me the
login screen, but after that there was a strange screen with pink vertical lines, so ctrl+alt+delete brought me back to login screen, where i rebooted.

apart from that - whenever i don't use the computer for a certain amount of time, the screen shuts down, (i don't turn it off, even when i go to sleep)
and when i move the mouse, it comes back and everything is working as before. (not sure if this is "sleep mode")
anyway, i don't seem to be able to use suspend mode (and don't think i need it anyway)..
gm10

Re: Wifi adapter needs to be unplugged everytime i boot

Post by gm10 »

Ok, so with your suspend broken let's leave that for another thread I guess, should you care (seems you never used it before, anyway). So to permanently apply the workaround for the wifi adapter, this should do the job:

Code: Select all

printf '#!/bin/sh\nmodprobe -r rtl8xxxu\nmodprobe rtl8xxxu\n' | sudo tee /etc/rc.local
sudo chmod +x /etc/rc.local
PS: This overwrites an existing /etc/rc.local file - don't use should you have created one yourself already, just append the workaround to the existing file then.
arieltal

Re: Wifi adapter needs to be unplugged everytime i boot

Post by arieltal »

Ok, so with your suspend broken let's leave that for another thread I guess, should you care (seems you never used it before, anyway). So to permanently apply the workaround for the wifi adapter, this should do the job:

Code: Select all

printf '#!/bin/sh\nmodprobe -r rtl8xxxu\nmodprobe rtl8xxxu\n' | sudo tee /etc/rc.local
sudo chmod +x /etc/rc.local

PS: This overwrites an existing /etc/rc.local file - don't use should you have created one yourself already, just append the workaround to the existing file then.
yes, this seems to do trick!, altough it didn't work the first time around, i read on other thread about using the sleep command in order to delay the execution
of the script, and that worked.
thank you for your help :)
gm10

Re: Wifi adapter needs to be unplugged everytime i boot

Post by gm10 »

Oh interesting, I didn't expect that by the time that file gets run it would still be a problem. Good job with the sleep workaround. The "proper" way would be to set up a systemd .service then, probably for multi-user.target. But as long as it works I don't think it matters.
arieltal

Re: Wifi adapter needs to be unplugged everytime i boot

Post by arieltal »

hello, so i've been testing this new solution, and it seems that the script must be run after i log in.
(if i wait with my password for longer than the sleep time i have selected, it doesn't work.)
i looked into using a systemd service as use suggested, i came up with this configuration:

Code: Select all

[Unit]
Description=Wifi Fixer
After=systemd-logind.service
[Service]
Type=idle
ExecStart=/etc/wifiFix.sh
[Install]
WantedBy=multi-user.target
but it still being run straight away and not waiting for me to log in..
any tips?
gm10

Re: Wifi adapter needs to be unplugged everytime i boot

Post by gm10 »

The simplest way to run something after login is not systemd but to go Menu > Session and Startup > Autostart > Add and then just add the link to your script in the command field,

Alternatively, I wonder what kills it during/after the login though. If you're not using Bluetooth try disabling the Bluetooth stuff from the startups, maybe you won't need the workaround at all then? The only other one that could be related is the NetworkManager applet, but with the NM service already running I doubt it#s that one.
arieltal

Re: Wifi adapter needs to be unplugged everytime i boot

Post by arieltal »

well, turning off the bluetooth didn't help..
also using the Autostart option give the same results, it runs the script too soon.
currently the previous solution works, i just have to make sure i logged in before the script wakes up, otherwise i will run it manually.
thanks!
gm10

Re: Wifi adapter needs to be unplugged everytime i boot

Post by gm10 »

Well, some user mode process must be responsible for this, once you identify that you can time execution exactly.

However, the autostart option fails because it executs in user context, but the modprobe commands needs elevated privileges. This is my fault, I forgot what we were running in that script. To get that to work you'd need to prefix the modprobes with sudo in the script and then create a sudoers exception for the script just like it's done for the Update Manager script in /etc/sudoers.d/mintupdate so you don't get prompted for a password.

PS: Also I was just thinking. One thing we didn't try was whether we shouldn't be loading the driver even earlier rather than later. So far everything seems to indicate it needs to be late but try this please and see if it makes a difference, this forces the driver to get loaded right away even if the device hasn't been detected yet:

Code: Select all

echo rtl8xxxu | sudo tee -a /etc/modules
ioannist

Re: Wifi adapter needs to be unplugged everytime i boot

Post by ioannist »

memberlist.php?mode=viewprofile&u=235149

You are my King.
Do not misunderstand me, but i 've been looking for a solution for almost two weeks now!
Please accept my deep and frank appreciation.
This off course applies to all of you who provide us (the less relevant) with a correct answer/solution to our issues!
All the best to those who brought up this particular issue/post and gave me the ability to look for it and solve my problem!

Sincerely,

ioannist.

P.S <<<NOT TO FORGET!!!>>>

"sudo Merry Xmas to all!"
Locked

Return to “Networking”