Having trouble setting up usb wificard

the usb wifi card is this one
usb wifi card

there were two drivers on the cd that came with it
RTL8811CU(RTL8821CU)and
RTL8812BU (RTL8822BU_WiFi_linux_v5.2.4.4)

i want to disable the internal graphics card a
intel wireless 3160 i believe i want to disable it bc when ever my laptop is resumed it hardware locks and i cant get it to work again with out a full reboot i have tried everything that i could find on google to no avail.

if someone could tell me how to get the USB one working and disable the internal one wifi.
image is what nmcli gives

Until a specific answer turns up you could try out the newest kernel 4.19.1-1 since there are some changes in this area.

You should not be using the driver that came on the installation CD with your adapter. You should use the driver listed in your package manager that should be in the AUR. You do not want to install any packages outside your package manager unless there is absolutely no other way.

Your resume problem should be solvable by writing a systemd service.

I have many other posts on this topic if you search the forum.

https://archived.forum.manjaro.org/t/kernel-4-19-0-3-not-network-after-suspending-gnome-edition/63544/2

https://archived.forum.manjaro.org/t/wifi-adapter-tp-link-tl-wn823n-must-be-reconnected-for-it-to-work/52968/19

https://archived.forum.manjaro.org/t/surface-pro-1796-wifi-not-resuming-after-suspend/48133/47

https://archived.forum.manjaro.org/t/thinkpad-x230t-wont-suspend-under-kernel-419rc4-4-18-4-17-4-14-4-9/59798/21

Here are some external links with excellent systemd reference material:

The ArchWiki - systemd

Red Hat - systemd-targets

Red Hat - systemd unit files

Systemd manpage

2 Likes

question is enp2s0 the interface
so if im using wlo1 would i just replace and save?

enp2s0 is the LAN connection
wlo1 is the wireless connection

You need to post the output of:

inxi -Fxxxz

Please do not posts pics. I am on a cell phone and can not read your output on a picture.

here you go

System:
  Host: wizord-pc Kernel: 4.14.79-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 
  Desktop: Deepin 15.7 tk: Qt 5.11.2 info: dde-dock wm: DeepinWM dm: LightDM 1.28.0 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Hewlett-Packard product: HP Pavilion Notebook 
  v: Type1ProductConfigId serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: Hewlett-Packard model: 8096 v: 89.11 serial: <filter> UEFI: Insyde v: F.21 
  date: 06/05/2015 
Battery:
  ID-1: BAT0 charge: 30.8 Wh condition: 30.8/30.8 Wh (100%) volts: 16.9/14.8 
  model: Hewlett-Packard Primary type: Li-ion serial: <filter> status: Full 
CPU:
  Topology: Dual Core model: Intel Core i5-5200U bits: 64 type: MT MCP 
  arch: Broadwell rev: 4 L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 17566 
  Speed: 2196 MHz min/max: 500/2700 MHz Core speeds (MHz): 1: 2196 2: 2196 3: 2195 
  4: 2195 
Graphics:
  Device-1: Intel HD Graphics 5500 vendor: Hewlett-Packard driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:1616 
  Device-2: NVIDIA GM108M [GeForce 940M] driver: N/A bus ID: 0a:00.0 
  chip ID: 10de:1347 
  Display: x11 server: X.Org 1.20.3 driver: intel unloaded: nvidia tty: N/A 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 5500 (Broadwell GT2) 
  v: 4.5 Mesa 18.2.4 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel Broadwell-U Audio vendor: Hewlett-Packard driver: snd_hda_intel 
  v: kernel bus ID: 00:03.0 chip ID: 8086:160c 
  Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:9ca0 
  Sound Server: ALSA v: k4.14.79-1-MANJARO 
Network:
  Device-1: Intel Wireless 3160 driver: iwlwifi v: kernel port: 6040 
  bus ID: 08:00.0 chip ID: 8086:08b3 
  IF: wlo1 state: up mac: <filter> 
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Hewlett-Packard 
  driver: r8169 v: 2.3LK-NAPI port: 4000 bus ID: 09:00.0 chip ID: 10ec:8136 
  IF: eth0 state: down mac: <filter> 
Drives:
  Local Storage: total: 465.76 GiB used: 94.66 GiB (20.3%) 
  ID-1: /dev/sda vendor: Toshiba model: MQ01ABF050 size: 465.76 GiB speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: 2C scheme: GPT 
Partition:
  ID-1: / size: 448.97 GiB used: 94.66 GiB (21.1%) fs: ext4 dev: /dev/sda2 
  ID-2: swap-1 size: 8.32 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3 
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 187 Uptime: 23m Memory: 7.72 GiB used: 2.66 GiB (34.4%) Init: systemd 
  v: 239 Compilers: gcc: 8.2.1 clang: 7.0.0 Shell: bash v: 4.4.23 
  running in: deepin-terminal inxi: 3.0.27 

so i do just change it?

I am not at home with all my networking notes on hand. You have way more than one issue going on here. I probably would be best to leave this till tomorrow when I have a Linux computer to help you.

In the meantime could you also please post:

lsusb

lsmod

Enter the commands when the USB dongle is plugged in directly to the computer (not through a hub).

I would also recommend installing and testing kernels 4.18 and 4.19. Install these kernels through Manjaro Settings Manager. Do not uninstall kernel 4.14.

It is possible your resume issue could be solved with the newer kernels. You could probably fix that issue with a systemd service. Did you even read any of the information I posted about that?

i can resume just my networking is hard blocked and i cant get it working again untill reboot super annoying when im moving around university

lsusb

lsusb
Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 8087:07dc Intel Corp. 
Bus 002 Device 003: ID 04f2:b50d Chicony Electronics Co., Ltd 
Bus 002 Device 006: ID 0bda:c811 Realtek Semiconductor Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

and lsmod

lsmod
Module                  Size  Used by
uas                    28672  0
usb_storage            73728  2 uas
rfcomm                 86016  4
fuse                  118784  3
ccm                    20480  3
bnep                   24576  2
bbswitch               16384  0
intel_rapl             24576  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
kvm                   712704  0
irqbypass              16384  1 kvm
btusb                  53248  0
uvcvideo              102400  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
snd_hda_codec_hdmi     57344  1
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         28672  1 uvcvideo
videobuf2_core         45056  2 videobuf2_v4l2,uvcvideo
bluetooth             634880  31 btrtl,btintel,btbcm,bnep,btusb,rfcomm
videodev              204800  3 videobuf2_core,videobuf2_v4l2,uvcvideo
media                  45056  2 videodev,uvcvideo
ecdh_generic           24576  1 bluetooth
arc4                   16384  2
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
iwlmvm                344064  0
i915                 1937408  37
ghash_clmulni_intel    16384  0
mac80211              905216  1 iwlmvm
i2c_algo_bit           16384  1 i915
pcbc                   16384  0
drm_kms_helper        196608  1 i915
aesni_intel           188416  2
snd_hda_codec_realtek   110592  1
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
snd_hda_intel          45056  5
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
mousedev               24576  0
iTCO_wdt               16384  0
nls_iso8859_1          16384  2
nls_cp437              20480  2
vfat                   20480  2
fat                    81920  1 vfat
aes_x86_64             20480  1 aesni_intel
drm                   434176  16 drm_kms_helper,i915
snd_hda_core           90112  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
joydev                 24576  0
hp_wmi                 16384  0
wmi_bmof               16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
crypto_simd            16384  1 aesni_intel
rtsx_pci_ms            20480  0
glue_helper            16384  1 aesni_intel
sparse_keymap          16384  1 hp_wmi
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
memstick               16384  1 rtsx_pci_ms
snd_hwdep              16384  1 snd_hda_codec
intel_gtt              24576  1 i915
iwlwifi               311296  1 iwlmvm
intel_cstate           16384  0
agpgart                49152  2 intel_gtt,drm
r8169                  94208  0
evdev                  24576  32
pcspkr                 16384  0
input_leds             16384  0
intel_rapl_perf        16384  0
psmouse               167936  0
mac_hid                16384  0
snd_pcm               118784  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              36864  1 snd_pcm
snd                    94208  18 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
i2c_i801               28672  0
cfg80211              733184  3 iwlmvm,iwlwifi,mac80211
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
hp_accel               28672  0
soundcore              16384  1 snd
rfkill                 28672  7 hp_wmi,bluetooth,cfg80211
mii                    16384  1 r8169
processor_thermal_device    16384  0
lis3lv02d              24576  1 hp_accel
mei_me                 45056  0
input_polldev          16384  1 lis3lv02d
int3400_thermal        16384  0
int340x_thermal_zone    16384  1 processor_thermal_device
intel_soc_dts_iosf     16384  1 processor_thermal_device
acpi_thermal_rel       16384  1 int3400_thermal
led_class              16384  3 input_leds,iwlmvm,hp_accel
mei                   114688  1 mei_me
thermal                20480  0
video                  45056  1 i915
battery                20480  0
wmi                    28672  2 hp_wmi,wmi_bmof
hp_wireless            16384  0
shpchp                 40960  0
lpc_ich                28672  0
acpi_pad               16384  0
ac                     16384  0
button                 16384  0
pcc_cpufreq            16384  0
sch_fq_codel           20480  6
uinput                 20480  0
sg                     40960  0
crypto_user            16384  0
ip_tables              28672  0
x_tables               45056  1 ip_tables
ext4                  720896  1
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  118784  1 ext4
fscrypto               32768  1 ext4
sr_mod                 28672  0
cdrom                  69632  1 sr_mod
sd_mod                 61440  6
rtsx_pci_sdmmc         28672  0
serio_raw              16384  0
mmc_core              167936  1 rtsx_pci_sdmmc
atkbd                  32768  0
libps2                 16384  2 atkbd,psmouse
ahci                   40960  3
libahci                40960  1 ahci
ehci_pci               16384  0
xhci_pci               16384  0
libata                278528  2 libahci,ahci
ehci_hcd               94208  1 ehci_pci
xhci_hcd              241664  1 xhci_pci
crc32c_intel           24576  1
scsi_mod              212992  6 sd_mod,usb_storage,uas,libata,sg,sr_mod
usbcore               286720  8 xhci_hcd,ehci_pci,usb_storage,uvcvideo,ehci_hcd,btusb,xhci_pci,uas
rtsx_pci               65536  2 rtsx_pci_sdmmc,rtsx_pci_ms
usb_common             16384  1 usbcore
i8042                  32768  1 hp_accel
serio                  28672  7 serio_raw,atkbd,hp_accel,psmouse,i8042

ill try the new kernels today

Close all open programs. Then issue this command:

sudo modprobe -r hp_wmi

Then suspend and see if you still have the same problem afterwards.

my laptop just freezes after resume after that command

OK, I just needed to know if removing the wmi module would help.

Try this simple test before suspending:

nmcli networking off

After resuming, issue:

sudo rfkill unblock all

nmcli networking on

sudo systemctl restart NetworkManager 

See if your adapter is still hardblocked after resuming and issuing those commands.

There will be no negative side effects from those commands.

it is still hard blocked

 rfkill
ID TYPE DEVICE      SOFT    HARD
 1 wlan phy0   unblocked blocked

Sorry I don't have much more time for this ATM. The stuff that needs to be done after this gets more complicated and would be better left until I'm on a Linux box. Being only on my phone is very limiting. I'll see if we can work on this tomorrow. Good luck till then.

sounds good to me thank you so much for trying i really appreciate this

Not a problem, and you're welcome.

Before we proceed further, did you install and test the other kernels?

I should mention a few things so that you understand my methodology. Unless there is a good reason why an internal adapter should not be used in a laptop, then I always prefer to try to get the internal adapter working. I assume there were no other problems with your internal adapter other than the suspend/resume issue. So, lets try one more time to remove the hard block.

Run this before suspending:

sudo nmcli networking off
sleep 2
sudo systemctl stop NetworkManager
sleep 2
sudo ip link set wlo1 down
sleep 2
sudo modprobe -r iwlmvm
sleep 2
sudo modprobe -r iwlwifi
sleep 2
sudo modprobe -r wmi

After resume run:

sudo rfkill unblock all
sleep 2
sudo modprobe iwlwifi
sleep 2
sudo modprobe iwlmvm
sleep 2
sudo rfkill unblock all
sudo rm /dev/rfkill
sleep 2
sudo ip link set wlo1 up
sleep 2
sudo rfkill unblock all
sudo systemctl start NetworkManager
sleep 3
sudo nmcli networking on

If the laptop hangs after resuming then remove sudo modprobe -r wmi from the list of commands to be run before suspending. Then run the set of pre/post commands again after rebooting and removing that command.

To be clear, I want you to post every command input and output on the forum.

This is very important as I need to know there were no syntax errors in every single command run.

Hope that works.

If the above version does not work for you then test this alternate version.

Run this before suspending:

sudo nmcli networking off
sleep 2
sudo systemctl stop NetworkManager
sleep 2
sudo ip link set wlo1 down
sleep 2
sudo modprobe -r iwlmvm
sleep 2
sudo modprobe -r iwlwifi
sleep 2
sudo rm /dev/rfkill
sleep 2
sudo rfkill unblock all

After resume run:

sudo rfkill unblock all
sleep 2
sudo modprobe iwlwifi
sleep 2
sudo modprobe iwlmvm
sleep 2
sudo ip link set wlo1 up
sleep 2
sudo rfkill unblock all
sudo systemctl start NetworkManager
sleep 3
sudo nmcli networking on

Again, please post every command input and output.

yea i did try them they didnt fix it ill do the commands now

Forum kindly sponsored by