2017-10-18, 14:23
Just find out why my PS3 controller is recognized as a player2, the motion sensor capabilities of the controller takes priority. tested with a regular controller and worked normal.
regular gamepad:
PS3 controller:
any ideas on how to solve this?
regular gamepad:
Code:
# ls -l /dev/input/by-id/
total 0
lrwxrwxrwx 1 root root 9 Oct 18 10:01 usb-0079_USB_Gamepad-event-joystick -> ../event2
lrwxrwxrwx 1 root root 6 Oct 18 10:01 usb-0079_USB_Gamepad-joystick -> ../js0
# cat /proc/bus/input/devices
I: Bus=0003 Vendor=0079 Product=0011 Version=0110
N: Name="USB Gamepad "
P: Phys=usb-0000:00:1a.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb3/3-2/3-2:1.0/0003:0079:0011.000B/input/input34
U: Uniq=
H: Handlers=js0 event2
B: PROP=0
B: EV=1b
B: KEY=3ff00000000 0 0 0 0
B: ABS=3
B: MSC=10
PS3 controller:
Code:
# ls -l /dev/input/by-id/
total 0
lrwxrwxrwx 1 root root 9 Oct 18 10:07 usb-Sony_PLAYSTATION_R_3_Controller-event-if00 -> ../event2
lrwxrwxrwx 1 root root 9 Oct 18 10:07 usb-Sony_PLAYSTATION_R_3_Controller-event-joystick -> ../event3
lrwxrwxrwx 1 root root 6 Oct 18 10:07 usb-Sony_PLAYSTATION_R_3_Controller-joystick -> ../js1
# cat /proc/bus/input/devices
I: Bus=0003 Vendor=054c Product=0268 Version=8111
N: Name="Sony PLAYSTATION(R)3 Controller Motion Sensors"
P: Phys=usb-0000:00:1a.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb3/3-2/3-2:1.0/0003:054C:0268.000A/input/input33
U: Uniq=00:26:43:ed:37:ab
H: Handlers=js0 event2
B: PROP=40
B: EV=9
B: ABS=7
I: Bus=0003 Vendor=054c Product=0268 Version=8111
N: Name="Sony PLAYSTATION(R)3 Controller"
P: Phys=usb-0000:00:1a.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb3/3-2/3-2:1.0/0003:054C:0268.000A/input/input32
U: Uniq=00:26:43:ed:37:ab
H: Handlers=js1 event3
B: PROP=0
B: EV=20001b
B: KEY=f00000000 0 0 0 7fdb000000000000 0 0 0 0
B: ABS=3f
B: MSC=10
B: FF=107030000 0
any ideas on how to solve this?