big bluetooth blob

This commit is contained in:
lhark 2021-08-27 20:20:20 +02:00
parent fa398015d5
commit 037cf084be

38
how_to
View file

@ -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 <MAC>
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 <MAC> --channel <CHANNEL> --put <FILE>
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 <MAC> --channel <CHANNEL> --put <FILE>
Blueman method:
sudo pacman -S blueman
blueman-sendto --device=<MAC> <FILE>
# Also, for the GUI:
blueman-manager
ussp-push method:
trizen -S ussp-push
ussp-push <MAC> <LOCAL FILE> <REMOTE FILE NAME>
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 <package>.deb