[Nut-upsdev] nut + usb + udev with kernel 2.6.22
Gilad Arnold
arnold at cs.berkeley.edu
Sun Sep 30 01:30:08 UTC 2007
Hi Vamp,
Thanks for the reply. Your patch indeed works, but wouldn't it be too
permissive in the general case? I mean, we need to cover two specific
cases, whereas this patch will accept possibly other cases (whenever
SUBSYSTEM starts with 'usb', and regardless of ENV{DEVTYPE}).
In any case, I believe that the udev rules that ship with nut need to be
upgrades to work in any of the above situations. How should this be
pursued?
Gilad
On Sat, Sep 29, 2007 at 10:26:15PM +0400, Vamp wrote:
> Hello, Gilad!
> You wrote to <nut-upsdev at lists.alioth.debian.org> on Fri, 28 Sep 2007
> 16:22:00 -0700:
>
>> Worse, it was improperly setup
>> only during udev coldplug, whereas hotplugging worked fine.
>
> I had the same problem on my Gentoo Linux machine. SUBSYSTEM needs to be
> 'usb_device' at hotplug and 'usb' at coldplug. I used an easier patch
>
> --- T:\nut\scripts\udev\nut-usbups.rules.in.orig 02.09.2007 23:00:51
> +++ T:\nut\scripts\udev\nut-usbups.rules.in 02.09.2007 23:00:51
> @@ -1,6 +1,6 @@
> # udev rules for the NUT USB drivers
>
> -SUBSYSTEM!="usb_device", GOTO="nut-usbups_rules_end"
> +SUBSYSTEM!="usb*", GOTO="nut-usbups_rules_end"
> ACTION!="add", GOTO="nut-usbups_rules_end"
>
> # MGE UPS SYSTEMS - usbhid-ups
>
>
> With best regards, Vamp. E-mail: admin at vampik.ru
More information about the Nut-upsdev
mailing list