Dualshock 4 on NetBSD reddit / BSD ---------------------------------------------------------------------- CuBeRJAN3 · 2019-06-19 10:26 Hello, I know that NetBSD isn't a system intended for gaming, but I still want to try. Basically I want to get my Dualshock 4 to work in Snes9x. Wired or wireless - doesn't matter. I've tried a lot of different things, but there is just no documentation for dualshock 4 on NetBSD. Can anyone help me please? I'll be thankful for any replies! ---------------------------------------------------------------------- [deleted] · 2019-06-19 13:50 What shows up in your dmesg output when you plug in your Dualshock 4 controller? Also, does it have to be a Dualshock 4? Would something like the [Logitech F310](https://www.logitechg.com/en- us/products/gamepads/f310-gamepad.html) also suit your use case? ---------------------------------------------------------------------- CuBeRJAN3 · 2019-06-19 14:16 Dmesg output: uaudio0 at uhub1 port 2 configuration 1 interface 0 uaudio0: Sony Interactive Entertainment (0x54c) Wireless Controller (0x9cc), rev 2.00/1.00, addr 9 uaudio0: audio rev 1.00 audio2 at uaudio0: full duplex, playback, capture, mmap, independent uaudio0: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 32000 uaudio0: Latency: 180 milliseconds spkr3 at audio2: PC Speaker (synthesized) uhidev6 at uhub1 port 2 configuration 1 interface 3 uhidev6: Sony Interactive Entertainment (0x54c) Wireless Controller (0x9cc), rev 2.00/1.00, addr 9, iclass 3/0 Also, while a Logitech F310 would suit perfectely fine, I already own a Dualshock 4. ---------------------------------------------------------------------- [deleted] · 2019-06-19 15:11 It looks like NetBSD is detecting the device. Have you tried actually using it in snes9x? ---------------------------------------------------------------------- illumosguy · 2019-06-19 16:40 You could possibly get around this by relying on a qemu-haxm Linux VM with xhci passthrough, via libusb (no report yet on whether or not this works already). For a proof of concept see the [Orbital](https://wololo.net/2019/06/03/orbital-the-journey-to-the- safe-mode/) PS4 emulator, which was reported working on NetBSD too. Also, [QEMU](https://wiki.netbsd.org/users/kamil/qemu/) on NetBSD wiki ---------------------------------------------------------------------- PitifulView · 2019-06-19 16:47 You might want to add devpubd=YES to /etc/rc.conf. [Don't ask.](https://v4.freshbsd.org/commit/netbsd/src/6hhBjXbjKW0CimpB) ---------------------------------------------------------------------- CuBeRJAN3 · 2019-06-19 17:10 Yes, it didn't work. ---------------------------------------------------------------------- CuBeRJAN3 · 2019-06-19 17:11 Thanks for tips, but this is not really the solution I'm searching for. ---------------------------------------------------------------------- [deleted] · 2019-06-19 17:30 There's a [sc-controller](https://github.com/kozec/sc-controller) project that might help since it mentions DS4 alongside the Steam Controller, but if there isn't a NetBSD port you'll have to build it yourself. ---------------------------------------------------------------------- illumosguy · 2019-06-19 22:53 no problem, whatever compels you :)