Created
April 27, 2020 17:18
-
-
Save diegodorado/7026238ebccb58094e8a93a7c6de04c5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# how to pair a fucking bluetooth keyboard | |
# first, make sure bluetooth service is on | |
# then, enter bluetoothctl | |
bluetoothctl | |
#just in case | |
power on | |
#filter keyboards | |
agent KeyboardOnly | |
default-agent | |
#make it pairable | |
pairable on | |
# Changing pairable on succeeded | |
# now, start scan ... pairable devices will start to show | |
scan on | |
# Discovery started | |
# [CHG] Controller AC:2B:6E:D6:36:29 Discovering: yes | |
# make your devices discoverable... with apple keyboard | |
# you have to hold power putton till led blinks (and keep it pressed) | |
# ... | |
# once you know your device hash, say, 60:C5:47:14:80:05 | |
# [CHG] Device 60:C5:47:14:80:05 RSSI: -67 | |
# [CHG] Device 60:C5:47:14:80:05 Connected: no | |
# pair it | |
pair 60:C5:47:14:80:05 | |
# Attempting to pair with 60:C5:47:14:80:05 | |
# [CHG] Device 60:C5:47:14:80:05 Connected: yes | |
# [agent] PIN code: 130708 | |
# so now, you have to type this code on the keyboard | |
# and press enter... you should see this | |
# [CHG] Device 60:C5:47:14:80:05 Paired: yes | |
# Pairing successful | |
[CHG] Device 60:C5:47:14:80:05 Connected: no | |
# finally, trust and connect | |
# trust 60:C5:47:14:80:05 | |
# Changing 60:C5:47:14:80:05 trust succeeded | |
connect 60:C5:47:14:80:05 | |
# Attempting to connect to 60:C5:47:14:80:05 | |
# Connection successful | |
# now, fucking quit | |
quit | |
# so fucking simple! fucking bluetooth technology |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment