Guest User!

You are not Sophos Staff.

[DUPE] [7.380] UPS on USB no longers works with 7.380

After applying 7.380 the kernel logs shows the following:

2008:12:29-11:22:20 Test-1 kernel: usb 2-1: usbfs: process 15994 (newhidups) did not claim interface 0 before use 

The UPS that is plugged into the USB port, which functioned properly in 7.350 is not functioning in V7.380.
Parents
  • Well. UPS did _not_ work properly in 7.350 either.

    We are still investigating. I have a theory that upsd is started too early in the boot process. It is called by a udev rule and udev itself is one of the first steps in boot process.

    That would explain why sometimes the UPS is not properly detected on bootup, but runs fine when manually starting upsd. So I've  put a sleep 30 in the startscript run by the udev rule and guess what the UPS was always detected correctly. Of course we will make use of a proper fix instead of the sleep.

    Expect a working solution for the v7.400 final.
  • I have modified the udev rules responsible for UPS detection. After finally fixing the detection problems, I have also added all other UPS models supported by the HID UPS driver provided in v2.0.5 of NUT. This includes detection for some models from Tripp Lite, Powercom and Belkin. [:O] Not sure about putting them on the HCL (we only have MGE and APC UPS to test), but at least they might work for you now.

    My new detection mechanism provides seamless Plug & Play functionality. Expect finally working UPS support in v7.400. [H]
  • Will we finally have the UPS meter not showing 0% (all the APC units I have on customer units have showed this status for their working UPS systems)?  If so, that's great.
  • Anyone have a way to get a serial-port UPS working with Astaro?

    I've got an APC 1400.

    Thanks,
    Barry
  • Yes, since all NUT drivers are available on the ASG, you can theoretically use every driver the NUT package provides.

    The driver used by upsd is defined in /etc/ups/ups.conf.

    It should only be a matter of the correct driver (Perhaps some connect/disconnect notifications will not work). You have to create symlinks to /etc/init.d/upsd in /etc/init.d/rc3.d (S40upsd and K40upsd). You will have to modify /etc/init.d/upsd in 7.400 final because I made it so that these symlinks are deleted every shutdown for proper PnP solution (One may cold-pull the UPS while the ASG is off and upsd would fail without that). Or you can rename your symlinks to S40upsdser and K40upsdser (My deletion matches *upsd).

    But don't expect this to work flawlessly with my new implemented PnP solution which is for USB only. You' re completely on your own. But theoretically you can get it to work (Consult NUT manual for setup of your model). Be aware that your modified files may get overwritten by future up2dates.
Reply
  • Yes, since all NUT drivers are available on the ASG, you can theoretically use every driver the NUT package provides.

    The driver used by upsd is defined in /etc/ups/ups.conf.

    It should only be a matter of the correct driver (Perhaps some connect/disconnect notifications will not work). You have to create symlinks to /etc/init.d/upsd in /etc/init.d/rc3.d (S40upsd and K40upsd). You will have to modify /etc/init.d/upsd in 7.400 final because I made it so that these symlinks are deleted every shutdown for proper PnP solution (One may cold-pull the UPS while the ASG is off and upsd would fail without that). Or you can rename your symlinks to S40upsdser and K40upsdser (My deletion matches *upsd).

    But don't expect this to work flawlessly with my new implemented PnP solution which is for USB only. You' re completely on your own. But theoretically you can get it to work (Consult NUT manual for setup of your model). Be aware that your modified files may get overwritten by future up2dates.
Children