linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* joydev bug with playstation USB adapter
@ 2013-02-01 23:43 renato
  2013-02-02  0:11 ` Jiri Kosina
  2013-02-08 18:58 ` Renato
  0 siblings, 2 replies; 4+ messages in thread
From: renato @ 2013-02-01 23:43 UTC (permalink / raw)
  To: linux-input; +Cc: jkosina

[-- Attachment #1: Type: text/plain, Size: 2668 bytes --]

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)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: joydev bug with playstation USB adapter
  2013-02-01 23:43 joydev bug with playstation USB adapter renato
@ 2013-02-02  0:11 ` Jiri Kosina
  2013-02-08 18:58 ` Renato
  1 sibling, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2013-02-02  0:11 UTC (permalink / raw)
  To: renato; +Cc: linux-input, Anssi Hannula

On Sat, 2 Feb 2013, renato wrote:

> 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.

> 
> 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)
> 

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: joydev bug with playstation USB adapter
  2013-02-01 23:43 joydev bug with playstation USB adapter renato
  2013-02-02  0:11 ` Jiri Kosina
@ 2013-02-08 18:58 ` Renato
  1 sibling, 0 replies; 4+ messages in thread
From: Renato @ 2013-02-08 18:58 UTC (permalink / raw)
  To: linux-input; +Cc: jkosina

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

On Sat, 2 Feb 2013 00:43:20 +0100
renato <rennabh@gmail.com> 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
>         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
- ---
> Bus 002 Device 002: ID 0810:0001 Personal Communication Systems, Inc.
> Dual PSX A daptor
12c12
<   idProduct          0x0003 PlayStation Gamepad
- ---
>   idProduct          0x0001 Dual PSX Adaptor
15c15
<   iProduct                2 USB Gamepad
- ---
>   iProduct                2 Twin USB Joystick
27c27
<     MaxPower              350mA
- ---
>     MaxPower              500mA
45c45
<           wDescriptorLength     101
- ---
>           wDescriptorLength     202
57c57
<         bInterval              17
- ---
>         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-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: joydev bug with playstation USB adapter
@ 2013-07-15 12:27 Renato
  0 siblings, 0 replies; 4+ messages in thread
From: Renato @ 2013-07-15 12:27 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-input

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


On Sat, 2 Feb 2013 01:11:17 Jiri Kosina wrote
>On Sat, 2 Feb 2013, renato wrote:
>
>> 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.
>
>> 
>> 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)
>> 
>
>-- 
>Jiri Kosina
>SUSE Labs
>--

Hi, so any news on this? I still have a limited range on my gamepads'
analog sticks, with kernel 3.9.9.

I woul've CCed Anssi Hannula as was suggested by you but I couln't find
his mail.

cheers,
renato
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQEcBAEBAgAGBQJR4+qsAAoJEBz6xFdttjrfBmwH/2ihT+nKdkmFuKnT5JR0Z9Ue
f2UdToUwy8V940Cg39v3HgVL9ZZO+vvuzK1Qg/mYgvtjd1UqmOKCOJFEdZdiLlz7
Ke1FHP+7dBY/c5tEK96psMiwXJJpJTZJvfynTv0jGgLtJ2EH+1xj2QY9n9HWYLgw
inNxWwq1uKxaXt6LD+ZWwaVdKTJ8Os+x+OmlDhSIaPhW31mBqJmgCoVI6FCyupxT
n021Zse3+ytj03odQ68Ocgyl3wkmjR/LxFYXJdwkB1mSkiYg5nseJ8UWqv2AyXCF
JfiKDigznDUKLyMVRfoplgl33qIa2K4iHt7X1W3EreQnugMRQyw9ul3YWwYH4cw=
=I4J2
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-15 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-01 23:43 joydev bug with playstation USB adapter renato
2013-02-02  0:11 ` Jiri Kosina
2013-02-08 18:58 ` Renato
  -- strict thread matches above, loose matches on Subject: below --
2013-07-15 12:27 Renato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).