gvalkov/python-evdev

Error 11 : write could not complete without blocking

mangemayur opened this issue · 0 comments

I am using evedev for Raspberry Pi Zero : Bluetooth HID Proxy - primarily based on https://github.com/Hacksore/bt-hid-proxy

everything works fine when i am in windows - or even when i switch the OS things works smooth

but when i am in bios / UEFI setting -> to make any bios changes - basically either to switch boot options or providing boot locker key to boot -> i run into error

Error 11 : write could not complete without blocking -> the error is in the write method

can some one please help me to fix it or any work around

def send_keys(packet):
    with open(hid_path, "wb+") as hid_handle:
        assert len(packet) == 8
        hid_handle.write(bytearray(packet))