[Bug 633994] New: Incorrect automatic determination of type of UPS Powercom IMP-425AP in powercom.c from nut-2.4.1. Manual setting of type is ignored.
https://bugzilla.novell.com/show_bug.cgi?id=633994 https://bugzilla.novell.com/show_bug.cgi?id=633994#c0 Summary: Incorrect automatic determination of type of UPS Powercom IMP-425AP in powercom.c from nut-2.4.1. Manual setting of type is ignored. Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: All OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nk_rec@mail.ru QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=385025) --> (http://bugzilla.novell.com/attachment.cgi?id=385025) Patch which corrects manual setting of "type" for the driver powercom User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.8) Gecko/20100723 SUSE/3.6.8-0.1.1 Firefox/3.6.8 In powercom.c (nut-2.4.1) redefinition "types [type].name=KIN" is produced even if in adjustments is set "type=IMP" for UPS Powercom IMP-425AP and similar that leads to erratic determination: "battery.charge: 0.0" Reproducible: Always Steps to Reproduce: 1. Install nut and nut-classic from openSUSE-11.2 OSS 2. Connect the UPS to USB (there is a device/dev/ttyUSB0) which it is registered in /etc/ups/ups.conf .. [myups] driver = powercom port =/dev/ttyUSB0 type = IMP .. 3. Start service upsd (if upsd starts not from root are necessary for exposing beforehand to the user upsd the appropriate rights on/dev/ttyUSB0). 4. Check: upsc myups@localhost Actual Results: battery.charge: 0.0 .. driver.parameter.type: KIN .. ups.mfr: PowerCom ups.model: KIN-425AP ups.model.type: KIN .. Expected Results: battery.charge: 100.0 .. driver.parameter.type: IMP .. ups.mfr: PowerCom ups.model: IMP-425AP ups.model.type: IMP .. Patch for powercom.c which corrects a manual setting of "type" in attachments. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=633994
https://bugzilla.novell.com/show_bug.cgi?id=633994#c
yang xiaoyu
participants (1)
-
bugzilla_noreply@novell.com