Skip to contentSkip to conversation

joydev bug with playstation USB adapter

DISCUSSION renato 2 participants 3 messages Feb 1, 2013 – Feb 8, 2013 HID

lore
Share & tools
lore

renato

author
#0 lore raw

Hi, I have two playstation USB adpters, one of them with this [1] "lsusb -v" (the other I don't have access to ATM) and they both give me the following buggy behaviour: the range of the sticks is limited - i.e. value 32767 is reached when the stick is only about half-way through its run, leaving a big dead zone after that. This happens on all axes and recalibrating with "jscal -c" didn't help.

I'm on an up-to-date Archlinux, kernel 3.7.5, and have tried various kernel versions down to 3.0.1 with same results.

Is there any other info I can provide?

thanks,
renato

[1]
Bus 002 Device 002: ID 0810:0001 Personal Communication Systems, Inc. Dual PSX A daptor
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00

  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0810 Personal Communication Systems, Inc.
  idProduct          0x0001 Dual PSX Adaptor
  bcdDevice            1.06
  iManufacturer           0
  iProduct                2 Twin USB Joystick
  iSerial                 0
  bNumConfigurations      1

Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 202
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)

#1 lore raw
Quoted 11 lines · renato

Hi, I have two playstation USB adpters, one of them with this [1] "lsusb -v" (the other I don't have access to ATM) and they both give me the following buggy behaviour: the range of the sticks is limited - i.e. value 32767 is reached when the stick is only about half-way through its run, leaving a big dead zone after that. This happens on all axes and recalibrating with "jscal -c" didn't help.

I'm on an up-to-date Archlinux, kernel 3.7.5, and have tried various kernel versions down to 3.0.1 with same results.

Is there any other info I can provide?

[ adding Anssi to CC ]

Hi renato,

there is a driver for this particular device (hid-pl), written by Anssi Hannula.

So before I'll be digging into this any further -- Anssi, does this limited range sound familiar to you when it comes to 0x0810/0x001 device?

Thanks.

Quoted 66 lines

thanks,
renato

[1]
Bus 002 Device 002: ID 0810:0001 Personal Communication Systems, Inc. Dual PSX A daptor
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00

  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0810 Personal Communication Systems, Inc.
  idProduct          0x0001 Dual PSX Adaptor
  bcdDevice            1.06
  iManufacturer           0
  iProduct                2 Twin USB Joystick
  iSerial                 0
  bNumConfigurations      1

Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 202
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)

Signature · 2 lines
Jiri Kosina
SUSE Labs
author
#2 lore raw
In reply to renato

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 51 lines · On Sat, 2 Feb 2013 00:43:20 +0100 renato <[email protected]> wrote:

Bus 002 Device 002: ID 0810:0001 Personal Communication Systems, Inc. Dual PSX A daptor
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00

  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0810 Personal Communication Systems, Inc.
  idProduct          0x0001 Dual PSX Adaptor
  bcdDevice            1.06
  iManufacturer           0
  iProduct                2 Twin USB Joystick
  iSerial                 0
  bNumConfigurations      1

Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 202
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN

Quoted 8 lines

bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)

and here's [1] the other device I own, with which I have the same bug. Actually they seem to be similar hardware, same idVendor... the first one had 2 inputs for playstation
joypads, this only one which explains I think some of the other
differences (see output of "diff singular_adaptor dual_adaptor" at [2])

any ideas on this?

cheers
renato

[1]

Bus 002 Device 003: ID 0810:0003 Personal Communication Systems, Inc. PlayStation Gamepad Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00

  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0810 Personal Communication Systems, Inc.
  idProduct          0x0003 PlayStation Gamepad
  bcdDevice            1.06
  iManufacturer           0
  iProduct                2 USB Gamepad
  iSerial                 0
  bNumConfigurations      1

Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 350mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 101
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 17
Device Status: 0x0000
(Bus Powered)

[2]
1,2c1,2
< Bus 002 Device 003: ID 0810:0003 Personal Communication Systems, Inc. PlayStat io
< n Gamepad
- ---

Quoted 2 lines

Bus 002 Device 002: ID 0810:0001 Personal Communication Systems, Inc. Dual PSX A daptor

12c12
< idProduct 0x0003 PlayStation Gamepad
- ---

Quoted 1 line

idProduct 0x0001 Dual PSX Adaptor

15c15
< iProduct 2 USB Gamepad
- ---

Quoted 1 line

iProduct 2 Twin USB Joystick

27c27
< MaxPower 350mA
- ---

Quoted 1 line

MaxPower 500mA

45c45
< wDescriptorLength 101
- ---

Quoted 1 line

wDescriptorLength 202

57c57
< bInterval 17
- ---

Quoted 1 line

bInterval 10

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBAgAGBQJRFUq+AAoJEBz6xFdttjrfLN0H/3NAf1eWKtN6+WFBuVwIFrvs Vx8JAGjWWjByxIvBmdEvap0td0isJjmNp7Jm7LBqAbeUMoVGdIIW9xR4qigchX2p wN/OXpQ117J40X36TEC66Y/yJ4j04ddxmitOtOjaVKS1OSdWit5dMvDwse55HRbe YI8HBj7vq/lQiiOWNOOxFIkQE3PdHLAW0382z5Jr0MYlcEH801R3R7/Quyj9w0iZ pOOP3PY8m2LhQX3Cq85AwOZggoUnVKPfDrO81Ym33GHtMYABRC7Oqz/L099E4d0e GZf/D+Q+ITLsVLU0WNbZD81XFLwX8H0/injeLx+W9lyjoy+q2QmKug4ONcZn/b8= =bV3h
-----END PGP SIGNATURE-----