Re: [gpm] Configuring what happens when
- From: Andrew Duggan <cmkrnl speakeasy net>
- To: gnome-power-manager-list gnome org
- Subject: Re: [gpm] Configuring what happens when
- Date: Wed, 05 Jul 2006 22:13:06 -0400
Hi,
Alexander Skwar wrote:
Andrew schrieb:
Hi,
Then I rebooted and when I now do a lshal, I see that the value is reset
to the default value.
How can I make it so, that the changes done with hal-set-property
last? Or would I actually have to modify the fdi file?
Sorry for the delay, but this is what I think you want.
The site local location for fdi policy files should be
/etc/hal/fdi/policy
(at least it is on FC5) If you don't have that dir then you might create it
and see. Otherwise you could drop it into
/usr/share/hal/fdi/policy/10osvendor
Create a new file
/etc/hal/fdi/policy/12-custom-power-mgmt-policy.fdi
and set the contents to this
----<snip>-----
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
<remove
key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths"
type="strlist">hal-system-power-suspend</remove>
<remove
key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths"
type="strlist">hal-system-power-hibernate</remove>
<prepend
key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths"
type="strlist">/usr/sbin/hibernate</prepend>
<prepend
key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths"
type="strlist">hal-system-power-suspend</prepend>
</match>
</device>
</deviceinfo>
----<snip>-----
I am attaching it so that the lines aren't wrapped
I tried this on my system and it did replace the hibernate execpath as
expected. (I restarted the hal and checked).
I think /etc/hal/fdi/policy is the preferred location for site/system
specific fdi policy files.
Hope this helps,
Andrew
Alexander Skwar
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
<remove key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-suspend</remove>
<remove key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-hibernate</remove>
<prepend key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">/usr/sbin/hibernate</prepend>
<prepend key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-suspend</prepend>
</match>
</device>
</deviceinfo>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]