Skip to content

Instantly share code, notes, and snippets.

@tlvince tlvince/tlp-stat-pev
Created Apr 21, 2017

Embed
What would you like to do?
--- TLP 0.9.903 --------------------------------------------
+++ Monitor power supply events -- cancel with ^C
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
UDEV [148959.208821] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
POWER_SUPPLY_CAPACITY=99
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_CHARGE_FULL=5187000
POWER_SUPPLY_CHARGE_FULL_DESIGN=5230000
POWER_SUPPLY_CHARGE_NOW=5175000
POWER_SUPPLY_CURRENT_NOW=0
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_MANUFACTURER=CPT-COS
POWER_SUPPLY_MODEL_NAME=R13
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_SERIAL_NUMBER= 4374
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_TECHNOLOGY=Li-poly
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=7660000
POWER_SUPPLY_VOLTAGE_NOW=8797000
SEQNUM=10324
SUBSYSTEM=power_supply
USEC_INITIALIZED=148959145700
UDEV [148959.222996] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:00/ACPI0003:00/power_supply/ADP1 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:00/ACPI0003:00/power_supply/ADP1
POWER_SUPPLY_NAME=ADP1
POWER_SUPPLY_ONLINE=0
SEQNUM=10323
SUBSYSTEM=power_supply
USEC_INITIALIZED=148959043653
UDEV [148966.324846] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
POWER_SUPPLY_CAPACITY=100
POWER_SUPPLY_CAPACITY_LEVEL=Full
POWER_SUPPLY_CHARGE_FULL=5187000
POWER_SUPPLY_CHARGE_FULL_DESIGN=5230000
POWER_SUPPLY_CHARGE_NOW=5187000
POWER_SUPPLY_CURRENT_NOW=0
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_MANUFACTURER=CPT-COS
POWER_SUPPLY_MODEL_NAME=R13
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_SERIAL_NUMBER= 4374
POWER_SUPPLY_STATUS=Full
POWER_SUPPLY_TECHNOLOGY=Li-poly
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=7660000
POWER_SUPPLY_VOLTAGE_NOW=8681000
SEQNUM=10326
SUBSYSTEM=power_supply
USEC_INITIALIZED=148966269030
UDEV [148966.493155] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:00/ACPI0003:00/power_supply/ADP1 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:00/ACPI0003:00/power_supply/ADP1
POWER_SUPPLY_NAME=ADP1
POWER_SUPPLY_ONLINE=1
SEQNUM=10325
SUBSYSTEM=power_supply
USEC_INITIALIZED=148965840322
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.