Package: nut-server Version: 2.7.4-8 Severity: important Tags: patch upstream
Dear maintainer, according to the suggestion in https://github.com/networkupstools/nut/issues/483 I tried to apply the upstream commit a08a2292afc5 ("mge-shut/usbhid-ups: list AEG PROTECT NAS vendor 06da"). Before: $ upscmd -l powerwalker Instant commands supported on UPS [powerwalker]: $ After: $ upscmd -l powerwalker Instant commands supported on UPS [powerwalker]: beeper.disable - Disable the UPS beeper beeper.enable - Enable the UPS beeper beeper.mute - Temporarily mute the UPS beeper beeper.off - Obsolete (use beeper.disable or beeper.mute) beeper.on - Obsolete (use beeper.enable) load.off - Turn off the load immediately load.off.delay - Turn off the load with a delay (seconds) load.on - Turn on the load immediately load.on.delay - Turn on the load with a delay (seconds) shutdown.return - Turn off the load and return when power is back shutdown.stayoff - Turn off the load and remain off shutdown.stop - Stop a shutdown in progress test.battery.start.deep - Start a deep battery test test.battery.start.quick - Start a quick battery test test.battery.stop - Stop the battery test $ -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages nut-server depends on: ii adduser 3.118 ii libc6 2.28-4 ii libnspr4 2:4.20-1 ii libnss3 2:3.41-1 ii libupsclient4 2.7.4-8 ii libusb-0.1-4 2:0.1.12-32 ii libwrap0 7.6.q-27 ii lsb-base 10.2018112800 ii nut-client 2.7.4-8 ii udev 240-3 nut-server recommends no packages. Versions of packages nut-server suggests: ii nut-cgi 2.7.4-8 pn nut-ipmi <none> ii nut-snmp 2.7.4-8 pn nut-xml <none> -- no debconf information -- patch >From a08a2292afc559d6dfb9eede014a941d8f6b511d Mon Sep 17 00:00:00 2001 From: Arnaud Quette <arnaud.que...@free.fr> Date: Tue, 17 May 2016 09:26:04 +0200 Subject: [PATCH] mge-shut/usbhid-ups: list AEG PROTECT NAS vendor 06da AEG PROTECT NAS were previously using VendorID / ProductID 0x2b2d / 0xffff, and are now using 0x06da / 0xffff. Also bump the mge-hid subdriver version to 1.40 --- drivers/mge-hid.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mge-hid.c b/drivers/mge-hid.c index a3f10afa..26486c99 100644 --- a/drivers/mge-hid.c +++ b/drivers/mge-hid.c @@ -37,7 +37,7 @@ #include "usbhid-ups.h" #include "mge-hid.h" -#define MGE_HID_VERSION "MGE HID 1.39" +#define MGE_HID_VERSION "MGE HID 1.40" /* (prev. MGE Office Protection Systems, prev. MGE UPS SYSTEMS) */ /* Eaton */ @@ -55,6 +55,9 @@ /* AEG */ #define AEG_VENDORID 0x2b2d +/* Phoenixtec Power Co., Ltd */ +#define PHOENIXTEC 0x06da + #ifndef SHUT_MODE #include "usb-common.h" @@ -80,6 +83,7 @@ static usb_device_id_t mge_usb_device_table[] = { /* PROTECT B / NAS */ { USB_DEVICE(AEG_VENDORID, 0xffff), NULL }, + { USB_DEVICE(PHOENIXTEC, 0xffff), NULL }, /* Terminating entry */ { -1, -1, NULL } -- 2.20.1