LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USBHID Joystick (https://www.linuxquestions.org/questions/linux-hardware-18/usbhid-joystick-736269/)

Dan_1983 06-28-2009 06:21 PM

USBHID Joystick
 
Hello,
I built a device that converts an N64 joystick to USB. This device works in Windows; however when I try it in SUSE 11.1 it doesn't. It is still seen by SUSE but does not create the /dev/input/js0 file. If I view the hardware information I get the following:

----- hal device list -----
0: udi = '/org/freedesktop/Hal/devices/usb_device_4d8_11_noserial_if0'
info.subsystem = 'usb'
info.linux.driver = 'usbhid'
usb.interface.number = 0 (0x0)
usb.product = 'USB HID Interface'
usb.device_subclass = 0 (0x0)
usb.interface.class = 3 (0x3)
info.product = 'USB HID Interface'
usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1a.7/usb4/4-2/4-2.2/4-2.2:1.0'
usb.speed = 12.0000
usb.interface.subclass = 0 (0x0)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4d8_11_noserial_if0'
usb.device_revision_bcd = 1 (0x1)
usb.device_protocol = 0 (0x0)
usb.interface.protocol = 0 (0x0)
usb.configuration_value = 1 (0x1)
usb.version = 2.00000
usb.max_power = 100 (0x64)
usb.vendor_id = 1240 (0x4d8)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1a.7/usb4/4-2/4-2.2/4-2.2:1.0'
usb.num_configurations = 1 (0x1)
usb.is_self_powered = false
info.parent = '/org/freedesktop/Hal/devices/usb_device_4d8_11_noserial'
usb.num_ports = 0 (0x0)
usb.product_id = 17 (0x11)
usb.num_interfaces = 1 (0x1)
usb.can_wake_up = true
usb.linux.device_number = 9 (0x9)
usb.vendor = 'Microchip Technology, Inc.'
linux.hotplug_type = 2 (0x2)
usb.device_class = 0 (0x0)
usb.bus_number = 4 (0x4)
linux.subsystem = 'usb'

1: udi = '/org/freedesktop/Hal/devices/usb_device_4d8_11_noserial'
info.subsystem = 'usb_device'
info.linux.driver = 'usb'
usb_device.product = 'Joystick'
linux.device_file = '/dev/bus/usb/004/009'
usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1a.7/usb4/4-2/4-2.2'
info.product = 'Joystick'
usb_device.device_revision_bcd = 1 (0x1)
usb_device.configuration_value = 1 (0x1)
usb_device.max_power = 100 (0x64)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4d8_11_noserial'
usb_device.num_configurations = 1 (0x1)
usb_device.num_ports = 0 (0x0)
usb_device.num_interfaces = 1 (0x1)
usb_device.linux.device_number = 9 (0x9)
usb_device.device_class = 0 (0x0)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1a.7/usb4/4-2/4-2.2'
usb_device.device_subclass = 0 (0x0)
info.vendor = 'Microchip Technology, Inc.'
usb_device.speed = 12.0000
info.parent = '/org/freedesktop/Hal/devices/usb_device_5e3_608_noserial'
usb_device.device_protocol = 0 (0x0)
usb_device.version = 2.00000
usb_device.vendor_id = 1240 (0x4d8)
usb_device.is_self_powered = false
usb_device.product_id = 17 (0x11)
usb_device.can_wake_up = true
linux.hotplug_type = 2 (0x2)
usb_device.vendor = 'Microchip Technology, Inc.'
usb_device.bus_number = 4 (0x4)
linux.subsystem = 'usb'

Does anyone know why this might be and how to fix it?

axobeauvi 06-28-2009 09:51 PM

does an input device show up under /dev/input?
if there's a js0 there maybe you can just create a symbolic link.
i.e. (as root) ln -s /dev/input/js0 /dev/js0
good luck

robjoski 07-02-2009 12:18 PM

Try looking at your dmesg logs - if there was a problem recognizing it, it should be recorded there (and if not, it should at least tell you what device file it created).

Dan_1983 07-03-2009 09:34 PM

Thanks for the advice. I found out that it is something wrong with the combination of the USB hub and the joystick I am using. When I plug the joystick into the USB port directly it works and when I use the USB hub with any other device it works.


All times are GMT -5. The time now is 03:20 PM.