chrippa / ds4drv

A Sony DualShock 4 userspace driver for Linux
MIT License
1.05k stars 213 forks source link

Can't find DS4 device(ps4 pro) with USB cable/--hidraw #170

Open ghost opened 5 years ago

ghost commented 5 years ago
[pc trialism]# ds4drv --hidraw
[info][controller 1] Created devices /dev/input/js0 (joystick) /dev/input/event23 (evdev)
[info][hidraw] Scanning for devices
[info][hidraw] Scanning for devices
[info][hidraw] Scanning for devices
[info][hidraw] Scanning for devices
[info][hidraw] Scanning for devices
[info][hidraw] Scanning for devices
[info][hidraw] Scanning for devices
[info][hidraw] Scanning for devices
[info][hidraw] Scanning for devices
[info][hidraw] Scanning for devices

I'm on a fresh manjaro linux. I tried with bluetooth too but I got this:

[error][daemon] 'hcitool' could not be found, make sure you have bluez-utils installed.

bluez-utils is installed.

majyphi commented 4 years ago

Same issue. Fresh install under Ubuntu with KDE.

goremykin commented 4 years ago

Same issue. Linux Mint 19

goremykin commented 4 years ago

I found solution. You need to edit /usr/local/lib/python2.7/dist-packages/ds4drv/backends/hidraw.py like here: https://github.com/chrippa/ds4drv/pull/105/files

bss233 commented 3 years ago

/usr/local/lib/python2.7/dist-packages/ds4drv/backends/hidraw.py

If you have python3. installed, you may have installed ds4drv with pip3, so change the path slightly to `/usr/local/lib/python3./dist-packages/ds4drv/backends/hidraw.py`

where * is whatever version of Python 3 you're on

albfan commented 2 years ago

hcitool is an external tool you need to install.

Probably use bluetoothctl would make sense these days.

My controller shows: Sony Computer Entertainment Wireless controller, so maybe check case insensitive could help. Still I cannot connect by usb