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

Freezes when running command #47

Open
CppBunny opened this issue Feb 29, 2016 · 2 comments
Open

Freezes when running command #47

CppBunny opened this issue Feb 29, 2016 · 2 comments

Comments

@CppBunny
Copy link

Hey!

Just patched and built a kernel for my zenwatch 2 with this patch and now the files /dev/hidg0 and /dev/hidg1 exist (i have chmodded them) but when I'm trying to run a preview command from your script like "echo a | ./hid-gadget-test /dev/hidg0 keyboard" it just freezes and does nothing at all :/

Any idea on how to fix this?

Thanks!

@pelya
Copy link
Owner

pelya commented Mar 2, 2016

Maybe try to disable SELinux? Does your watch have USB port to plug into PC?

On Tue, Mar 1, 2016 at 12:44 AM, nnvt notifications@github.com wrote:

Hey!

Just patched and built a kernel for my zenwatch 2 with this patch and now
the files /dev/hidg0 and /dev/hidg1 exist (i have chmodded them) but when
I'm trying to run a preview command from your script like "echo a |
./hid-gadget-test /dev/hidg0 keyboard" it just freezes and does nothing at
all :/

Any idea on how to fix this?

Thanks!


Reply to this email directly or view it on GitHub
#47.

@simondankelmann
Copy link

You could also try connecting your Phone as Midi-Device before running your command.
Or try: setprop sys.usb.config "charging" before. Somehow ADB seems to interfere with the HID functionality (at least on my device)

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

3 participants