DeviceKit-power: USB/HID UPS rules update

Arnaud Quette aquette.dev at gmail.com
Fri Nov 20 00:55:29 PST 2009


Hi Richard and the list,

here is another patch for DeviceKit-power, that update the USB/HID UPS
rules file against the latest NUT DB [1].

there are 9 new entries, including most notably all the new Dell UPS
range, upon their request ;-)

cheers,
Arnaud
-- 
[1] http://svn.debian.org/wsvn/nut/trunk/scripts/dkp/95-devkit-power-hid.rules
-- 
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
diff --git a/rules/95-devkit-power-hid.rules b/rules/95-devkit-power-hid.rules
index a450fc4..ebff144 100644
--- a/rules/95-devkit-power-hid.rules
+++ b/rules/95-devkit-power-hid.rules
@@ -14,11 +14,14 @@ ENV{DEVTYPE}=="usb_interface", GOTO="dkp_hid_end"
 
 ATTRS{idVendor}=="03f0", ENV{DKP_VENDOR}="Hewlett Packard"
 ATTRS{idVendor}=="0463", ENV{DKP_VENDOR}="Eaton"
+ATTRS{idVendor}=="047c", ENV{DKP_VENDOR}="Dell"
 ATTRS{idVendor}=="050d", ENV{DKP_VENDOR}="Belkin"
 ATTRS{idVendor}=="051d", ENV{DKP_VENDOR}="APC"
 ATTRS{idVendor}=="06da", ENV{DKP_VENDOR}="Liebert"
 ATTRS{idVendor}=="0764", ENV{DKP_VENDOR}="Cyber Power Systems"
 ATTRS{idVendor}=="09ae", ENV{DKP_VENDOR}="TrippLite"
+ATTRS{idVendor}=="0d9f", ENV{DKP_VENDOR}="PowerCOM"
+ATTRS{idVendor}=="10af", ENV{DKP_VENDOR}="Liebert"
 
 # Hewlett Packard
 ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1f06", ENV{DKP_BATTERY_TYPE}="ups"
@@ -28,6 +31,9 @@ ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1f0a", ENV{DKP_BATTERY_TYPE}="ups"
 ATTRS{idVendor}=="0463", ATTRS{idProduct}=="0001", ENV{DKP_BATTERY_TYPE}="ups"
 ATTRS{idVendor}=="0463", ATTRS{idProduct}=="ffff", ENV{DKP_BATTERY_TYPE}="ups"
 
+# Dell
+ATTRS{idVendor}=="047c", ATTRS{idProduct}=="ffff", ENV{DKP_BATTERY_TYPE}="ups"
+
 # Belkin
 ATTRS{idVendor}=="050d", ATTRS{idProduct}=="0375", ENV{DKP_BATTERY_TYPE}="ups"
 ATTRS{idVendor}=="050d", ATTRS{idProduct}=="0551", ENV{DKP_BATTERY_TYPE}="ups"
@@ -48,10 +54,12 @@ ATTRS{idVendor}=="06da", ATTRS{idProduct}=="ffff", ENV{DKP_BATTERY_TYPE}="ups"
 # Cyber Power Systems
 ATTRS{idVendor}=="0764", ATTRS{idProduct}=="0005", ENV{DKP_BATTERY_TYPE}="ups"
 ATTRS{idVendor}=="0764", ATTRS{idProduct}=="0501", ENV{DKP_BATTERY_TYPE}="ups"
+ATTRS{idVendor}=="0764", ATTRS{idProduct}=="0601", ENV{DKP_BATTERY_TYPE}="ups"
 
 # TrippLite
 ATTRS{idVendor}=="09ae", ATTRS{idProduct}=="1003", ENV{DKP_BATTERY_TYPE}="ups"
 ATTRS{idVendor}=="09ae", ATTRS{idProduct}=="1007", ENV{DKP_BATTERY_TYPE}="ups"
+ATTRS{idVendor}=="09ae", ATTRS{idProduct}=="1008", ENV{DKP_BATTERY_TYPE}="ups"
 ATTRS{idVendor}=="09ae", ATTRS{idProduct}=="2005", ENV{DKP_BATTERY_TYPE}="ups"
 ATTRS{idVendor}=="09ae", ATTRS{idProduct}=="2007", ENV{DKP_BATTERY_TYPE}="ups"
 ATTRS{idVendor}=="09ae", ATTRS{idProduct}=="3012", ENV{DKP_BATTERY_TYPE}="ups"
@@ -60,4 +68,14 @@ ATTRS{idVendor}=="09ae", ATTRS{idProduct}=="4001", ENV{DKP_BATTERY_TYPE}="ups"
 ATTRS{idVendor}=="09ae", ATTRS{idProduct}=="4002", ENV{DKP_BATTERY_TYPE}="ups"
 ATTRS{idVendor}=="09ae", ATTRS{idProduct}=="4003", ENV{DKP_BATTERY_TYPE}="ups"
 
+# PowerCOM
+ATTRS{idVendor}=="0d9f", ATTRS{idProduct}=="00a2", ENV{DKP_BATTERY_TYPE}="ups"
+ATTRS{idVendor}=="0d9f", ATTRS{idProduct}=="00a3", ENV{DKP_BATTERY_TYPE}="ups"
+ATTRS{idVendor}=="0d9f", ATTRS{idProduct}=="00a4", ENV{DKP_BATTERY_TYPE}="ups"
+ATTRS{idVendor}=="0d9f", ATTRS{idProduct}=="00a5", ENV{DKP_BATTERY_TYPE}="ups"
+ATTRS{idVendor}=="0d9f", ATTRS{idProduct}=="00a6", ENV{DKP_BATTERY_TYPE}="ups"
+
+# Liebert
+ATTRS{idVendor}=="10af", ATTRS{idProduct}=="0001", ENV{DKP_BATTERY_TYPE}="ups"
+
 LABEL="dkp_hid_end"


More information about the devkit-devel mailing list