LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Game controller/joystick won't populate in /dev (https://www.linuxquestions.org/questions/linux-hardware-18/game-controller-joystick-wont-populate-in-dev-827015/)

zuzoa 08-18-2010 09:54 AM

Game controller/joystick won't populate in /dev
 
I have an EMS Dual-Shooter PS2 -> USB converter, with a regular playstation 2 controller attached.

There is no js* device listed in either /dev or /dev/input when I plug the controller in.

I'm running Slackware64 13.0, kernel 2.6.29.6. I also have the joystick driver here installed.

I have the joydev module inserted and running:
Code:

bash-3.1# lsmod|grep joy
joydev                11968  0

this is the relevent section of lsusb -v:
Code:

Bus 007 Device 005: ID 0b43:0003 Play.com, Inc. PS2 Controller Converter
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              1.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass        0
  bDeviceProtocol        0
  bMaxPacketSize0        8
  idVendor          0x0b43 Play.com, Inc.
  idProduct          0x0003 PS2 Controller Converter
  bcdDevice          19.12
  iManufacturer          1
  iProduct                2
  iSerial                0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          34
    bNumInterfaces          1
    bConfigurationValue    1
    iConfiguration          2
    bmAttributes        0x80
      (Bus Powered)
    MaxPower              100mA
    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              2
      ** UNRECOGNIZED:  09 21 00 01 00 01 22 8e 00
      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              8
cannot read device status, Protocol error (71)

dmesg reports this when I plug in the device:
Code:

usb 7-2: new low speed USB device using uhci_hcd and address 5
usb 7-2: string descriptor 0 read error: -32
usb 7-2: string descriptor 0 read error: -32
usb 7-2: New USB device found, idVendor=0b43, idProduct=0003
usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 7-2: configuration #1 chosen from 1 choice
usb 7-2: string descriptor 0 read error: -32
usb 7-2: string descriptor 0 read error: -32
generic-usb: probe of 0003:0B43:0003.0003 failed with error -71

edit: I have also tried doing "mknod input/js0 c 13 0" in /dev, but then "cat /dev/input/js0" returns "cat: /dev/input/js0: No such device". I have also inserted the "analog" module along with joydev.

business_kid 08-18-2010 02:23 PM

Have you tried the stuff here?
http://www.linux-usb.org/USB-guide/x194.html

It does mention a kernel rebuild, you may want to check if your kernel is up to it.

zuzoa 08-19-2010 05:58 PM

Thank you for your reply. Yes, I've tried the things mentioned in that guide. I'm pretty sure my kernel already supports the joystick functions that I need though, so I don't think a kernel rebuild is necessary.

business_kid 08-20-2010 02:59 AM

No /dev/input/js* device means no go. Try

cd /dev/input
sudo mknod js0 c 13 0

but the lasting cure is a udev rule, in wherever your system has a udev/rules.d directory.


All times are GMT -5. The time now is 02:55 AM.