Ubuntu connection problems with Bluetooth mouse and keeping Bluetooth connected

Source: Internet
Author: User
Keywords Bluetooth exist keep work can
Tags apt bluetooth bluetooth connected bluetooth connection connect connected connecting etc

Some people report problems connecting a Bluetooth mouse and maintaining a Bluetooth connection. It is very easy to solve the problem. You only need to do the work described below. The mouse can automatically connect when you open it and return from power saving mode.

Install Required Software (package required for installation)

sudo apt install bluez-utils http://www.aliyun.com/zixun/aggregation/19512.html ">nano

Making Tje Hidd daemon start in the boot process (enables Tje Hidd daemon to start on boot)

sudo nano/etc/rc.local

Add the following line to/etc/rc.local:

Add the following line to the/etc/rc.local:

/usr/bin/hidd--server

Make sure/etc/rc.local ends with exit 0.

Confirm that/etc/rc.local ends with exit 0, inserts the Bluetooth device and starts the Bluez-utils:

Sudo/etc/init.d/bluez-utils restart

Restart the Hidd service program by restarting or opening a terminal and entering the following command:

sudo hidd--server

You can now connect to the mouse:

sudo hidd--search

Keep retrying this command until the mouse connection succeeds. You should keep closing and turning on the mouse or pressing the restart button for a period of time. Another possible way to connect is to look for the Bluetooth address of a Bluetooth device, usually at the bottom of the mouse, and indicate the type:

sudo hidd--connect 00:01:02:03:04:05

You should replace these numbers with the numbers you find on your mouse. Your mouse can now connect automatically when you open it, or when you restart the mouse. Some people use Hcitools to do some work, may conflict with the Hidd program and cause some problems.

Approach is tested using: Test successful version:

Kubuntu 6.06 Dapper
Kernel kernel: 2.6.15-26-386
bluez-utils:2.24

Comments Notes

You don't need to edit rc.local. A better approach is to edit the/etc/default/bluez-utils and set the hidd_enabled to 1 and add--connect deviceaddr options to the hidd_options, modifying the/etc/default/ Bluez-utils may work well. But this method in the article is really optimized for the mouse, and it can make the mouse work correctly.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.