From 037cf084be6d683a77e0db4711cef1c818c54b89 Mon Sep 17 00:00:00 2001 From: lhark Date: Fri, 27 Aug 2021 20:20:20 +0200 Subject: [PATCH] big bluetooth blob --- how_to | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/how_to b/how_to index bf29444..3c9ed6d 100644 --- a/how_to +++ b/how_to @@ -1156,9 +1156,45 @@ sway / wayland: swaymsg -t get_inputs | jq 'map(select(.type == "keyboard"))[0].xkb_active_layout_name' Bluetooth: - Get access to deprecated gatttool and hcitool: + Get access to deprecated gatttool, hcitool or sdptool: trizen -S bluez-utils-compat Add `--disable-systemd` to ./configure command on Artix + Setup new device with bluetoothctl: + # https://wiki.archlinux.org/title/Bluetooth#Pairing + bluetoothctl + [bluetooth]# power on + [bluetooth]# scan on + [bluetooth]# pair + Fix `Failed to connect: org.bluez.Error.Failed`: + # In my case it was apparently pulseaudio's fault oO + sudo pacman -S pulseaudio-bluetooth + pactl load-module module-bluetooth-discover + Send files (WIP, still not working here): + # https://www.garron.me/en/go2linux/how-transfer-files-bluetooth-linux.html + # https://wiki.archlinux.org/title/ObexFTP + OBEX Object Push method: + trizen -S obexftp + sdptool search --bdaddr 00:18:31:12:3A:3F OPUSH | grep -i channel + # `--nopath --noconn --uuid none` result in making an Obex Push request + obexftp --nopath --noconn --uuid none --bluetooth --channel --put + OBEX File Transfer method: + trizen -S obexftp + sdptool search --bdaddr 00:18:31:12:3A:3F FTP | grep -i channel + # `--channel` (and so sdptool search) might be superfluous (autodetect?) + obexftp --bluetooth --channel --put + Blueman method: + sudo pacman -S blueman + blueman-sendto --device= + # Also, for the GUI: + blueman-manager + ussp-push method: + trizen -S ussp-push + ussp-push + Receive files: + # https://gitlab.com/obexpushd/mainline + # Not even packaged on the AUR for now + Bluetooth tools recap' (2007): + # https://hanishkvc.wordpress.com/2007/05/16/short-and-simple-commandline-bluetooth-in-any-new-linux-distros/ Extract debian .deb package: ar x .deb