Peter Selinger
2005-Dec-08 05:47 UTC
[Nut-upsdev] Fw: NUT hidups dont working on new linux kernels
I am forwarding the below message. Does anybody on this list know anything about this problem? Petr - perhaps you should switch from the "hidups" to the "newhidups" driver. I believe it supported the APC Back UPS even in NUT 2.0.2, and it certainly does so in the Development version that you can get from CVS (see the NUT download page). Also, could you post the output of "ls -l /dev/usb"? Perhaps this is not a kernel problem at all, but a problem of a missing device node. -- Peter =?UTF-8?B?S3JpxaF0b2YgUGV0cg==?= wrote:> > Hello Peter, > > I like to report the problem with NUT on new linux kernels. > NUT stopped work on 2.6.14+ kernels. > > I did filled bugreport on RedHat's bugzilla. > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175101 > > Can you escalate this issue to nut's developers, please? > > Thanks > > Petr
Arnaud Quette
2005-Dec-09 09:01 UTC
[Nut-upsdev] Fw: NUT hidups dont working on new linux kernels
2005/12/8, Peter Selinger <selinger@mathstat.dal.ca>:> > I am forwarding the below message. Does anybody on this list know > anything about this problem? > > Petr - perhaps you should switch from the "hidups" to the "newhidups" > driver. I believe it supported the APC Back UPS even in NUT 2.0.2, and > it certainly does so in the Development version that you can get from > CVS (see the NUT download page). > > Also, could you post the output of "ls -l /dev/usb"? Perhaps this is > not a kernel problem at all, but a problem of a missing device node. > > -- Peter > > =?UTF-8?B?S3JpxaF0b2YgUGV0cg==?= wrote: > > > > Hello Peter, > > > > I like to report the problem with NUT on new linux kernels. > > NUT stopped work on 2.6.14+ kernels. > > > > I did filled bugreport on RedHat's bugzilla. > > > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175101 > > > > Can you escalate this issue to nut's developers, please? > > > > Thanks > > > > Petr >the keyword "linux 2.6.14" directly tells us that it's something with udev. FYI: - before 2.6.12, only hotplug was needed - between 2.6.12 and 2.6.14, udev takes an interim with hotplug compat - as of 2.6.14, only udev is involved. The necessary scripts are present in the CVS Testing and Dev tree, and will be included in 2.0.3. But it only applies to newhidups and libusb. For hidups, which uses linux hiddev driver, you need to change something in the devfs.rules to adapt the device's ownership or to include the "ups" group in the "usb" group (not sure, validate with an "ls -l" on the hiddevX device node). Last notes: - Peter _is_ a NUT Developer. And not a least one ;-) - I'm finishing some audit for these hotplug scripts to be documented in 2.0.3 - prefer to switch to newhidups as hidups will soon be dropped in favor of the former. Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/<http://people.debian.org/%7Eaquette/> OpenSource Developer - http://arnaud.quette.free.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20051209/8f25a570/attachment.html
Peter Selinger
2005-Dec-13 03:04 UTC
[Nut-upsdev] Re: Fw: NUT hidups dont working on new linux kernels
=?windows-1252?Q?Kri=9Atof_Petr?= wrote:> > Peter Selinger wrote: > > I am forwarding the below message. Does anybody on this list know > > anything about this problem? > > > > Petr - perhaps you should switch from the "hidups" to the "newhidups" > > driver. I believe it supported the APC Back UPS even in NUT 2.0.2, and > > it certainly does so in the Development version that you can get from > > CVS (see the NUT download page). > > No, the result is the same: > # service ups start > Starting newhidups: Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2) > > No USB/HID UPS foundYes, but you should start the driver with debugging enabled. Try this (as root): drivers/newhidups -u root -DD auto At the very least, it should give you some more useful debugging info.> > Also, could you post the output of "ls -l /dev/usb"? Perhaps this is > > not a kernel problem at all, but a problem of a missing device node. > > # ls -al /dev/usb > total 0 > drwxr-xr-x 2 root root 60 Dec 8 11:33 . > drwxr-xr-x 9 root root 3740 Dec 8 11:35 .. > crw-rw---- 1 root nut 189, 1 Dec 8 11:33 ups0Hm. Newhidups actually does not use /dev/usb, it uses /proc/bus/usb. I believe the kernel change only affected hotplugging, i.e., permissions, and not the actual USB interface. If this is true, then with "-u root", it should work anyway. -- Peter