« Return to Thread: new hal policy file

new hal policy file

by Andrew Telford :: Rate this Message:

Reply to Author | View in Thread

I have an APC usb UPS and the process 'hald-addon-hid-ups' was slowly growing and using up all my RAM (Gentoo stable x86).

I noted that the latest release 3.14.3 installs a new hal policy file so upgraded to in the hope that it would fix things. The policy file syntax was not accepted by hal. I got an error:

hald[12708]: error in fdi file /etc/hal/fdi/policy/80-apcupsd-ups-policy.fdi:5: Bad rule: unknown type_match

I had a quick scan of the hal documents, and it appears that the first "match" tag has incorrect syntax.  Here is my patch

5c5
<     <match key="info.addons" type="strlist">hald-addon-hid-ups</match>
---
>     <match key="info.addons" contains="hald-addon-hid-ups">

Does this make sense? In any case, the process 'hald-addon-hid-ups'  does not start anymore, so apcupsd has sole access to the UPS which is what I think was supposed to happen,

Andrew


      Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Apcupsd-users mailing list
Apcupsd-users@...
https://lists.sourceforge.net/lists/listinfo/apcupsd-users

 « Return to Thread: new hal policy file