Giter Club home page Giter Club logo

Comments (4)

Eusebius1920 avatar Eusebius1920 commented on June 15, 2024 2

I had the exactly same issue. (Using G930 on Arch Linux with the latest master commit)

Git bisecting showed me that it was introduced in this commit: 46479a4

Further research lead me to this issue of hidapi: signal11/hidapi#305

Solution for me: Using libhidapi-hidraw instead of libhidapi-libusb. You can enforce this by applying this git patch (iff your distribution delivers the hidraw version of libhidapi. Otherwise you have to compile it yourself):

diff --git a/cmake_modules/Findhidapi.cmake b/cmake_modules/Findhidapi.cmake
index 86243fb..ac916e5 100644
--- a/cmake_modules/Findhidapi.cmake
+++ b/cmake_modules/Findhidapi.cmake
@@ -24,7 +24,7 @@
 # http://www.boost.org/LICENSE_1_0.txt)
 
 find_library(HIDAPI_LIBRARY
-	NAMES hidapi hidapi-libusb)
+	NAMES hidapi-hidraw hidapi hidapi-libusb)
 
 find_path(HIDAPI_INCLUDE_DIR
 	NAMES hidapi.h

from headsetcontrol.

alete89 avatar alete89 commented on June 15, 2024

Thanks, @Eusebius1920 I'll check it out and let you know.

from headsetcontrol.

Sapd avatar Sapd commented on June 15, 2024

Thank you @Eusebius1920
Actually I thought, that the CMake file uses hidraw, as die libusb implementation isn't a desired one. But I didn't look closely while implementing hidapi. Also I don't quite get, why the libusb implementation doesn't use the auto detach function, which would get rid of the problem.

Hidraw should be on all major distributions, you are welcome to make a pull request. However, is there a particular reason why you still have hidapi-ibusb in the find_library directive?

from headsetcontrol.

Eusebius1920 avatar Eusebius1920 commented on June 15, 2024

I created a pull request and removed hidapi-libusb from the directive. I thought you had some reasons for it in the first place, so i did not delete it.

from headsetcontrol.

Related Issues (20)

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.