首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >rtl8821cu WiFi蓝牙USB 0bda:c 820

rtl8821cu WiFi蓝牙USB 0bda:c 820
EN

Ask Ubuntu用户
提问于 2020-12-27 00:03:35
回答 3查看 6.9K关注 0票数 0

Linux非常新,这是我第一次真正开始安装驱动程序。Ubuntu一直是一台服务器,从未真正用作桌面。我正在构建一个openHAB服务器,因此需要wifi和蓝牙。我没有想到,于是订购了这款"Blueshadow WiFi蓝牙4.2适配器600 this -双波段无线网络外部接收器,用于PC/膝上型电脑/桌面的迷你WiFi连接器,适用于所有Windows108.1 8 7 XP Vista (600米)“

https://www.amazon.com/gp/product/B08GSBG17K/ref=ppx_yo_dt_B_阿辛_标题_o05_s00?ie=UTF8&psc=1

Ubuntu 18.04

代码语言:javascript
复制
uname -r
4.15.0-128-generic

lsusb
Bus 002 Device 003: ID 0bda:c820 Realtek Semiconductor Corp. 

https://github.com/andydvsn/rtl8821cu_无线局域网 -安装-无线工程。

https://github.com/andydvsn/rtl8821cu_bt -我无法安装蓝牙驱动程序

看上去很简单

代码语言:javascript
复制
git clone https://github.com/andydvsn/rtl8821cu_bt.git
Cloning into 'rtl8821cu_bt'...
remote: Enumerating objects: 44, done.
remote: Total 44 (delta 0), reused 0 (delta 0), pack-reused 44
Unpacking objects: 100% (44/44), done.
[16:58:49] root@linux1:~# cd rtl8821cu_bt
[16:59:00] root@linux1:~/rtl8821cu_bt# make
make -C 8821CU -s
Copy 8821CU firmware to /lib/firmware/rtl8821cu_fw
Copy 8821CU config to /lib/firmware/rtl8821cu_config
make -C ./bluetooth_usb_driver
make[1]: Entering directory '/root/rtl8821cu_bt/bluetooth_usb_driver'
make -C /lib/modules/4.15.0-128-generic/build M=/root/rtl8821cu_bt/bluetooth_usb_driver modules
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-128-generic'
  CC [M]  /root/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.o
/root/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_check_setup_timer’:
/root/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:544:3: error: implicit declaration of function ‘setup_timer’; did you mean ‘sk_stop_timer’? [-Werror=implicit-function-declaration]
   setup_timer(&(btrtl_coex.a2dp_count_timer),
   ^~~~~~~~~~~
   sk_stop_timer
/root/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_btcoex_open’:
/root/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:2532:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
  init_timer(&btrtl_coex.polling_timer);
  ^~~~~~~~~~
  init_timers
cc1: some warnings being treated as errors
scripts/Makefile.build:330: recipe for target '/root/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.o' failed
make[3]: *** [/root/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.o] Error 1
Makefile:1587: recipe for target '_module_/root/rtl8821cu_bt/bluetooth_usb_driver' failed
make[2]: *** [_module_/root/rtl8821cu_bt/bluetooth_usb_driver] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-128-generic'
Makefile:10: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/rtl8821cu_bt/bluetooth_usb_driver'
Makefile:10: recipe for target 'install' failed
make: *** [install] Error 2
[16:59:06] root@linux1:~/rtl8821cu_bt# 

我已经尝试删除和重新开始,感谢您的阅读和任何帮助将不胜感激。

编辑-1删除github.com/andydvsn/rtl8821cu_无线局域网并使用github.com/brektrou/rtl8821CU.git

wlan正在工作,但蓝牙仍然看不到适配器。

代码语言:javascript
复制
ls /lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek/rtl8821cu
8821cu.ko



    >     T:  Bus=02 Lev=02 Prnt=02 Port=02 Cnt=01 Dev#=  5 Spd=480 MxCh= 0
    >     D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
    >     P:  Vendor=0bda ProdID=c820 Rev=02.00
    >     S:  Manufacturer=Realtek
    >     S:  Product=802.11ac NIC
    >     S:  SerialNumber=123456
    >     C:  #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=500mA
    >     I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
    >     I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
    >     I:  If#= 2 Alt= 0 #EPs= 5 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtl8821cu
EN

回答 3

Ask Ubuntu用户

发布于 2021-08-24 09:43:04

我买了一个ACEPC T11 8/128 T11。我安装了Ubuntu 20.04,一切正常,但是Wi。我发现芯片组是RTL8821CU,即使它以某种方式显示为Broadcom。我尝试了很多修复方法,但没有结果。最后我解决了这个问题。

我解决了这个问题:

  1. git clone https://github.com/brektrou/rtl8821cu.git
  2. cd rtl8821cu
  3. sudo ./dkms-install.sh
  4. 重新启动
票数 1
EN

Ask Ubuntu用户

发布于 2021-01-03 14:40:22

您所链接的驱动程序存储库用于一个旧的/不同的linux内核。据我所知,init_timer函数被timer_setup函数2017年年某个时候替换,这就是为什么代码不编译的原因。

您可以尝试打开一个PR或者自己更改代码,或者您可以尝试另一个蓝牙驱动程序。

我订购了一个类似usb设备,它似乎使用相同的芯片组。另一个司机为WiFi部分工作,而蓝牙仅与内核btusb驱动程序一起工作。

这种设置的一个小麻烦是,WiFi需要在启动蓝牙工作后的某个时刻处于活动状态。我不确定这是特定于我的设置还是组合WiFi+Bluetooth设备的问题。

在我的机器上,usb-devices输出的相关部分如下所示:

代码语言:javascript
复制
P:  Vendor=0bda ProdID=c820 Rev=02.00
S:  Manufacturer=Realtek
S:  Product=802.11ac NIC
S:  SerialNumber=123456
C:  #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I:  If#=0x1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I:  If#=0x2 Alt= 0 #EPs= 5 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtl8821cu

请注意,我使用的是较新的内核版本(5.8.0-7630-generic),所以情况可能会有所不同。但是,驱动程序自述表示支持4.4.x向上。

祝好运!

票数 0
EN

Ask Ubuntu用户

发布于 2021-01-04 21:05:14

代码语言:javascript
复制
[13:55:56] root@linux1:~# bluetoothctl show
[NEW] Controller 00:13:EF:2F:0B:94 linux1 [default]
Agent registered
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:13:EF:2F:0B:94 Discovering: yes
[NEW] Device 3E:93:4A:78:96:CD 3E-93-4A-78-96-CD

经过几天的斗争,我做了两个改变,usermod -aG lp $USER,然后找到了本文[bluetooth]# power on https://computingforgeeks.com/connect-to-bluetooth-device-from-linux-terminal/

我无法想象根需要添加到组'lp',但我不确定,并希望文件。power on似乎起了作用。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1303035

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档