[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apcupsd and hal



On Mon, Oct 27, 2008 at 11:08:55PM +0100, Florian Kulzer wrote:
> On Tue, Oct 28, 2008 at 07:35:10 +1100, Alex Samad wrote:
> > On Sat, Oct 25, 2008 at 11:27:35PM +0200, Florian Kulzer wrote:
> > > On Sun, Oct 26, 2008 at 07:20:24 +1100, Alex Samad wrote:
> > > > On Sat, Oct 25, 2008 at 12:02:07PM +0200, Florian Kulzer wrote:
> > > > > On Sat, Oct 25, 2008 at 16:21:50 +1100, Alex Samad wrote:
> > > > > > Hi
> > 
> > [snip]
> > 
> > > 
> > > If removing the handler leads to the queue filling up then maybe you
> > > could replace it like this: 
> > > 
> > >       <append key="info.addons" type="strlist">/bin/true</append>
> > > 
> > > (I have never tried this.)
> > 
> > Is there a way of overriding the file, by placing another file in
> > /etc/hal .... (instead of editing this file ?)
> 
> As far as I know, FDI files under /etc/hal/fdi are processed after the
> files under /usr/share/hal/fdi/, so I think it should be possible to
> remove the unwanted element from info.addons and then to add /bin/true
> like this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <deviceinfo version="0.2">
>   <device>
>     <match key="hiddev.application_pages" contains="Power Device Page">
>       <remove key="info.addons" type="strlist">hald-addon-hid-ups</remove>
>       <append key="info.addons" type="strlist">/bin/true</append>
>     </match>
>   </device>
> </deviceinfo>

great I will give it a go

thanks

> 
> I would try to put this into a file called /etc/hal/fdi/policy/local.fdi
> or something like that.
> 
> -- 
> Regards,            | http://users.icfo.es/Florian.Kulzer
>           Florian   |
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 

-- 
"Well, that's going to be up to the pundits and the people to make up their mind.  I'll tell you what is a president for him, for example, talking about my record in the state of Texas.  I mean, he's willing to say anything in order to convince people that I haven't had a good record in Texas."

	- George W. Bush
09/20/2000
on MSNBC

Attachment: signature.asc
Description: Digital signature


Reply to: