All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Jenkins <alan.christopher.jenkins-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Christoph Jung <jung-xuEmVypu8QqakBO8gow8eQ@public.gmane.org>
Cc: linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-modules-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: issues with unknown/new alias
Date: Thu, 13 Sep 2012 09:27:17 +0100	[thread overview]
Message-ID: <505198E5.6000101@gmail.com> (raw)
In-Reply-To: <50518A75.4030608-xuEmVypu8QqakBO8gow8eQ@public.gmane.org>

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

       reply	other threads:[~2012-09-13  8:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <50518A75.4030608@codemercs.com>
     [not found] ` <50518A75.4030608-xuEmVypu8QqakBO8gow8eQ@public.gmane.org>
2012-09-13  8:27   ` Alan Jenkins [this message]
2012-09-13 11:09     ` issues with unknown/new alias Kay Sievers
2012-09-13  8:49 ` issues with unknown/new alias [retraction] Alan Jenkins
     [not found]   ` <50519FF1.9040002@codemercs.com>
2012-09-13  9:29     ` Alan Jenkins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=505198E5.6000101@gmail.com \
    --to=alan.christopher.jenkins-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=jung-xuEmVypu8QqakBO8gow8eQ@public.gmane.org \
    --cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-modules-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.