help with custom fdi file/hal access

phil happyharrysco1 at yahoo.co.uk
Mon Feb 23 04:52:35 PST 2009


hi there, on fedora10 with hal 0.5.12-14 i'm trying to get some
powersaving settings changed when the psu is connected/disconnected to
my acer aspire one laptop. i have written the script that sets these
powersaving options and i have saved it in
/usr/lib/hal/scripts/hal-aao-powertweaks then i created the file
/etc/hal/fdi/policy/30-aaopowertweaks.fdi with the contents

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
   <match key="ac_adaptor.present" bool="true">
    <append key="info.callouts.add"
type="strlist">/usr/lib/hal/scripts/hal-aao-powertweaks</append>
   </match>
  </device>

<device>
   <match key="ac_adaptor.present" bool="false">
    <append key="info.callouts.remove"
type="strlist">/usr/lib/hal/scripts/hal-aao-powertweaks</append>
   </match>
  </device>
</deviceinfo>

and re-booted but it doesn't work. can anyone point a relative linux
newb in the right direction to get this working

thanks in advance




More information about the hal mailing list