Linux Disable Bluetooth [ Bluetooth Input Devices (hidd) ]

How do I disable bluethooth support (including bluethooth based devices) under Linux operating systems?

Bluetooth provides another metod to transfer information between various devices such as mobile phones, laptops, PDAs, PCs, printers, digital cameras, etc over a short-range wireless link.

ADVERTISEMENTS

Remove Bluetooth Hardware

Removal of bluetooth hardware module is the only way to ensure that the Bluetooth wireless remains disabled. See your systems’s hardware manual which should contain information on its bluetooth capabilities. Avoid purchasing equipment that comes with bluetooth.

Disable Bluetooth Service

Type the following commands under RHEL / CentOS / Fedora / Red Hat Linux:
# /etc/init.d/bluetooth stop
# chkconfig bluetooth off

If you are using Debian / Ubuntu Linux use rcconf command to disable bluetooth service:
# update-rc.d bluetooth remove

Disable hidd Service

The hidd service used to provide support for Bluetooth input devices. If you don’t use bluetooth based keyboard or mouse, disable it:
# /etc/init.d/hidd stop
# chkconfig hidd off

Disable Linux Kernel Bluetooth Modules / Driver

Type the following command to disable the driver:
The kernel’s module loading system can be configured to prevent loading of the Bluetooth module.
echo 'alias net-pf-31 off' >> /etc/modprobe.conf

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
7 comments… add one
  • Philippe Petrinko Aug 14, 2009 @ 8:37

    Hello Vivek,

    Thanks for the article.
    I would like to ask you:

    1) Section : “If you are using Debian / Ubuntu Linux use rcconf command to disable bluetooth
    service”
    It seems to be odd to present a [update-rc.d] command after mentionning [rcconf].
    /* I know that [rcconf] is just a text-interface to [update-rc.d] */

    I mean if you use a update-rc.d command, you can do it without rcconf.

    2) Section “Disable hidd Service”
    This seems to be distribution-specific.
    Under Debian Lenny 5.0.x, bluetooth service is named “bluetooth”, not hidd.

    Command is (under root login or via sudo command of course)
    /etc/init.d/bluetooth stop

    Was this section intended for a specific distribution?

    Thanks for you work and your answer in advance.

    — Philippe

    • Yong Aug 3, 2011 @ 10:30

      Thanks, I am still thinking of how to remove the bluetooth by apt-get remove

      but seems it’s not installed as package.

      anyway now it’s not running at boot time,then it’s unnecessary to remove it .

      –Yong

  • Philippe Petrinko Aug 14, 2009 @ 8:51

    Another tool: [sysv-rc-conf]: this command has a text-based user interface, (no need for X11-X Window).
    It allows to choose more precisely which service will run under which runlevel.
    It can interactively start or stop any installed service. (use the + / – key).
    It is not or less Linux distribution-specific.

    — Philippe

  • 🐧 nixCraft Aug 14, 2009 @ 10:26

    @ Philippe

    Yes, this section intended for RHEL / CentOS / Fedora / Red Hat users only.

  • Philippe Petrinko Aug 24, 2009 @ 12:32

    To Vivek:
    > Yes, this section intended for RHEL / CentOS / Fedora / Red Hat users only.

    Than, it would be better to make it clearer in labelling each section with the corresponding distribution name. Otherwise, it is unclear and brings to misunderstanding, as long as the main title says “Linux”.

    TIA,

    — Philippe

  • Somy Jul 3, 2013 @ 4:51

    hi all
    I have to install hidd service on my linux (CentOS) because it didn’t install on my linux.
    So,what’s the package name?
    I want to install it with command “yum install … ”
    TnX

  • Zaheer Ahmad Khan Dec 23, 2013 @ 23:34

    Hello,
    i have installed centos, fresh installation, connect blutooth keyboard it was working fine, untill i reboot,
    after turning on again just after a minute bluetooth stop working, it shows icon, rpms installed, i didn’t update blutooth related rpms, didn’t update kernel also, when i tried to add new device, it goes on searching and seaching but search nothing.
    i am using centos 6.5
    what could be the isue?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.