在UBUNTU中禁止bluetooth

机器上没有蓝牙,而且确认不会用到蓝牙功能,那就可以禁止它。
在ubuntu 7.10里,简单说,可以用3步禁止:
1、修改/etc/modprobe.d/blacklist,添加一行:

blacklist hci_usb

2、在系统-首选项-会话中,禁止掉蓝牙管理器。
3、在系统-系统管理-任务中,禁止掉蓝牙设备管理。

本文内容来自Disable Bluetooth on Ubuntu 7.10:

I’ve been troubleshooting some oddities on my machine this afternoon and one thing I’ve done to try and find some conflicts is remove some often unneeded kernel modules. I thought I would outline quickly how to disable and permanently remove the bluetooth module for those that don’t use it. I realize I don’t think I’ve used the bluetooth system on my machine for months, so I may as well just disable the module permanently.

Permanently disable the Bluetooth module

To disable the bluetooth module from being loaded at boot time we’ll need to add it to the system module blacklist. Basically your system keeps a list of modules that need to be blacklisted for various reasons, often those that cause problems, and we’ll add this to that list.

sudo vim /etc/modprobe.d/blacklist

append this line to the end of the file:

blacklist hci_usb

You also may want to turn off the bluetooth services within the desktop as well. Granted they shouldn’t be able to do anything if the module support is not loaded underneath, but it doesn’t hurt.

Disable the bluetooth services

System > Preferences > Sessions should have a listing for the bluetooth service. You may want to uncheck this box or even remove the listing altogether.

System > Administration > Services also contains a listing for starting up the bluetooth system at boot time. You may also want to uncheck this box.

Between blacklisting the module and removing the services from starting up this should disable the bluetooth system on Ubuntu. If you don’t use it, don’t load it. It is just going to take up a bit more of your resources and, for those with laptops, will save power as will if you often go unplugged.


已发布

分类

来自

标签:

评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注