cosmetic udev glitches
Thomas Jaeger
thjaeger at gmail.com
Wed Mar 3 17:32:26 PST 2010
On 03/03/2010 08:25 PM, Dan Nicholson wrote:
> On Wed, Mar 3, 2010 at 4:59 PM, Thomas Jaeger <thjaeger at gmail.com> wrote:
>> On 03/03/2010 07:48 PM, Dan Nicholson wrote:
>>> On Wed, Mar 3, 2010 at 4:00 PM, Thomas Jaeger <thjaeger at gmail.com> wrote:
>>>> The attribute 'name' might not exist (as in the case of serial wacom
>>>> devices) and it's impossible to set it in an udev rule, I believe, so we
>>>> should at least fall back to the NAME property if the attribute is not
>>>> available.
>>>
>>> Not for the parent, either? Does hal give you anything for
>>> info.product/input.product?
>>
>> Sorry, I don't know, I don't have a working hal installation anymore.
>> Here's what udev knows about the device, though:
>>
>> udevadm info --path=/sys/class/tty/ttyS0/ --attribute-walk
>>
>> ...
>
> But you do get NAME in the uevent? You can find this from "udevadm
> info --export-db".
Well, sort of. I set NAME in my own udev rule where I filter by pnp id.
> Seems reasonable, though. I guess we need an additional:
>
> if (!name)
> name = udev_device_get_property_value(parent, "NAME");
>
Yup, that's what I thought, too.
Tom
More information about the xorg
mailing list