Skip to main content

Bluetooth

Bluetooth on VoidLinux

Using mascot

#!/usr/bin/fish
test -n "$argv[1]" && set user "$argv[1]" || set user hxd

mascot-config "Set up Bluetooth for user $user" |
mascot-config-xbps-package bluez installed |
mascot-config-runit-service --require 'Delegated("XBPS package \"bluez\"")' bluetoothd running |
mascot-config-group --require 'Delegated("XBPS package \"bluez\"")' bluetooth present -G "$user"

Connecting devices

  • TUI: bluetui

Pro Controller

  1. Restart bluetoothd
  2. Plug in USB-C cable to the controler
  3. Hold home button on the controller until it starts blinking fast
  4. Pair with using command line:
    bluetoothctl
    scan on
    # wait for scan to find device; try scan off/scan on if nothing poping up
    pair 98:B6:BB:E0:55:97
    connect 98:B6:BB:E0:55:97
    trust 98:B6:BB:E0:55:97
    devices
  5. May need to type yes to authorize agent request
  6. Use btmon to see if data is coming
98:B6:0B:E9:75:16 Pro Controller
98:B6:BB:E0:55:97 Pro Controller

PS3 Controller

If you get asked to enter pin, try 0000 or 1111, if that does not work try editing /etc/bluetooth/input.conf and restart the service:

ClassicBondedOnly=false
00:1E:3D:9A:A1:F4 Sony PLAYSTATION(R)3 Controller

Try:

  • Connect via USB, then disconnect, connect again while running bluetoothctl
  • It will ask to authorize service? For like 2 seconds... type yes?
  • [Sony PLAYSTATION(R)3 Controller]# Authorize service
    [Sony PLAYSTATION(R)3 Controller]# [agent] Authorize service 00001124-0000-1000-8000-00805f9b34fb (yes/no): yes

ThinkPad Wireless Keyboard

When connecting keyboard it does print code in the bluetoothctl console. Punch the number in the keyboard followed by enter to pair successfully.

If function keys are not working try switching from Android to PC mode using sliding switch on top of the keyboard.

D5:2F:2F:55:CB:69 TrackPoint Keyboard II

JBL speaker

xi libspa-bluetooth
# restart wireplumber