2011/4/7 Virus <753...@bugs.launchpad.net>

> Public bug reported:
>
> Binary package hint: nut
>
> I have Powercom UPS and trying configure it with NUT.
>
> lsusb:
> Bus 006 Device 002: ID 0d9f:0004 Powercom Co., Ltd
>
> ups.conf:
> [powercom]
>        driver = usbhid-ups
>        port = /dev/usb/hiddev0
>

putting "auto" is sufficient here

       productid = 0004
>

this productid should be added to the driver.
before that, I need the output f an lsusb -v -d 0x0d9f:0004

       desc = "My UPS"
>
but when i trying run `upsc powercom` got this output:
> --------------
> battery.charge: 99
> battery.charge.low: 10
> battery.charge.warning: 30
> battery.date: 2009/12/23
> battery.runtime: 24576
> battery.type: PbAc
> --------------
>
> and `upsd[24062]: write() failed for 127.0.0.1: Broken pipe` in
> /var/log/daemon.log
>
> how i can fix this?
>

good question!

is the driver still running?
what is your start method (ie using invoke-rc.d or alike, or directly
starting components manually)?
what is the content of your upsd.conf?
after having stopped previous instance (invoke-rc.d nut stop), what is the
output of:
$ sudo upsd -v

then, stop upsd (sudo upsd -c stop)
and start in 3 separate consoles:
$ sudo upsd -DDD
$ sudo /lib/nut/usbhid-ups -DDDDD -a powercom
$ upsc powercom

and send back the various output.

cheers,
Arnaud
-- 
Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/753661

Title:
  upsd write() failed for 127.0.0.1: Broken pipe

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to