The purpose of this fork is to allow this repo to run under root in order to bypass permission issues accessing /dev/uinput.
- Have a recent kernel (5.12+) that includes the latest official drivers (hid-playstation)
- Install xboxdrv (https://xboxdrv.gitlab.io)
- Basic dev tools like
g++
ormake
- Make sure you are using this repo under ROOT. If you are using this as a user, please use the original repo.
git clone https://github.com/Valcyclovir/ds360
cd ds360
make
./ds360
systemctl start ds360.service
./add-udev-rule.sh
git clone https://github.com/Valcyclovir/ds360
cd ds360
make install
make uninstall
The script should work fine if the Dualsense controller is connected through USB or via Bluetooth, but if you still get the "VID not found" error, please check your /proc/bus/input/devices
file and see if your controller is there.
If it's not recheck if your kernel includes the hid-playstation
driver and try to use xboxdrv
manually with dualsense.xboxdrv
config (edit the commented evdev=...
line).
Hint: you can find the value to use for evdev with this command (thanks to /u/QushAes)
for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
(
syspath="${sysdevpath%/dev}"
devname="$(udevadm info -q name -p $syspath)"
[[ "$devname" == "bus/"* ]] && exit
eval "$(udevadm info -q property --export -p $syspath)"
[[ -z "$ID_SERIAL" ]] && exit
echo "/dev/$devname - $ID_SERIAL"
)
done