Coder Social home page Coder Social logo

thedrhax / ds4drv-cemuhook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chrippa/ds4drv

55.0 55.0 20.0 228 KB

A Sony DualShock 4 userspace driver for Linux with basic support of cemuhook's UDP protocol

License: MIT License

Python 100.00%

ds4drv-cemuhook's People

Contributors

alexay avatar alexmcnurlin avatar ape avatar arucard21 avatar beep21 avatar chrippa avatar coryparsnipson avatar graingert avatar hexocyte avatar ioistired avatar legendarybibo avatar liftoff avatar mtorromeo avatar mungorae avatar poconbhui avatar ryochan7 avatar thedrhax avatar vash63 avatar vesayth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ds4drv-cemuhook's Issues

Gyro Drift

Like the title says, the gyro drifts to the left. During my googling people said to use cemuhook instead of the default cemu stuff, but I'm pretty sure that's what I'm doing and it hasn't fixed anything. Is there anything I can do to fix that within this program?

Why no rumble?

It's natively supported by kernel why it isn't exposed by this driver?

Recently dolphin emulator enabled cemuhook protocol, but I'm quite confused by what's going on there, since gyro/accel is supposed to be working natively...

Controller configuration impossible due to constant controller updates

I am trying to use this tool to run citra with the DS4 and motion controls. The motion controls work beautifully. However, I cannot map the DS4 buttons in citra. This is because there is a constant stream of updates on the gyro controls, so when citra is prompting me to press a button it automatically picks up a gyro axis every time.
Mapping the controls before starting ds4drv also doesn't work, I'm guessing this is because ds4drv "replaces" the DS4 when started.
An easy fix might be running ds4drv with gyro inputs disabled for mapping, but I couldn't figure out the right syntax/button namings to disable any inputs using --ignored-buttons, I always get the error "invalid button combo value:", for example trying to disable (for test purposes) dpad_up.

UI when?

using it via command line can be very confusing, and I don't know how to change led color without restarting ds4drv everytime

Fork specific documentation?

Hey mate!

I realize this is probably not really meant for the public, but I stumbled across this when I was looking for a way to use my DS4 on cemu under linux with gyro. Can you document on how you get this working a little bit please?

Thanks!

no attribute SafeConfigParser

Possible issue with deprecation? Not entirely sure.

  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/owen/.local/lib/python3.12/site-packages/ds4drv/__main__.py", line 6, in <module>
    from .actions import ActionRegistry
  File "/home/owen/.local/lib/python3.12/site-packages/ds4drv/actions/__init__.py", line 1, in <module>
    from ..action import ActionRegistry
  File "/home/owen/.local/lib/python3.12/site-packages/ds4drv/action.py", line 1, in <module>
    from .config import add_controller_option
  File "/home/owen/.local/lib/python3.12/site-packages/ds4drv/config.py", line 84, in <module>
    class Config(configparser.SafeConfigParser):
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

Worked fine a month or two ago, now I get this when I try and run the program.

Sony Dualsense support?

Just tried to use this app with DualSense (PS5 controller) connected through USB and it does not works.
I tried it with dolphin-emu in UDP mode and it started to spam the terminal output with repeating messages, when trying to assign controller buttons to emulated controller in dolphin, it detected random buttons and did not reacted to real button presses.

s4drv --hidraw --udp 
[info][controller 1] Created devices /dev/input/js1 (joystick) /dev/input/event17 (evdev) 
[info][controller 1] Connected to USB Controller (00:00:00:00:00:00 hidraw3)
[info][hidraw] Scanning for devices
[info][controller 1] Battery: Fully charged
[info][controller 1] USB: Connected
[info][controller 1] Battery: 72%
[info][controller 1] Audio: Headphones
[info][controller 1] USB: Disconnected
[info][controller 1] Battery: 75%
[info][controller 1] Audio: Headset
[info][controller 1] USB: Connected
[info][controller 1] Battery: 36%
[info][controller 1] Audio: Speaker
[info][controller 1] USB: Disconnected
[info][controller 1] Battery: 25%
[info][controller 1] Audio: Mic
[info][controller 1] USB: Connected
[info][controller 1] Battery: 0%
[info][controller 1] Audio: Headset
[info][controller 1] Battery: Fully charged
[info][controller 1] Audio: Speaker
[info][controller 1] USB: Disconnected
[info][controller 1] Battery: Fully charged
[info][controller 1] Audio: Mic
[info][controller 1] USB: Connected
[info][controller 1] Battery: 81%
[info][controller 1] Audio: Headset
[info][controller 1] USB: Disconnected
[info][controller 1] Battery: 87%
[info][controller 1] Audio: Headphones
[info][controller 1] USB: Connected
[info][controller 1] Battery: 36%
[info][controller 1] Audio: Mic
[info][controller 1] USB: Disconnected
[info][controller 1] Battery: 25%
[info][controller 1] Audio: Speaker
[info][controller 1] USB: Connected
[info][controller 1] Battery: 0%
[info][controller 1] Audio: Headphones
[info][controller 1] Battery: Fully charged
[info][controller 1] Audio: Mic
[info][controller 1] USB: Disconnected
[info][controller 1] Battery: Fully charged
[info][controller 1] Audio: Speaker
[info][controller 1] USB: Connected
[info][controller 1] Battery: 81%
[info][controller 1] Audio: Headphones
[info][controller 1] USB: Disconnected
[info][controller 1] Battery: 87%
[info][controller 1] Audio: Headset
^C[info][controller 1] Disconnected

Trying to connect two Dualshocks via ds4drv, but only one is detected

What's the problem? Describe what went wrong.

I tried connecting two DualsShocks 4 via DSU Client to the Dolphin emulator as described here: https://wiki.dolphin-emu.org/index.php?title=DSU_Client but only one is recognized (DSUClient/0/xxx, DSUClient/1/xxx is missing). I tried testing with the DSU Pad Test application over wine, same thing only one DS4 is recognized.

What steps will reproduce the problem?

Connect two DS4 via Bluetooth, open devices configuration on Dolphin, add DSU source.

What is the system information?

                   -`                    pedro@arctic 
                  .o+`                   ------------ 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: Skylake Platform 0.1 
               `+oooooo:                 Kernel: 5.11.13-arch1-1 
               -+oooooo+:                Uptime: 9 hours, 41 mins 
             `/:-:++oooo+:               Packages: 1692 (pacman) 
            `/++++/+++++++:              Shell: zsh 5.8 
           `/++++++++++++++:             Resolution: 1920x1080 
          `/+++ooooooooooooo/`           DE: Plasma 5.21.4 
         ./ooosssso++osssssso+`          WM: KWin 
        .oossssso-````/ossssss+`         WM Theme: ChromeOS-dark 
       -osssssso.      :ssssssso.        Theme: ChromeOSDark [Plasma], Breeze [GTK3] 
      :osssssss/        osssso+++.       Icons: Tela-dark [Plasma], Tela-dark [GTK2/3] 
     /ossssssss/        +ssssooo/-       Terminal: yakuake 
   `/ossssso+/:-        -:/+osssso+-     CPU: Intel i7-6500U (4) @ 3.100GHz 
  `+sso+:-`                 `.-/+oso:    GPU: Intel Skylake GT2 [HD Graphics 520] 
 `++:.                           `-/+/   Memory: 3087MiB / 7868MiB 
 .`                                 `/

Dolphin Version: 5.0-14002

Tested with ds4drv 0.5.1

Broken Pipe When Using USB

Hello I Tried Connecting My Dualshock 4 With USB But It Responded with an error and made my Controller's LED Red
Logs:
ds4drv --udp --hidraw BrokenPipeError: [Errno 32] Broken pipe
Any Way To Fix This Issue?

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.