Skip to content

Kvmd-otg can't write UDC #1

Description

@finzzz

I'm encountering this issue with nanopi running armbian jammy, this cause keyboard and mouse to not work. I'm not familiar with this, so not sure how to fix it.

[2022-12-31 22:11:37 kvmd-otg.service] --- kvmd.apps.otg                     INFO --- WRITE --- /sys/kernel/config/usb_gadget/kvmd/UDC
[2022-12-31 22:11:37 kvmd-otg.service] --- OSError: [Errno 16] Device or resource busy
[2022-12-31 22:11:37 kvmd-otg.service] --- During handling of the above exception, another exception occurred:
[2022-12-31 22:11:37 kvmd-otg.service] --- Traceback (most recent call last):
[2022-12-31 22:11:37 kvmd-otg.service] ---   File "/usr/bin/kvmd-otg", line 9, in <module>
[2022-12-31 22:11:37 kvmd-otg.service] ---     main()
[2022-12-31 22:11:37 kvmd-otg.service] ---   File "/usr/local/lib/python3.10/dist-packages/kvmd/apps/otg/__init__.py", line 347, in main
[2022-12-31 22:11:37 kvmd-otg.service] ---     options.cmd(config)
[2022-12-31 22:11:37 kvmd-otg.service] ---   File "/usr/local/lib/python3.10/dist-packages/kvmd/apps/otg/__init__.py", line 277, in _cmd_start
[2022-12-31 22:11:37 kvmd-otg.service] ---     _write(join(gadget_path, "UDC"), udc)
[2022-12-31 22:11:37 kvmd-otg.service] ---   File "/usr/local/lib/python3.10/dist-packages/kvmd/apps/otg/__init__.py", line 87, in _write
[2022-12-31 22:11:37 kvmd-otg.service] ---     with open(path, "w") as param_file:
[2022-12-31 22:11:37 kvmd-otg.service] --- OSError: [Errno 16] Device or resource busy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions