No, cause my systemwide IVMan runs with the privileges of 'ivman', a user added by portage. (btw: why does portage that?)
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<ivm:PropertiesConfig version="0.1" xmlns:ivm="http://www.eikke.com/ivm">
<ivm:Option name="checkOnInit" value="true" />
<!-- Hibernate when laptop lid is closed. This and the rest of the ACPI
stuff needs HAL 0.5 or better to work. -->
<!--
<ivm:Match name="hal.info.udi" value="/org/freedesktop/Hal/devices/acpi_LID">
<ivm:Property name="hal.button.state.value">
<ivm:Action value="true" exec="/usr/bin/sudo /usr/sbin/hibernate" />
</ivm:Property>
</ivm:Match>
-->
<!-- Turn 'laptop mode' on if battery is being used, and off if battery gets too low. -->
<ivm:Match name="hal.info.udi" value="/org/freedesktop/Hal/devices/acpi_BAT0">
<ivm:Property name="hal.battery.rechargeable.is_discharging">
<ivm:Action value="true" exec="sudo /usr/sbin/laptop_mode auto && echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" />
<ivm:Action value="false" exec="sudo /usr/sbin/laptop_mode auto && echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" />
</ivm:Property>
<ivm:Property name="hal.battery.charge_level.current">
<ivm:Action value="*" exec="$hal.battery.rechargeable.is_discharging$ && [ $( expr $( expr $hal.battery.charge_level.current$ \* 100 ) / $hal.battery.charge_level.last_full$ ) -lt 5 ] && /usr/sbin/laptop_mode auto" />
</ivm:Property>
</ivm:Match>
</ivm:PropertiesConfig>