if this is happening with the Xbox360 pad as well it might be your hardware? I use a Xbox 360 pad a lot and I have never had any problems with it.
if you connect through SSH can you type
and post the results.
thank you for your help - I hope this helps:
Ftr
the specifics for the PS4 joystick appear to be:
[ 4.595241@0] usb 2-1: new full-speed USB device number 2 using dwc_otg
[ 4.595378@0] dwc_otg: Indeed it is in host mode hprt0 = 00021501
[ 4.795876@3] usb 2-1: New USB device found, idVendor=054c, idProduct=05c4
[ 4.795886@3] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4.795892@3] usb 2-1: Product: Wireless Controller
[ 4.795897@3] usb 2-1: Manufacturer: Sony Computer Entertainment
[ 4.802043@2] input: Sony Computer Entertainment Wireless Controller as /devices/dwc2_a/usb2/2-1/2-1:1.0/0003:054C:05C4.0001/input/input3
[ 4.802390@2] sony 0003:054C:05C4.0001: input,hidraw0: USB HID v1.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-dwc2_a-1/input0
[ 5.904827@2] EXT4-fs (mmcblk1p2): couldn't mount as ext3 due to feature incompatibilities
[ 5.905479@2] EXT4-fs (mmcblk1p2): couldn't mount as ext2 due to feature incompatibilities
[ 5.950061@2] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 7.982609@3] Disconnect cb-Host
[ 8.065281@2] usb 2-1: USB disconnect, device number 2
[ 10.975247@2] dwc_otg: Indeed it is in host mode hprt0 = 00021501
[ 11.155237@2] usb 1-1: new full-speed USB device number 2 using dwc_otg
[ 11.155357@2] dwc_otg: Indeed it is in host mode hprt0 = 00021501
[ 11.355898@2] usb 1-1: New USB device found, idVendor=054c, idProduct=05c4
[ 11.355910@2] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 11.355915@2] usb 1-1: Product: Wireless Controller
[ 11.355920@2] usb 1-1: Manufacturer: Sony Computer Entertainment
[ 11.362319@2] input: Sony Computer Entertainment Wireless Controller as /devices/dwc2_b/usb1/1-1/1-1:1.0/0003:054C:05C4.0002/input/input4
[ 11.362670@2] sony 0003:054C:05C4.0002: input,hidraw0: USB HID v1.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-dwc2_b-1/input0
[ 12.495244@0] random: nonblocking pool is initialized
[ 19.225249@2] dwc_otg: Indeed it is in host mode hprt0 = 00021501
[ 19.405240@2] usb 2-1: new full-speed USB device number 3 using dwc_otg
[ 19.405702@2] dwc_otg: Indeed it is in host mode hprt0 = 00021501
[ 19.608827@3] usb 2-1: New USB device found, idVendor=400c, idProduct=107a
[ 19.608840@3] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 19.608845@3] usb 2-1: Product: SAGE AirMouse
[ 19.608849@3] usb 2-1: Manufacturer: SAGE
[ 19.612254@3] input: SAGE SAGE AirMouse as /devices/dwc2_a/usb2/2-1/2-1:1.0/0003:400C:107A.0003/input/input5
[ 19.612646@2] hid-generic 0003:400C:107A.0003: input,hiddev0,hidraw1: USB HID v1.01 Keyboard [SAGE SAGE AirMouse] on usb-dwc2_a-1/input0
[ 19.616416@3] input: SAGE SAGE AirMouse as /devices/dwc2_a/usb2/2-1/2-1:1.1/0003:400C:107A.0004/input/input6
[ 19.616742@3] hid-generic 0003:400C:107A.0004: input,hidraw2: USB HID v1.01 Mouse [SAGE SAGE AirMouse] on usb-dwc2_a-1/input1
[ 19.622216@3] input: SAGE SAGE AirMouse as /devices/dwc2_a/usb2/2-1/2-1:1.2/0003:400C:107A.0005/input/input7
[ 19.622458@3] hid-generic 0003:400C:107A.0005: input,hidraw3: USB HID v1.01 Device [SAGE SAGE AirMouse] on usb-dwc2_a-1/input2
Display More
later in the full cap file you can see where I was disconnecting, then reconnecting the PS4 joystick to make it work inside Retroarch.
also, just in case it is of any use, my es_input.cfg entry is:
<inputList>
<inputConfig type="joystick" deviceName="Sony Computer Entertainment Wireless Controller" deviceGUID="030000004c050000c405000011010000">
<input name="a" type="button" id="1" value="1" />
<input name="b" type="button" id="2" value="1" />
<input name="down" type="hat" id="0" value="4" />
<input name="hotkeyenable" type="button" id="9" value="1" />
<input name="left" type="hat" id="0" value="8" />
<input name="leftshoulder" type="button" id="4" value="1" />
<input name="right" type="hat" id="0" value="2" />
<input name="rightshoulder" type="button" id="5" value="1" />
<input name="select" type="button" id="9" value="1" />
<input name="start" type="button" id="12" value="1" />
<input name="up" type="hat" id="0" value="1" />
<input name="x" type="button" id="0" value="1" />
<input name="y" type="button" id="3" value="1" />
</inputConfig>
</inputList>
also looking in /tmp/joypads/udev/Sony-PlayStation4-DualShock4-Controller.cfg
my joystick is being correctly identified and enumerated - 054c/05c4 = 1356/1476