Re: How to write this rule?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, February 10, 2009 7:29 am, Kay Sievers wrote:
> On Tue, Feb 10, 2009 at 16:19, Yan Seiner <yan@xxxxxxxxxx> wrote:
>> I have a device that presents itself as both a /dev/input/mouise and
>> /dev/input/event.
>>
>> The mouse:
>>
>>  looking at device '/class/input/input10/mouse6':
>>   KERNEL=="mouse6"
>>   SUBSYSTEM=="input"
>>   DRIVER==""
>
>> The event:
>>
>>  looking at device '/class/input/input10/event10':
>>   KERNEL=="event10"
>>   SUBSYSTEM=="input"
>>   DRIVER==""
>
>> The *only* difference between the two is the KERNEL== line.  I need to
>> create a symlink to both the mouse and the event.  I tried this:
>
> Use the links in: /dev/input/by-id/?
>
> They look like this for a USB mouse here:
>   $ tree /dev/input/by-id/
>   /dev/input/by-id/
>   |-- usb-Logitech_USB-PS_2_Optical_Mouse-event-mouse -> ../event8
>   `-- usb-Logitech_USB-PS_2_Optical_Mouse-mouse -> ../mouse1
>
> Kay

Hah!  Won't quite work as I have 2 of these, but I can match on the
ID_PATH env var!

Thanks!

--Yan

-- 
  o__
  ,>/'_          o__
  (_)\(_)        ,>/'_        o__
Yan Seiner      (_)\(_)       ,>/'_     o__
       Personal Trainer      (_)\(_)    ,>/'_        o__
             Professional Engineer     (_)\(_)       ,>/'_
Who says engineers have to be pencil necked geeks?  (_)\(_)

You are an adult when you realize that everyone's an idiot sometimes. You
are wise when you include yourself.


--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux