Re: issues with unknown/new alias

2 messages, 2 authors, 2012-09-13 · open the first message on its own page

Re: issues with unknown/new alias

From: Alan Jenkins <hidden>
Date: 2012-09-13 08:27:17

On 13/09/12 08:25, Christoph Jung wrote:
Hello,

I am from the company "Code Mercenaries GmbH" from Germany. We have 
some USB HID devices wich work with Linux.
Since kernel version 2.6 our default products will be included in the 
kernel.

Devicedetails
VendorID: 0x07C0
ProductIDs: 0x1500, 0x1501, 0x1511, 0x1512, 0x1503
Devicename: iowarrior

Now we have some new custom product IDs but this two new devices get 
no node in dev/usb/ , but I can find the with "lsusb".
If I run "modinfo iowarrior" there will be 5 alias (with the default 
pIDs) .

The two new pIDs are: 0x158A, 0x158B

I have not much experiance with linux (I work with Ubuntu 12.04).
Same OS and version, but I have no /dev/usb/ directory at all.  My guess 
is your problem isn't about modules.  I do have /dev/input/ though :).

What are you saying; does it not work?  If it has standard buttons 
(mouse/keyboard equiv), do they work under X?

Check out "ls-input" and "input-events" (apt-get install input-utils).  
"evtest" is similar, maybe slightly friendlier (apt-get install evtest).

You can check that your module has bound to the device by inspecting /sys/.

                  v-- try replacing usbhid with "iowarrior"

$ ls /sys/module/usbhid/drivers/usb:*/

3-2:1.0  bind  module  new_id  remove_id  uevent  unbind

^-- USB address of my standard device (mouse)


You could also see the device nodes created by udev, if you run "udevadm 
monitor --property" and plug the device in.  It's very verbose, but the 
last event should probably show DEVNAME=/dev/input/eventNN (and 
SUBSYSTEM=input near the end).
What have be done to get the device nodes to work with them?
Have I add some rules? Or have I edit the iowarrior.ko?
I don't think you need to add custom udev rules.

Alan

Re: issues with unknown/new alias

From: Kay Sievers <hidden>
Date: 2012-09-13 11:09:39

On Thu, Sep 13, 2012 at 10:27 AM, Alan Jenkins
[off-list ref] wrote:
On 13/09/12 08:25, Christoph Jung wrote:
quoted
Now we have some new custom product IDs but this two new devices get no
node in dev/usb/ , but I can find the with "lsusb".
If I run "modinfo iowarrior" there will be 5 alias (with the default pIDs)
.

The two new pIDs are: 0x158A, 0x158B

I have not much experiance with linux (I work with Ubuntu 12.04).
Same OS and version, but I have no /dev/usb/ directory at all.  My guess is
your problem isn't about modules.  I do have /dev/input/ though :).
He probably meant: /dev/bus/usb/, which everybody should have these
days, while /dev/usb/ is no ususal place.

Kay
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help