Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. $ sudo usermod -G bluetooth -a <your_username>
  2.  
  3. $ sudo systemctl restart bluetooth
  4. $ sudo systemctl enable bluetooth
  5. Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.
  6. Executing: /lib/systemd/systemd-sysv-install enable bluetooth
  7.  
  8. $ bluetoothctl
  9. [NEW] Controller 00:1B:63:43:9B:E6 imac [default]
  10. [NEW] Device 00:F4:8D:2C:BD:27 STR-DH190
  11. Agent registered
  12. [STR-DH190]# help
  13. Menu main:
  14. Available commands:
  15. -------------------
  16. advertise Advertise Options Submenu
  17. scan Scan Options Submenu
  18. gatt Generic Attribute Submenu
  19. list List available controllers
  20. show [ctrl] Controller information
  21. select <ctrl> Select default controller
  22. devices List available devices
  23. paired-devices List paired devices
  24. system-alias <name> Set controller alias
  25. reset-alias Reset controller alias
  26. power <on/off> Set controller power
  27. pairable <on/off> Set controller pairable mode
  28. discoverable <on/off> Set controller discoverable mode
  29. agent <on/off/capability> Enable/disable agent with given capability
  30. default-agent Set agent as the default one
  31. advertise <on/off/type> Enable/disable advertising with given type
  32. set-alias <alias> Set device alias
  33. scan <on/off> Scan for devices
  34. info [dev] Device information
  35. pair [dev] Pair with device
  36. trust [dev] Trust device
  37. untrust [dev] Untrust device
  38. block [dev] Block device
  39. unblock [dev] Unblock device
  40. remove <dev> Remove device
  41. connect <dev> Connect device
  42. disconnect [dev] Disconnect device
  43. menu <name> Select submenu
  44. version Display version
  45. quit Quit program
  46. exit Quit program
  47. help Display help about this program
  48. [STR-DH190]# remove 00:F4:8D:2C:BD:27
  49. [CHG] Device 00:F4:8D:2C:BD:27 ServicesResolved: no
  50. Device has been removed
  51. [CHG] Device 00:F4:8D:2C:BD:27 Connected: no
  52. [DEL] Device 00:F4:8D:2C:BD:27 STR-DH190
  53. [bluetooth]# scan on
  54. Discovery started
  55. [CHG] Controller 00:1B:63:43:9B:E6 Discovering: yes
  56. [NEW] Device 00:F4:8D:2C:BD:27 STR-DH190
  57. [bluetooth]# pair 00:F4:8D:2C:BD:27
  58. Attempting to pair with 00:F4:8D:2C:BD:27
  59. [CHG] Device 00:F4:8D:2C:BD:27 Connected: yes
  60. Request PIN code
  61. [STR-1m[agent] Enter PIN code: xxxx
  62. [CHG] Device 00:F4:8D:2C:BD:27 Modalias: bluetooth:xxxxxxxxxxxxxxxx
  63. [CHG] Device 00:F4:8D:2C:BD:27 ServicesResolved: yes
  64. [CHG] Device 00:F4:8D:2C:BD:27 Paired: yes
  65. Pairing successful
  66. [CHG] Device 00:F4:8D:2C:BD:27 ServicesResolved: no
  67. [CHG] Device 00:F4:8D:2C:BD:27 Connected: no
  68. [CHG] Device 00:F4:8D:2C:BD:27 RSSI: -56
  69. [CHG] Device 00:F4:8D:2C:BD:27 RSSI: -48
  70. [bluetooth]# trust 00:F4:8D:2C:BD:27
  71. [CHG] Device 00:F4:8D:2C:BD:27 Trusted: yes
  72. Changing 00:F4:8D:2C:BD:27 trust succeeded
  73. [bluetooth]# list
  74. Controller 00:1B:63:43:9B:E6 imac [default]
  75. [CHG] Device 00:F4:8D:2C:BD:27 RSSI: -56
  76. [bluetooth]# system-alias big-imac
  77. Changing big-imac succeeded
  78. [CHG] Controller 00:1B:63:43:9B:E6 Alias: big-imac
  79. [bluetooth]# info 00:F4:8D:2C:BD:27
  80. Device 00:F4:8D:2C:BD:27 (public)
  81. Name: STR-DH190
  82. Alias: STR-DH190
  83. Class: 0x00240414
  84. Icon: audio-card
  85. Paired: yes
  86. Trusted: yes
  87. Blocked: no
  88. Connected: no
  89. LegacyPairing: yes
  90. UUID: Serial Port (...)
  91. UUID: Audio Sink (...)
  92. UUID: A/V Remote Control Target (...)
  93. UUID: A/V Remote Control (...)
  94. UUID: PnP Information (...)
  95. Modalias: bluetooth:xxxxxxxxxxxx
  96. RSSI: -56
  97. [bluetooth]# exit
  98. Agent unregistered
  99. [DEL] Controller 00:1B:63:43:9B:E6 big-imac [default]
  100. phil@imac:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement