Giter VIP home page Giter VIP logo

Comments (8)

rosmo avatar rosmo commented on July 19, 2024

That's quite strange. Is it a fresh install?

Could you try: go install github.com/rosmo/go-hidproxy/cmd/go-hidproxy ?
And also you may want to upgrade to the latest Go version (generally Go versions are quite backwards compatible).

from go-hidproxy.

Langohr23 avatar Langohr23 commented on July 19, 2024

Thank you for your reply!

It is a fresh Raspberry Pi OS bullseye installation on a pi zero 2 w

After updating to the current go installation (go version go1.22.2 linux/arm64) No I get the following errors:

thomas@pizero:~ $ go get github.com/rosmo/go-hidproxy/cmd/go-hidproxy
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.

thomas@pizero:~ $ go install github.com/rosmo/go-hidproxy/cmd/go-hidproxy
go: 'go install' requires a version when current directory is not in a module
Try 'go install github.com/rosmo/go-hidproxy/cmd/go-hidproxy@latest' to install the latest version

from go-hidproxy.

rosmo avatar rosmo commented on July 19, 2024

Hey, I just updated a couple things and the README. The command go install github.com/rosmo/go-hidproxy/cmd/go-hidproxy@latest should work now, just tested it on a NanoPi.

from go-hidproxy.

Langohr23 avatar Langohr23 commented on July 19, 2024

Now it gets stuck with this error:
/root/go/pkg/mod/github.com/rosmo/[email protected]/cmd/go-hidproxy/main.go:8:2: "github.com/rosmo/go-hidproxy" imported as hidproxy and not used

from go-hidproxy.

rosmo avatar rosmo commented on July 19, 2024

My bad, I refactored the whole thing now. Could try again? Go's global proxy has a tendency to cache things so best to install with a commit hash directly, for example:

go install github.com/rosmo/go-hidproxy/cmd/go-hidproxy@0a3a762

from go-hidproxy.

Langohr23 avatar Langohr23 commented on July 19, 2024

Thank you! The Mouse now works (only the scrolling is a little bit fast) . The Keyboard is not working:
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sMicrosoft Modern MouseEV_SYN"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sMicrosoft Modern MouseEV_KEY"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sMicrosoft Modern MouseEV_REL"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sMicrosoft Modern MouseEV_MSC"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sMicrosoft Modern Mouse Consumer ControlEV_SYN"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sMicrosoft Modern Mouse Consumer ControlEV_REL"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sMicrosoft Modern MouseEV_SYN"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sMicrosoft Modern MouseEV_ABS"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sMicrosoft Modern MouseEV_ABS"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sMicrosoft Modern MouseEV_SYN"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sSurface KeyboardEV_LED"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sSurface KeyboardEV_SYN"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sSurface KeyboardEV_KEY"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sSurface KeyboardEV_REL"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sSurface KeyboardEV_ABS"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sSurface KeyboardEV_MSC"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sSurface KeyboardEV_ABS"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sSurface KeyboardEV_SYN"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sSurface KeyboardEV_SYN"
Apr 20 11:41:23 pizero go-hidproxy[1301]: time="2024-04-20T11:41:23+02:00" level=info msg="Device %t , Dev Name %sSurface KeyboardEV_ABS"

I added a log-Statement to get k.Name but cannot find out how to quickly fix it

from go-hidproxy.

Langohr23 avatar Langohr23 commented on July 19, 2024

Log_keyboard_surface.txt

Maybe this is more helpful

from go-hidproxy.

rosmo avatar rosmo commented on July 19, 2024

Ach, looks like the formatting strings aren't quite there. I'll fix it tomorrow and we'll give it another go.

from go-hidproxy.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.