You are not logged in.

#1 2017-07-08 07:05:17

jancici
Member
From: svk
Registered: 2011-12-04
Posts: 194

configuration of UPower :: time units?

My desktop is powered over UPS and looks that my battery is old so it can handle much shorter time without electricity.
Before I will upgrade battery I need to configure upower to shutdown desktop much sooner.

here is my config now:

[UPower]

EnableWattsUpPro=false

NoPollBatteries=false

IgnoreLid=false

UsePercentageForPolicy=true

PercentageLow=75
PercentageCritical=70
PercentageAction=65

TimeLow=12
TimeCritical=6
TimeAction=6

CriticalPowerAction=PowerOff

so if percetage get lower that 75% it will triger "low" and if it below 65% it will power off

but I am not sure about time unit.
IS it in seconds? miliseconds? or minutes?
I want to configure that too, because I am not sure if my UPS support that ...


here is upower info about UPS

upower -i /org/freedesktop/UPower/devices/ups_hiddev0
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13:1.0/usbmisc/hiddev0
  power supply:         yes
  updated:              Sat 08 Jul 2017 09:03:39 CEST (1 seconds ago)
  has history:          yes
  has statistics:       yes
  ups
    present:             yes
    state:               charging
    warning-level:       none
    time to empty:       11.8 minutes
    percentage:          94%
    icon-name:          'battery-full-charging-symbolic'

Offline

#2 2017-07-08 10:33:18

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: configuration of UPower :: time units?

Seconds is the most likely unit, since the dbus interface reports the remaining time in seconds.

https://upower.freedesktop.org/docs/Dev … imeToEmpty


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB