thanhlev / keyboard_mouse_emulate_on_raspberry

Bluetooth Keyboard Mouse Emulator on Raspberry Pi
https://thanhlev.github.io/
MIT License
297 stars 103 forks source link

device_confirm_passkey: Operation not permitted #27

Open benjaminmetzler opened 3 years ago

benjaminmetzler commented 3 years ago

I'm attempting to connect my Raspberry Pi to an Nvidia Shield to act as a keyboard. I can get it connected, but if either side disconnects (e.g. reboots) any reconnect attempts fail. Below are the systemctl status logs with the errors. Thoughts?

May 09 21:19:33 raspberrypi systemd[1]: Started Bluetooth service. May 09 21:19:33 raspberrypi bluetoothd[1514]: Starting SDP server May 09 21:19:33 raspberrypi bluetoothd[1514]: Excluding (cli) input May 09 21:19:33 raspberrypi bluetoothd[1514]: Bluetooth management interface 1.18 initialized May 09 21:19:33 raspberrypi bluetoothd[1514]: Sap driver initialization failed. May 09 21:19:33 raspberrypi bluetoothd[1514]: sap-server: Operation not permitted (1) May 09 21:20:02 raspberrypi bluetoothd[1514]: No agent available for request type 2 May 09 21:20:02 raspberrypi bluetoothd[1514]: device_confirm_passkey: Operation not permitted May 09 21:20:45 raspberrypi bluetoothd[1514]: No agent available for request type 2 May 09 21:20:45 raspberrypi bluetoothd[1514]: device_confirm_passkey: Operation not permitted

thanhlev commented 3 years ago

Since this's not a commercial product, so you have to learn the code and optimize it to auto-detect disconnection , do cleanup and reconnect.