Giter VIP home page Giter VIP logo

Comments (3)

sezanzeb avatar sezanzeb commented on August 11, 2024

I don't have a surface, so I don't think I'll be able to reproduce anything here.

However, it seems the capabilities output is cut off.

Checking the output of sudo evtest might also be interesting besides the complete capabilities. If there are EV_FF events incoming, I would expect evtest to show them. evtest also shows capabilities by the way.

In evtest, there might be multiple input devices for your dial. Make sure to check all of them.

from python-evdev.

ThreepE0 avatar ThreepE0 commented on August 11, 2024

Hello, thank you so much for the reply, I appreciate it. Evtest doesn't show any haptic events incoming as they happen on this device it seems.

Playing around a bit, I was able to get the hidapi library to work by writing to the /dev/hidraw1 device:

device = hidraw.device() device.open(1118,2331) test = device.write([0x01, 0x01, 0x03, 0x00, 0x00])
I'd like to boil it down to a single library instead of using one for haptics and one for reading if possible.

I'm wondering if evdev can be used to write this string, and if so, is it set up to interface with hidraw devices?

Sorry for being obtuse, I'm a bit out of my comfort zone and I've been on a journey trying to learn this stuff over the last two days.

from python-evdev.

sezanzeb avatar sezanzeb commented on August 11, 2024

I'm wondering if evdev can be used to write this string, and if so, is it set up to interface with hidraw devices?

I'm pretty sure this is not possible with python-evdev.

I tried to find information how hidraw, hiddev and evdev are connected, but couldn't find stuff. The proper solution might be to create an evdev device in /dev/input/ for the dial, which I don't know how that works. It might require writing kernel drivers

from python-evdev.

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.