[sisyphus] bluetooth

Leonid Krivoshein klark.devel gmail.com
9 04:02:06 MSK 2019


!


09.11.2019 0:23,   :
>  !
>
>      bluetooth?
>
> ,  ?
>
>        ,     
> .
>

    ,      .  
       2.5    
 Apple.   , ... ,     , 
    . :-) ,     
    ...


-- 
Best regards,
Leonid Krivoshein.

-----------   -----------
   HTML  ...
URL: <http://lists.altlinux.org/pipermail/sisyphus/attachments/20191109/b5ff724c/attachment.html>
-----------   -----------
???? ?? Apple Magic  ??? MacBook Air
==================================================

0. ?? :

$ cat /etc/debian_version
8.6

$ uname -vm
#1 SMP PREEMPT RT Debian 4.8.11-1~bpo8+1 (2016-12-14) x86_64


1. ? ???? ??:

# apt-get install bluez input-utils


2. ??? ???  ?????

# systemctl enable bluetooth
# systemctl start bluetooth


3. ?? ?????:

# modprobe hid_magicmouse
# hciconfig hci0 reset
# hciconfig hci0 up


4. ???:

# bluetoothctl
[bluetooth]# list
Controller 68:A8:6D:03:6A:91 chameleon [default]
[bluetooth]# select 68:A8:6D:03:6A:91
[bluetooth]# power on
[bluetooth]# scan on
[bluetooth]# agent on
[bluetooth]# devices
Device 28:CF:DA:BF:0C:54 klark - ???
[bluetooth]# pair 28:CF:DA:BF:0C:54
[bluetooth]# trust 28:CF:DA:BF:0C:54
[bluetooth]# connect 28:CF:DA:BF:0C:54
[bluetooth]# exit

???  :
"68:A8:6D:03:6A:91" - -?? bluetooth-??
"28:CF:DA:BF:0C:54" - -?? bluetooth-??

5. ?? ??? ?? ??  ??, ?
?? "??" ? ?? PIN-.
?? ?? ? ???  ? ?????? :

# lsinput | less
. . .
/dev/input/event15
	bustype : BUS_BLUETOOTH
	vendor  : 0x5ac
	product : 0x30d
	version : 774
	name    : "klark - ???"
	phys    : "68:a8:6d:03:6a:91"
	uniq    : "28:cf:da:bf:0c:54"
. . .

?  "??", name  bustype ?? ??? ??.
?  ?? ID-?????? - "/dev/input/event15".
???? ??? ID  PIN-  ??? (0000) 
?? ????? ??????:

echo "/dev/input/event15 0000" >> /var/lib/bluetooth/68\:A8\:6D\:03\:6A\:91\pincodes

6. ? ? ??:

# bluetoothctl
[bluetooth]# select 68:A8:6D:03:6A:91
[bluetooth]# power on
[bluetooth]# scan on
[bluetooth]# agent on
[bluetooth]# pair 28:CF:DA:BF:0C:54
[bluetooth]# trust 28:CF:DA:BF:0C:54
[bluetooth]# connect 28:CF:DA:BF:0C:54
[bluetooth]# exit

?? ? ?? ? ?? ? ?????
? ??  ?? ?, ??? "????".
??? ???  ????  ? ???.

7. input-utils  ???,    ????.

8. ???? ??? ???:

http://archlinux.org.ru/forum/topic/13753/
http://ru-linux.livejournal.com/2911405.html
https://wiki.ubuntu.com/Multitouch/AppleMagicMouse
https://wiki.ubuntu.com/Multitouch/Testing/CheckingMTDevice
https://wiki.archlinux.org/index.php/Bluetooth_mouse
https://wiki.archlinux.org/index.php/Bluetooth#Bluetoothctl



Sisyphus