I had to edit the following files when I wanted to receive emails on other address that 'root' on the particular machine. I belive this variable could be included in apcupsd.conf and sources from these shell scripts: /etc/apcupsd/changeme /etc/apcupsd/commfailure /etc/apcupsd/commok /etc/apcupsd/offbattery /etc/apcupsd/onbattery Alternatively it would be fine to add einfo() message pointing to these files, although necessity to edit all of the is awkward. BTW, I did not test that but this multiple email addresses can be specified as "me@foor other@bar". Finally, to get my ups detected through the USB cable I had to create this file: # cat /etc/udev/rules.d/50-udev.rules KERNEL=="hiddev*", NAME="usb/%k", MODE="0660", GROUP="wheel" # and enable HIDdev and HIDraw in my kernel. Helpful was some gentoo wikipage. At the moment have enabled under 2.6.32 kernel all of these although maybe not all are needed: CONFIG_HID_SUPPORT=y CONFIG_HID=y CONFIG_HIDRAW=y # I think this was necessary CONFIG_USB_HID=y CONFIG_HID_PID=y CONFIG_USB_HIDDEV=y # and this one as well
I'm afraid here we're going to have to separate the issues: - the configuration issue should be brought up with upstream I don't desire to diverge with them on that; - the udev rules shouldn't be necessary given that apcupsd starts up as root; - I'll see to add checks for HIDDEV/HIDRAW asap though.
> - the udev rules shouldn't be necessary given that apcupsd starts up as root; That was mentioned at http://en.gentoo-wiki.com/wiki/Apcupsd , i did not understand what "mk" had to run do create the missing udev file. As I posted I just created it with that one line. > - I'll see to add checks for HIDDEV/HIDRAW asap though. One of these was definitely necessary to get it finding the USB device if no both.
Finally implemented the checks.
It works for me without HIDRAW. Can anyone verify that it is actually necessary?
(In reply to comment #4) > It works for me without HIDRAW. Can anyone verify that it is actually > necessary? OK, so I removed the HIDRAW from my kernel altogether and apcupsd still works and can talk to the UPS. So, I am clarifying my original report and confirm that no HIDRAW is needed. Thanks.