Upower driver

Battery type

Arguments

id

Properties

charge
Floating point value.
state
Possible values:
  • unknown
  • charging
  • discharging
  • empty
  • fully charged
  • pending charge
  • pending discharge
capacity
Floating point value.

Events

charge
Fires whenever the value of the charge property changes.
state
Fires whenever the value of the state property changes.
capacity
Fires whenever the value of the capacity property changes.

Mains type

Arguments

id

Properties

online
Boolean (true or false).

Events

online
Fires whenever the value of the online property changes.

Upower type

Properties

lidclosed
Boolean (true or false).
unplugged
Boolean (true or false).
lowbattery
Boolean (true or false).

Events

lidclosed
Fires whenever the value of the lidclosed property changes.
unplugged
Fires whenever the value of the unplugged property changes.
lowbattery
Fires whenever the value of the lowbattery property changes.