2007-06-07

Linux下使用藍芽滑鼠

最近買了ACROX藍芽滑鼠,xp或vista使用上都沒有問題,倒是linux一直無法使用,終於解決了。
方法如下
# hcitool scan<------尋找藍芽裝置 Scanning ... 00:12:A1:60:94:3C Bluetooth Mouse<------找到藍芽滑鼠 # hidd --connect 00:12:A1:60:94:3C <------輸入指令與藍芽裝置連線

修改 /etc/bluetooth/rfcomm.conf 檔:
...
rfcomm0 {
# Automatically bind the device at startup
bind yes; ← 改為 yes

# Bluetooth address of the device
device 00:12:A1:60:94:3C; ← 改為滑鼠的硬體位址

# RFCOMM channel for the connection
channel 1;

# Description of the connection
comment "Bluetooth mouse"; ← 註解, 可不改
}

設定開機即啟動 hidd
# chkconfig hidd on

原本如上設定, 在開機之後應該就能驅動藍芽滑鼠, 卻發現不能正常運作。因此
又如下修改 /etc/rc.d/rc.local 加入下面 2 行:


sleep 5
/usr/bin/hidd --connect 00:12:A1:60:94:3C


如果開機後,還是不會自行啟動藍芽滑鼠
就是再執行
# hidd --connect 00:12:A1:60:94:3C 即可

ps.記得藍芽裝置要開啟喔!