藍牙滑鼠在ubuntu的連接方法
安裝驅動
sudo apt-get install bluez-utils
sudo /etc/init.d/bluez-utils restart
啟動服務並搜索藍牙設別(這時需要按一下v470鼠標的connect鍵)
sudo hidd --server
sudo hidd --search
一會你就可以看到這個設備的MAC碼 xx:xx:xx:xx:xx:xx
修改 /etc/default/bluetooth
sudo vi /etc/default/bluetooth
注意下面紅色的地方,那裡改成你鼠標的MAC碼,然後保存
# Defaults for bluez-utils
# This file supersedes /etc/default/bluez-pan. If
# that exists on your system, you should use this
# file instead and remove the old one. Until you
# do so, the contents of this file will be ignored.
# start bluetooth on boot?
# compatibility note: If this variable is not found bluetooth will
# start
BLUETOOTH_ENABLED=1
# This setting will switch HID devices (e.g mouse/keyboad) to HCI mode, that is
# you will have bluetooth functionality from your dongle instead of only HID.
# Note that not every bluetooth dongle is capable of switching back to HID
# mode, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=355497
HID2HCI_ENABLED=1
############ HIDD
#
# HID daemon
HIDD_ENABLED=1
HIDD_OPTIONS="--connect AA:BB:CC:DD:EE:FF --server"
# to make hidd always use a particular interface, use something
# like this, substituting the bdaddr of the interface:
# HIDD_OPTIONS="-i AA:BB:CC:DD:EE:FF --server"
設置開機自動連接鼠標,編輯rc.local
$ sudo gedit /etc/init.d/rc.local
在後面加上
hciconfig hci0 down
hciconfig hci0 up
hidd --search
保存
來源
sudo apt-get install bluez-utils
sudo /etc/init.d/bluez-utils restart
啟動服務並搜索藍牙設別(這時需要按一下v470鼠標的connect鍵)
sudo hidd --server
sudo hidd --search
一會你就可以看到這個設備的MAC碼 xx:xx:xx:xx:xx:xx
修改 /etc/default/bluetooth
sudo vi /etc/default/bluetooth
注意下面紅色的地方,那裡改成你鼠標的MAC碼,然後保存
# Defaults for bluez-utils
# This file supersedes /etc/default/bluez-pan. If
# that exists on your system, you should use this
# file instead and remove the old one. Until you
# do so, the contents of this file will be ignored.
# start bluetooth on boot?
# compatibility note: If this variable is not found bluetooth will
# start
BLUETOOTH_ENABLED=1
# This setting will switch HID devices (e.g mouse/keyboad) to HCI mode, that is
# you will have bluetooth functionality from your dongle instead of only HID.
# Note that not every bluetooth dongle is capable of switching back to HID
# mode, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=355497
HID2HCI_ENABLED=1
############ HIDD
#
# HID daemon
HIDD_ENABLED=1
HIDD_OPTIONS="--connect AA:BB:CC:DD:EE:FF --server"
# to make hidd always use a particular interface, use something
# like this, substituting the bdaddr of the interface:
# HIDD_OPTIONS="-i AA:BB:CC:DD:EE:FF --server"
設置開機自動連接鼠標,編輯rc.local
$ sudo gedit /etc/init.d/rc.local
在後面加上
hciconfig hci0 down
hciconfig hci0 up
hidd --search
保存
來源
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home