search for: nutvalu

Displaying 6 results from an estimated 6 matches for "nutvalu".

Did you mean: nutvalue
2006 Oct 18
1
newhidups with APC Smart-UPS - workaround!
...but it hasn't failed me yet for 3 months in several installations) patch is below: --- nut-2.0.4/drivers/newhidups.c.orig 2006-08-09 11:35:32.000000000 +0400 +++ nut-2.0.4/drivers/newhidups.c 2006-08-09 11:35:44.000000000 +0400 @@ -452,7 +452,7 @@ hid_info_t *item; char *nutvalue; int retcode, evtCount = 0; - HIDItem *eventsList[10]; + HIDItem *eventsList[30]; upsdebugx(1, "upsdrv_updateinfo...");
2018 Feb 04
0
[PATCH 2/3] Add generic facility to override HID report descriptor in usbhid-ups
...fication", "Set notification type, (ignored, only for backward compatibility)"); #endif + + addvar(VAR_VALUE, "hid_descriptor", "Replacement HID descriptor file"); } #define MAX_EVENT_NUM 32 @@ -1093,16 +1095,52 @@ static void process_boolean_info(const char *nutvalue) static int callback(hid_dev_handle_t udev, HIDDevice_t *hd, unsigned char *rdbuf, int rdlen) { int i; - const char *mfr = NULL, *model = NULL, *serial = NULL; + const char *mfr = NULL, *model = NULL, *serial = NULL, *descfile; #ifndef SHUT_MODE int ret; #endif upsdebugx(2, "Report...
2005 Aug 02
0
newhidups for APC Back-UPS ES 650
...2.0.2.orig/drivers/newhidups.c nut-2.0.2/drivers/newhidups.c --- nut-2.0.2.orig/drivers/newhidups.c 2005-06-22 08:10:33.000000000 -0400 +++ nut-2.0.2/drivers/newhidups.c 2005-07-27 10:20:27.000000000 -0400 @@ -294,10 +294,17 @@ else dstate_setinfo(item->info_type, item->dfl, nutvalue); } + else + upsdebugx(3, "%s not affected", item->info_type); /* FIXME: else => revert the status, ie -LB == reset LB... */ } else - upsdebugx(2, "%s = %ld", item->info_type, eventsList[evtCount-1]->Value); + {...
2018 Feb 04
5
[PATCH 0/3] OpenUPS updates
Hi, I've been checking out NUT with an OpenUPS board over the last couple of weekends, and have noticed that it doesn't seem to report sensible values. This lead me to investigate usbhid-ups and delve into various issues. As mentioned in a github issue, one of the problems is with the report descriptor - dumping this from the usbhid-ups debug output and picking through it reveals that
2006 Oct 18
2
newhidups with APC Smart-UPS 1500
...this. There should be no more segmentation fault. Thanks, -- Peter Schmier, Jacob wrote: > > > The source of the segmentation fault is in newhidups.c at line 534. > > 528 > 529 void upsdrv_updateinfo(void) > 530 { > 531 hid_info_t *item; > 532 char *nutvalue; > 533 int retcode, evtCount = 0; > 534 HIDItem *eventsList[10]; > 535 > 536 upsdebugx(1, "upsdrv_updateinfo..."); > 537 > 538 > > The array only holds pointers to 10 HID items. > > > =>Got 16 HID Objects... > > Produc...
2006 Sep 08
3
newhidups with APC Smart-UPS 1500
Hello, I'm using the stable amd64 port of Debian Linux. I installed (the latest) nut-2.0.1-4 and nut-usb packages for utilizing an APC Smart-UPS 1500 USB. I tried "apcupsd" first but "nut" makes an even more sophisticated impression on me and has more security options. I had problems with the newhidups driver. It didn't find a device with matching VendorID. And