FreeBSD + nut + Liebert Personal XT UPS = Success!

Posted in personal, stuff on November 28th, 2008  (Current Mood: goth/geeky) by darkskye

the title says it all really …

the key to the success was removing “device uhid” from the kernel config file (or adding “nodevice uhid” if you’re including GENERIC by default). And on boot you should get something like:

ugen0: <LIEBERT PowerSure Personal XT, class 0/0, rev 1.10/0.00, addr 2> on uhub0

in the dmesg

The nut config (/usr/local/etc/nut/ups.conf) is nice and simple:[liebert]
driver = usbhid-ups
port = auto
vendorid = 06da

After much (about 10 minutes) thought and deliberation on this, I decided to investigate an alternative approach, which was adding the UPS to the usbdevs and usb_quirks files so that uhid doesn’t need to be chopped out of the kernel.


diff -Naur usb.orig/usb_quirks.c usb/usb_quirks.c
--- usb.orig/usb_quirks.c 2008-11-28 08:22:36.000000000 +0000
+++ usb/usb_quirks.c 2008-11-28 22:56:47.000000000 +0000
@@ -110,6 +110,8 @@
ANY, { UQ_HID_IGNORE }},
{ USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_3G,
ANY, { UQ_HID_IGNORE }},
+ { USB_VENDOR_LIEBERT, USB_PRODUCT_LIEBERT_POWERSURE_PXT,
+ ANY, { UQ_HID_IGNORE }},

/* Devices which should be ignored by both ukbd and uhid */
{ USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_WISPY1A,
diff -Naur usb.orig/usbdevs usb/usbdevs
--- usb.orig/usbdevs 2008-11-28 08:22:54.000000000 +0000
+++ usb/usbdevs 2008-11-28 22:56:53.000000000 +0000
@@ -347,6 +347,7 @@
vendor ASIAMD 0x06be Asia Microelectronic Development
vendor BIZLINK 0x06c4 Bizlink International
vendor KEYSPAN 0x06cd Keyspan / InnoSys Inc.
vendor AASHIMA 0x06d6 Aashima Technology
+vendor LIEBERT 0x06da Liebert
vendor MULTITECH 0x06e0 MultiTech
vendor ADS 0x06e1 ADS Technologies
@@ -1553,6 +1554,9 @@
/* Lexmark products */
product LEXMARK S2450 0x0009 Optra S 2450

+/* Liebert products */
+product LIEBERT POWERSURE_PXT 0xffff PowerSure Personal XT
+
/* Linksys products */
product LINKSYS MAUSB2 0x0105 Camedia MAUSB-2
product LINKSYS USB10TX1 0x200c USB10TX

And like all good little hackers, I have provided the changes to the maintainers, you can follow the progress of the pr here

Beer me!

Tags: , , , , ,

avatastic + mail forwarding = go!

Posted in stuff on November 16th, 2008  (Current Mood: goth/geeky) by darkskye

its been a long time in development planning the back of my mind, but the work has finally been done, and the experiments have been run on the people who are still alive to get mail forwarding up and running.
what this means is, when i get round to writing the front-end, avatastic users will be able to pick an alias, which will then be used to forward mail to the e-mail address they registered with.

the dry technical details of how it works are, as always, a trade secret.

Beer me!

Tags: , , , , ,