Package Details: ds4drv 0.5.1-4

Git Clone URL: https://aur.archlinux.org/ds4drv.git (read-only, click to copy)
Package Base: ds4drv
Description: Sony DualShock 4 Userspace Driver
Upstream URL: https://github.com/chrippa/ds4drv
Licenses: MIT
Conflicts: ds4drv-git
Submitter: Ape
Maintainer: daizhirui
Last Packager: daizhirui
Votes: 12
Popularity: 0.000000
First Submitted: 2015-08-31 15:49 (UTC)
Last Updated: 2024-03-09 16:26 (UTC)

Latest Comments

1 2 Next › Last »

Fell commented on 2024-07-21 21:04 (UTC)

This package seems to be broken as of Python 3.12:

Traceback (most recent call last):
  File "/usr/bin/ds4drv", line 33, in <module>
    sys.exit(load_entry_point('ds4drv==0.5.1', 'console_scripts', 'ds4drv')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/ds4drv", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.12/site-packages/ds4drv/__main__.py", line 5, in <module>
    from .actions import ActionRegistry
  File "/usr/lib/python3.12/site-packages/ds4drv/actions/__init__.py", line 1, in <module>
    from ..action import ActionRegistry
  File "/usr/lib/python3.12/site-packages/ds4drv/action.py", line 1, in <module>
    from .config import add_controller_option
  File "/usr/lib/python3.12/site-packages/ds4drv/config.py", line 72, in <module>
    class Config(configparser.SafeConfigParser):
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

vagner995 commented on 2022-06-03 14:29 (UTC)

FYI: Had to comment lines (# before line) 118 and 119 in etc/ds4drv.conf for the program to work. These lines are mapping the same input twice with the ones above it and the config parser errors out.

gkun commented on 2019-06-22 10:08 (UTC)

I don't understand why a fix replacing a package in extra with an aur package which has an unsolved compile problem (see latest comment in https://aur.archlinux.org/packages/bluez-utils-compat/) can actually be considered a fix...

evgfilim1 commented on 2019-06-08 14:27 (UTC) (edited on 2019-06-08 14:28 (UTC) by evgfilim1)

There is an issue with this tool as it uses 'hcitool', which is deprecated upstream (https://wiki.archlinux.org/index.php/Bluetooth#Installation, see Note).

Fix: Replace bluez-utils with bluez-utils-compat in depends= section

codemonkey commented on 2018-03-06 19:24 (UTC)

In the source for 0.5.1 backends/hidraw.py has three entries for HID_DEVICES https://github.com/chrippa/ds4drv/blob/master/ds4drv/backends/hidraw.py#L106 However this package, there are only two.

The PKGBUILD is getting 0.5.1 which is the latest version, so why is there a discrepancy?

trustin commented on 2017-09-02 06:12 (UTC)

@Ape, bluez-hcitool as well.

trustin commented on 2017-09-02 06:06 (UTC)

@izz-j You need to install 'bluez'. @Ape, the dependencies could be updated?

izz-j commented on 2017-05-05 12:55 (UTC)

As root: $ systemctl enable ds4drv works fine but then when you start the service $ systemctl start ds4drv I get : "Failed to enable unit: File bluetooth.service:No such file or directory"

electricprism commented on 2016-12-03 19:02 (UTC)

The instructions don't say it directly but $ sudo systemctl enable ds4drv $ sudo systemctl start ds4drv