Set up keyboard logitech k380 on linux mint 21

Để kết nối bàn phím vào linux mint ta làm như sau:

dt@dt-msi:~$ bluetoothctl
Agent registered
[bluetooth]# agent on
Agent is already registered

[bluetooth]# scan on
Failed to start discovery: org.bluez.Error.InProgress
[DEL] Device 3B:03:BF:2F:D6:1E 3B-03-BF-2F-D6-1E
[DEL] Device 69:E8:00:EC:6D:34 69-E8-00-EC-6D-34
[DEL] Device 44:A9:26:DD:42:39 44-A9-26-DD-42-39
[DEL] Device 72:53:B8:62:B0:88 72-53-B8-62-B0-88
[DEL] Device 40:1E:14:66:BA:F4 40-1E-14-66-BA-F4
[CHG] Device F4:73:35:7F:06:B4 LegacyPairing: yes
[CHG] Device F4:73:35:7F:06:B4 RSSI: -76
[CHG] Device F4:73:35:7F:06:B4 Class: 0x00002540
[CHG] Device F4:73:35:7F:06:B4 Icon: input-keyboard    <--- my keyboard and MAC
[NEW] Device 44:A9:26:DD:42:39 44-A9-26-DD-42-39
[NEW] Device 72:53:B8:62:B0:88 72-53-B8-62-B0-88
[NEW] Device 3B:03:BF:2F:D6:1E 3B-03-BF-2F-D6-1E
[NEW] Device 69:E8:00:EC:6D:34 69-E8-00-EC-6D-34
[NEW] Device 40:1E:14:66:BA:F4 40-1E-14-66-BA-F4
[CHG] Device F4:73:35:7F:06:B4 RSSI: -65

[bluetooth]# scan off
[CHG] Device 40:1E:14:66:BA:F4 TxPower is nil
[CHG] Device 40:1E:14:66:BA:F4 RSSI is nil
[CHG] Device 69:E8:00:EC:6D:34 TxPower is nil
[CHG] Device 69:E8:00:EC:6D:34 RSSI is nil
[CHG] Device 3B:03:BF:2F:D6:1E RSSI is nil
[CHG] Device 72:53:B8:62:B0:88 TxPower is nil
[CHG] Device 72:53:B8:62:B0:88 RSSI is nil
[CHG] Device 44:A9:26:DD:42:39 TxPower is nil
[CHG] Device 44:A9:26:DD:42:39 RSSI is nil
[CHG] Device F4:73:35:7F:06:B4 RSSI is nil
[CHG] Device 8C:EA:48:6D:A8:75 RSSI is nil
[CHG] Controller A0:51:0B:3B:AA:AA Discovering: no
Discovery stopped

[bluetooth]# trust F4:73:35:7F:06:B4
Changing F4:73:35:7F:06:B4 trust succeeded
[DEL] Device 44:A9:26:DD:42:39 44-A9-26-DD-42-39
[DEL] Device 72:53:B8:62:B0:88 72-53-B8-62-B0-88
[DEL] Device 3B:03:BF:2F:D6:1E 3B-03-BF-2F-D6-1E
[DEL] Device 69:E8:00:EC:6D:34 69-E8-00-EC-6D-34
[DEL] Device 40:1E:14:66:BA:F4 40-1E-14-66-BA-F4
[DEL] Device 8C:EA:48:6D:A8:75 [TV] Samsung AU7000 50 TV

[bluetooth]# pair F4:73:35:7F:06:B4
Attempting to pair with F4:73:35:7F:06:B4
[CHG] Device F4:73:35:7F:06:B4 Connected: yes
[agent] Passkey: 208447                  <-- type passkey on my keyboard
[agent] Passkey: 208447
[agent] Passkey: 208447
[agent] Passkey: 208447
[agent] Passkey: 208447
[agent] Passkey: 208447
[agent] Passkey: 208447
[CHG] Device F4:73:35:7F:06:B4 Paired: yes
Pairing successful
[CHG] Device F4:73:35:7F:06:B4 Paired: no
[CHG] Device F4:73:35:7F:06:B4 Connected: no

[bluetooth]# connect F4:73:35:7F:06:B4
Attempting to connect to F4:73:35:7F:06:B4
[CHG] Device F4:73:35:7F:06:B4 Connected: yes
[CHG] Device F4:73:35:7F:06:B4 Modalias: usb:v046DpB342d4201
[CHG] Device F4:73:35:7F:06:B4 UUIDs: 00001000-0000-1000-8000-00805f9b34fb
[CHG] Device F4:73:35:7F:06:B4 UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device F4:73:35:7F:06:B4 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device F4:73:35:7F:06:B4 ServicesResolved: yes
[CHG] Device F4:73:35:7F:06:B4 WakeAllowed: yes
[CHG] Device F4:73:35:7F:06:B4 Paired: yes
Connection successful

Như vậy là xong rồi nhé ^_^.