Closed Hodes closed 5 months ago
Have you tried the following?
$ sudo sh install-driver.sh
Yes, another error happens:
user@fedora:~/src/8821cu-20210916$ sudo sh install-driver.sh
install-driver.sh: line 2: $'\r': command not found
install-driver.sh: line 29: $'\r': command not found
install-driver.sh: line 32: $'\r': command not found
install-driver.sh: line 34: $'\r': command not found
install-driver.sh: line 38: $'\r': command not found
install-driver.sh: line 40: $'\r': command not found
install-driver.sh: line 70: syntax error near token `$'in\r''
'nstall-driver.sh: line 70: ` case $1 in
Edited this comment to manually translate the trace since my system is in another language.
Try a menual install:
$ make clean $ make $ sudo make install $ sudo reboot
Thankyou @morrownr, now I think it installed. Is there a way to check? So the installation issue is solved!
However unfortunately my problem continues the device cannot connect to the Wi-Fi. I have these modules instaled:
user@fedora:~$ lsmod | grep rtw
rtw88_8822cu 12288 0
rtw88_8822c 487424 1 rtw88_8822cu
rtw88_usb 28672 1 rtw88_8822cu
rtw88_core 249856 2 rtw88_8822c,rtw88_usb
mac80211 1572864 2 rtw88_core,rtw88_usb
cfg80211 1335296 2 rtw88_core,mac80211
The problem I'm having is (trace from dmesg
):
But, maybe this device cannot work on linux, don't know. On windows it auto install the driver as it also has a PenDrive Mode on itself.
Also it may not relate to this package, so this issue can be closed.
Again thankyou very much @morrownr for your time!
rtw88_8822cu 12288 0 rtw88_8822c 487424 1 rtw88_8822cu rtw88_usb 28672 1 rtw88_8822cu
Okay. This explains a lot. You are installing the wrong driver. Evidently the chipset in your adapter is a rtl8822cu which is very different from the rtl8821cu. I don't have a driver up for that chipset and don't know of anyone that does.
The drivers shown above are the in-kernel support for the rtl8822cu. Several Realtek drivers are contained in the Linux kernel in rtw88. It has picked up on your adapter and the drivers are loading. I have no idea if the drivers are good but what you can do is the following:
$ iw dev
Does that show a wireless interface for your adapter?
If it does, then connect to an AP and enjoy yourself...and don't forget to get rid of any previously installed drivers:
$ sudo sh remove-driver.sh $ sudo make uninstall
Delete the folder. Do the same for any other drivers you have tried to install.
FYI: The Main Menu for this site is:
https://github.com/morrownr/USB-WiFi
Menu items 1 and 2 could be helpful. In fact, if the in-kernel driver is not working and you just bought it and can return it, I would return it. That is a late cycle WiFi 5 adapter that may never have great support. Not sure why Realtek released it. The Plug and Play List is designed to help users find adapters that will work well with Linux.
If you have questions, let me know.
@morrownr
Thankyou @morrownr, also this is a AC1300 generic chinese dongle, a multi function device (which is not recomended as of the main site), bought this because I needed a quick (delivery) and cheap device to add theese functions to my PC. So indeed, in the package it says driver free, which it is, as of in windows it auto installs and on linux it uses the in kernel, unfortunately it doesn't authenticate.
I'm closing this issue, if needed I'll asc on main site. Thanks again!
@Hodes
It looks like the same problem some RTL8821CU and RTL8822BU devices had. The fix is in the kernel. I think 6.7.12 and 6.8.3 will have it. While you wait for your distro to update, you can blacklist rtw88_8822cu, rtw88_8822c, rtw88_usb, and rtw88_core and install the latest rtw88 from here: https://github.com/lwfinger/rtw88/
Wow! You guys are legends! @dubhater It worked! I just gave up on that device since I found an old Encore Dongle by coincidence, I was looking for another thing and found that encore dongle that just worked on plug and play. Right now I'm writing and sending this message using the device related to this post AC1300 Generic Chinese Realtek device. Maybe it should be nice to post at main site that this kind of device works with this steps. Thankyou @dubhater @morrownr !
Hello,
This might be a stupid thing, but i'm having a problem that I never had before:
I'm currently using fedora 39: Linux fedora 6.7.10-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Mar 18 18:56:52 UTC 2024 x86_64 GNU/Linux
I folowed the steps to install:
File Permissions:
Anyone have clues what might be? I'm kinda giving up on this device, I have tried others drives RTL88x2BU-Linux-Driver and rtl8188fu, but since I han
lshw -c Network
I saw that this is referring to rtw_8822cu driver which the module is not found on my system. With other two drivers I can see and try to connect to wi-fi but the authentication fails, after 3 times it timeouts. For me the last hope is this repo driver.Much appreciate!