LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-17-2022, 01:53 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,636

Rep: Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636
Hardware problem with wifi dongle


This is a hardware problem with a wifi dongle RTL8812BU. The network side of a wifi connection I do in the init scripts
Code:
  /sbin/ip address flush dev  wlan2
  /sbin/ip link set wlan2 up 
wpa_supplicant -B -i wlan2 -c /etc/wpa_supplicant.conf && /sbin/dhcpcd  wlan2
The dongle works in a RazPi 4B, worked previously on this one, but won't work in my new PC. It's irritating because it worked for weeks. I upgraded the kernel modules, which lost me the driver. Now I've reverted, and the same module (recompiled) isn't doing it. What's worse is that my retired laptop with the identical OS compiled the PC module today and got online no trouble . The only difference really is the usb ports' versions: USB2=v2.1(laptop) vs v2.4 on the PC. USB3=.3.0 on the laptop is vs 3.2(?) on the PC.

But I tried the dongle in usb-2.x & usb-3.x ports with no joy. Here's the dhcpcd dialogue
Code:
bash-5.1$ sudo dhcpcd -dd wlan2
Password: 
dhcpcd-9.4.1 starting
chrooting as dhcpcd to /var/lib/dhcpcd
sandbox: seccomp
spawned manager process on PID 5515
spawned privileged proxy on PID 5516
spawned network proxy on PID 5517
spawned controller proxy on PID 5518
DUID 00:04:ef:ef:16:89:a4:a4:96:12:af:70:d8:bb:c1:16:e2:1e
wlan2: executing: /lib/dhcpcd/dhcpcd-run-hooks PREINIT
wlan2: executing: /lib/dhcpcd/dhcpcd-run-hooks NOCARRIER
wlan2: waiting for carrier
timed out
wlan2: executing: /lib/dhcpcd/dhcpcd-run-hooks STOPPED
bash-5.1$
The 'carrier,' I gather, is a reply from the DHCP server. When the dongle works, it hears a message back after that 'waiting for carrier' line. It connects, everywhere but in the box I want it for There's madness in dmesg also when I insert the dongle. Things argue, snap at each other, and crash. I'll trap that. Any thoughts welcome.

Last edited by business_kid; 07-17-2022 at 02:19 PM.
 
Old 07-17-2022, 08:32 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,948
Blog Entries: 28

Rep: Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358Reputation: 6358
This article may help: https://tutorialforlinux.com/how-to-...-linux-distro/

I have no way of testing it.
 
Old 07-18-2022, 07:31 AM   #3
TheTKS
Member
 
Registered: Sep 2017
Location: Ontario, Canada
Distribution: Slackware, X/ubuntu, MX Linux, OpenBSD, OpenWrt
Posts: 383

Rep: Reputation: 254Reputation: 254Reputation: 254
I just responded on your other thread about the RTL8188CU. I can't help you, but maybe you can find a hint on the Arch Linux wiki.

https://wiki.archlinux.org/title/Net...reless#Realtek

TKS
 
Old 07-18-2022, 03:09 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,636

Original Poster
Rep: Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636
Here's usb insertions to usb2 & usb3
https://pastebin.com/C450RQyg
https://pastebin.com/yd1pYdtD

The other oddity screaming at me is that 'ifconfig wlan2 up' takes 10 seconds the first time it's called. 'iw link set wlan2 up' takes about the same, and I can find no debug info on that.
 
Old 07-19-2022, 06:27 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,636

Original Poster
Rep: Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636
Summing this up, I have 2 computers side by side atm, one old & slow, the other shiny & new. The wifi dongle works reliably in the old & slow one and won't work where I need it, in the new one.

Old & Slow: i3 twin core @ 2.4Ghz, Intel Series 7 Chipset, HD4000 Ivy Bridge Graphics, UEFI disabled. USB-2.1(?) & 3.0

Shiny & New: AMD Ryzen 5 5600 @3.5Ghz, MSI B550M Bazooka m/b, Radeon RX6600XT Graphics UEFI enabled. USB-2.4(?) & 3.2(?)

The dongle itself is clearly junk or non standards compliant. But suspicion also points at the new box.
  • Something crashes any time I insert the dongle into a usb port. The dmesg in the previous post refers.
  • The commands
    Code:
    ip link set wlan2 up OR 
    ifconfig wlan2 up
    first time after a boot take 10 seconds to return a prompt in my new box, but only 2-3 seconds in my old laptop. After that, they are instant.
  • The dongle WORKS in my old laptop, but won't work in my new box.

I would appreciate any insights on
  1. How to find what's going on when ip or ifconfig go out to lunch trying to bring up the dongle.
  2. How to make sense of the dmesg disasters.
 
Old 07-20-2022, 03:26 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,636

Original Poster
Rep: Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636
Well, on my shiny new pc which always fights with this dongle, I've discovered a perfectly clean saved off dmesg.log, which was done days ago to trap the usb ID. Now it crashes the kernel.

So it is the hardware, and I have proof. I treated myself to a pcie wifi card.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Technoethical FLOSS Wifi Dongles not working out of the box in Debian 9. linustalman Linux - Wireless Networking 11 06-09-2018 01:52 PM
Help Configuring USB WiFi Dongles For Monitoring Airway danmartinj Linux - Networking 5 07-14-2016 01:07 PM
USB-to-Ethernet and Wifi USB dongles losing packets jgreg Linux - Networking 0 05-24-2010 04:01 AM
Good wifi dongles that are plug and play with ubuntu, any reccomendations? lopagof Linux - Hardware 3 05-01-2007 02:37 PM
Wine and software protection dongles SolidSnake Linux - Software 0 11-19-2004 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration