Open electricworry opened 7 months ago
The difference between running interactively and non-interactively would appear to be the call to agent register
at client/main.c:491
I've not dug into the differences that this causes, but I can confirm that if I modify my build of bluez to call agent_register
regardless of mode then LinkKey is properly recorded when paired in non-interactive mode.
I've got an issue where I cannot use
bluetoothctl
non-interactive commands to properly pair my device (an 8BitDo controller). If I pair in interactive mode then the device pairs properly storing the LinkKey data for the device and also I notice that the store_hint field is 1 in the output:Good. But it I do everything the same but attempt to use non-interactive mode it doesn't store the LinkKey:
It does 'pair' but because the LinkKey isn't stored in /var/lib/bluetooth on a reboot I need to go through pairing again.
Any ideas?