Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kvmd-otg can't write UDC #1

Open
finzzz opened this issue Dec 31, 2022 · 4 comments
Open

Kvmd-otg can't write UDC #1

finzzz opened this issue Dec 31, 2022 · 4 comments

Comments

@finzzz
Copy link

finzzz commented Dec 31, 2022

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
@finzzz
Copy link
Author

finzzz commented Dec 31, 2022

Which also leads to this

FileExistsError: [Errno 17] File exists: '/sys/kernel/config/usb_gadget/kvmd

@hzyitc
Copy link
Owner

hzyitc commented Dec 31, 2022

Which version do you use?

@finzzz
Copy link
Author

finzzz commented Dec 31, 2022

Do you mean kvmd version? 3.142

@hzyitc
Copy link
Owner

hzyitc commented Jan 2, 2023

Please reboot your system. And check again. kvmd-otg.service can't start twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants