Adding a new hook to change the configuration file for upower. The new configuration uses percentages for battery levels and uses power off for the critical battery level action.
commit
47a0bcd26f
@ -0,0 +1,10 @@
|
||||
#! /bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "Updating upower configuration..."
|
||||
|
||||
sed -i 's/^UsePercentageForPolicy=.*/UsePercentageForPolicy=true/' /etc/UPower/UPower.conf
|
||||
sed -i 's/^CriticalPowerAction=.*/CriticalPowerAction=PowerOff/' /etc/UPower/UPower.conf
|
||||
|
||||
|
Loading…
Reference in new issue