蓝牙驱动怎样开机自动加载?
Tofloor
poster avatar
奢青
deepin
2020-11-11 06:24
Author

刚升级20。轻松启用rt3290的蓝牙。

但开机时要运行:


zhu@zhu-PC:~$ sudo modprobe rtbth
请输入密码
[sudo] zhu 的密码:
验证成功
zhu@zhu-PC:~$ init complete


才能启动蓝牙。

deepin好像没有rc.local。

要怎样设置开机自动加载呢??

Reply Favorite View the author
All Replies
走钢丝
deepin
2020-11-11 06:32
#1

/etc/modules-load.d 中创建一个 conf 文件,把驱动模块名称写进去。


Reply View the author
patience
deepin
2020-11-11 06:54
#2

https://bbs.deepin.org/post/203017?id=203017&limit=20&offset=0&postId=1152943


Reply View the author
Shinglee
deepin
2020-11-11 07:45
#3

开机后,执行命令

sudo lshw

输出很多内容,找到蓝牙相关的内容,看到开机用的蓝牙驱动是什么,把默认的屏蔽掉

Reply View the author
奢青
deepin
2020-11-11 18:41
#4

开机时:

...

*-generic UNCLAIMED
de*ion: Bluetooth
product: RT3290 Bluetooth
vendor: Ralink corp.
physical id: 0.1
bus info: pci@0000:03:00.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:f7900000-f790ffff

手动执行后:

zhu@zhu-PC:~$ sudo modprobe rtbth
zhu@zhu-PC:~$ init complete

zhu@zhu-PC:~$ sudo lshw

...

*-generic
de*ion: Bluetooth
product: RT3290 Bluetooth
vendor: Ralink corp.
physical id: 0.1
bus info: pci@0000:03:00.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=rtbt latency=0
resources: irq:18 memory:f7900000-f790ffff

是不是没有默认的驱动?

怎样把rtbt加进去?

Reply View the author
走钢丝
deepin
2020-11-11 20:16
#5
奢青

开机时:

...

*-generic UNCLAIMED
de*ion: Bluetooth
product: RT3290 Bluetooth
vendor: Ralink corp.
physical id: 0.1
bus info: pci@0000:03:00.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:f7900000-f790ffff

手动执行后:

zhu@zhu-PC:~$ sudo modprobe rtbth
zhu@zhu-PC:~$ init complete

zhu@zhu-PC:~$ sudo lshw

...

*-generic
de*ion: Bluetooth
product: RT3290 Bluetooth
vendor: Ralink corp.
physical id: 0.1
bus info: pci@0000:03:00.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=rtbt latency=0
resources: irq:18 memory:f7900000-f790ffff

是不是没有默认的驱动?

怎样把rtbt加进去?

搜索一下看看有没有加载


lsmod | grep rtbt
Reply View the author
Shinglee
deepin
2020-11-11 21:13
#6
奢青

开机时:

...

*-generic UNCLAIMED
de*ion: Bluetooth
product: RT3290 Bluetooth
vendor: Ralink corp.
physical id: 0.1
bus info: pci@0000:03:00.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:f7900000-f790ffff

手动执行后:

zhu@zhu-PC:~$ sudo modprobe rtbth
zhu@zhu-PC:~$ init complete

zhu@zhu-PC:~$ sudo lshw

...

*-generic
de*ion: Bluetooth
product: RT3290 Bluetooth
vendor: Ralink corp.
physical id: 0.1
bus info: pci@0000:03:00.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=rtbt latency=0
resources: irq:18 memory:f7900000-f790ffff

是不是没有默认的驱动?

怎样把rtbt加进去?

你这很明显是驱动没有开机自动加载上,将你的驱动文件 rtbt.ko 拷贝到驱动目录

sudo cp -rf rtbt.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/

Reply View the author
奢青
deepin
2020-11-12 01:18
#7

我系统中有文件:

/usr/lib/modules/5.4.50-amd64-desktop/updates/dkms/rtbth.ko

执行

zhu@zhu-PC:~$ sudo modprobe rtbth
zhu@zhu-PC:~$ init complete

加载的即是这个文件(我mv这个文件,再执行以上命令即加载不了)。

但把这个文件cp到.../kernel/drivers/bluetooth/重启还是不会自动加载。


请问怎么处理?

Reply View the author
走钢丝
deepin
2020-11-12 01:27
#8
奢青

我系统中有文件:

/usr/lib/modules/5.4.50-amd64-desktop/updates/dkms/rtbth.ko

执行

zhu@zhu-PC:~$ sudo modprobe rtbth
zhu@zhu-PC:~$ init complete

加载的即是这个文件(我mv这个文件,再执行以上命令即加载不了)。

但把这个文件cp到.../kernel/drivers/bluetooth/重启还是不会自动加载。


请问怎么处理?

我的回复是不是被论坛特别处理过,导致别人看不到啊?[困惑]


Reply View the author
Shinglee
deepin
2020-11-12 17:52
#9
奢青

我系统中有文件:

/usr/lib/modules/5.4.50-amd64-desktop/updates/dkms/rtbth.ko

执行

zhu@zhu-PC:~$ sudo modprobe rtbth
zhu@zhu-PC:~$ init complete

加载的即是这个文件(我mv这个文件,再执行以上命令即加载不了)。

但把这个文件cp到.../kernel/drivers/bluetooth/重启还是不会自动加载。


请问怎么处理?

这应该就是引导内核,没有加上蓝牙驱动,有个办法可以加上并重新打包,但是很危险不建议使用
建议你直接升级内核把,官方最新的5.8内核不是出来么,升级上去

Reply View the author
disburden
deepin
2020-11-14 10:47
#10

哇,看你们讨论感觉很厉害,瑟瑟发抖

我也遇到了开机蓝牙不会自动连接我的蓝牙小音箱的问题,我只要把音箱关掉,重新打开一下他就能连上.

看到说要升级内核什么的.吓尿了,感觉我以后只能每次开机的时候开关一下音箱了.

坐等看有没有现成的解决办法.希望系统能尽快出个升级包解决一下.

Reply View the author