Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ sudo usermod -G bluetooth -a <your_username>
- $ sudo systemctl restart bluetooth
- $ sudo systemctl enable bluetooth
- Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.
- Executing: /lib/systemd/systemd-sysv-install enable bluetooth
- $ bluetoothctl
- [NEW] Controller 00:1B:63:43:9B:E6 imac [default]
- [NEW] Device 00:F4:8D:2C:BD:27 STR-DH190
- Agent registered
- [STR-DH190]# help
- Menu main:
- Available commands:
- -------------------
- advertise Advertise Options Submenu
- scan Scan Options Submenu
- gatt Generic Attribute Submenu
- list List available controllers
- show [ctrl] Controller information
- select <ctrl> Select default controller
- devices List available devices
- paired-devices List paired devices
- system-alias <name> Set controller alias
- reset-alias Reset controller alias
- power <on/off> Set controller power
- pairable <on/off> Set controller pairable mode
- discoverable <on/off> Set controller discoverable mode
- agent <on/off/capability> Enable/disable agent with given capability
- default-agent Set agent as the default one
- advertise <on/off/type> Enable/disable advertising with given type
- set-alias <alias> Set device alias
- scan <on/off> Scan for devices
- info [dev] Device information
- pair [dev] Pair with device
- trust [dev] Trust device
- untrust [dev] Untrust device
- block [dev] Block device
- unblock [dev] Unblock device
- remove <dev> Remove device
- connect <dev> Connect device
- disconnect [dev] Disconnect device
- menu <name> Select submenu
- version Display version
- quit Quit program
- exit Quit program
- help Display help about this program
- [STR-DH190]# remove 00:F4:8D:2C:BD:27
- [CHG] Device 00:F4:8D:2C:BD:27 ServicesResolved: no
- Device has been removed
- [CHG] Device 00:F4:8D:2C:BD:27 Connected: no
- [DEL] Device 00:F4:8D:2C:BD:27 STR-DH190
- [bluetooth]# scan on
- Discovery started
- [CHG] Controller 00:1B:63:43:9B:E6 Discovering: yes
- [NEW] Device 00:F4:8D:2C:BD:27 STR-DH190
- [bluetooth]# pair 00:F4:8D:2C:BD:27
- Attempting to pair with 00:F4:8D:2C:BD:27
- [CHG] Device 00:F4:8D:2C:BD:27 Connected: yes
- Request PIN code
- [STR-1m[agent] Enter PIN code: xxxx
- [CHG] Device 00:F4:8D:2C:BD:27 Modalias: bluetooth:xxxxxxxxxxxxxxxx
- [CHG] Device 00:F4:8D:2C:BD:27 ServicesResolved: yes
- [CHG] Device 00:F4:8D:2C:BD:27 Paired: yes
- Pairing successful
- [CHG] Device 00:F4:8D:2C:BD:27 ServicesResolved: no
- [CHG] Device 00:F4:8D:2C:BD:27 Connected: no
- [CHG] Device 00:F4:8D:2C:BD:27 RSSI: -56
- [CHG] Device 00:F4:8D:2C:BD:27 RSSI: -48
- [bluetooth]# trust 00:F4:8D:2C:BD:27
- [CHG] Device 00:F4:8D:2C:BD:27 Trusted: yes
- Changing 00:F4:8D:2C:BD:27 trust succeeded
- [bluetooth]# list
- Controller 00:1B:63:43:9B:E6 imac [default]
- [CHG] Device 00:F4:8D:2C:BD:27 RSSI: -56
- [bluetooth]# system-alias big-imac
- Changing big-imac succeeded
- [CHG] Controller 00:1B:63:43:9B:E6 Alias: big-imac
- [bluetooth]# info 00:F4:8D:2C:BD:27
- Device 00:F4:8D:2C:BD:27 (public)
- Name: STR-DH190
- Alias: STR-DH190
- Class: 0x00240414
- Icon: audio-card
- Paired: yes
- Trusted: yes
- Blocked: no
- Connected: no
- LegacyPairing: yes
- UUID: Serial Port (...)
- UUID: Audio Sink (...)
- UUID: A/V Remote Control Target (...)
- UUID: A/V Remote Control (...)
- UUID: PnP Information (...)
- Modalias: bluetooth:xxxxxxxxxxxx
- RSSI: -56
- [bluetooth]# exit
- Agent unregistered
- [DEL] Controller 00:1B:63:43:9B:E6 big-imac [default]
- phil@imac:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement