2016년 10월 23일 일요일

OSMC 에서 BT 키보드 사용하기

$ sudo apt-get install bluez
$ sudo connmanctl enable bluetooth # 중요: 재부팅시 rfkill unblocked 로 설정
$ sudo bluetoothctl
[bluetooth]# power on
[bluetooth]# scan on
[CHG] Controller <어댑터 주소> Discovering: yes
[NEW] Device <키보드 주소> BSKBB22
[bluetooth]# scan off
[bluetooth]# agent KeyboardOnly
[bluetooth]# pair <키보드 주소>
[agent] PIN code: 362888 # 이 값은 pair 할 때마다 다름
# 키보드에서 362888 엔터를 입력
Pairing successful
[bluetooth]# trust <키보드 주소>
[bluetooth]# quit