Closed Bambus89 closed 4 years ago
I suggest you try the workaround from the FAQ.
That doesn't change anything. As i wrote tlp reads the correct PowerSource plugged and unplugged. But it does not change the Mode equal to the current PowerSource
In your case it doesn't matter if tlp-stat shows the correct source, because the mode is changed by events only --> https://linrunner.de/tlp/developers/architecture.html
You'll have to look if udev power supply events are coming. Start the output with
tlp-stat --pev
and show the event output for
And while we are at it, also show
tlp-stat -b
First thank you for your help ;)
tlp-stat --pev
--- TLP 1.3.1 --------------------------------------------
+++ 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 [16806.231025] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0
SUBSYSTEM=power_supply
POWER_SUPPLY_NAME=AC0
POWER_SUPPLY_TYPE=Mains
POWER_SUPPLY_ONLINE=1
SEQNUM=4506
USEC_INITIALIZED=16806230785
UDEV [16806.243383] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0
SUBSYSTEM=power_supply
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=283
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11400000
POWER_SUPPLY_VOLTAGE_NOW=11400000
POWER_SUPPLY_POWER_NOW=5460000
POWER_SUPPLY_ENERGY_FULL_DESIGN=48336000
POWER_SUPPLY_ENERGY_FULL=40401000
POWER_SUPPLY_ENERGY_NOW=32296000
POWER_SUPPLY_CAPACITY=79
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=ASUS Battery
POWER_SUPPLY_MANUFACTURER=ASUSTeK
POWER_SUPPLY_SERIAL_NUMBER=
SEQNUM=4507
USEC_INITIALIZED=16806243145
UDEV [16806.245474] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0
SUBSYSTEM=power_supply
POWER_SUPPLY_NAME=AC0
POWER_SUPPLY_TYPE=Mains
POWER_SUPPLY_ONLINE=1
SEQNUM=4508
USEC_INITIALIZED=16806245369
UDEV [16806.354038] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0
SUBSYSTEM=power_supply
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=283
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11400000
POWER_SUPPLY_VOLTAGE_NOW=11400000
POWER_SUPPLY_POWER_NOW=5460000
POWER_SUPPLY_ENERGY_FULL_DESIGN=48336000
POWER_SUPPLY_ENERGY_FULL=40401000
POWER_SUPPLY_ENERGY_NOW=32296000
POWER_SUPPLY_CAPACITY=79
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=ASUS Battery
POWER_SUPPLY_MANUFACTURER=ASUSTeK
POWER_SUPPLY_SERIAL_NUMBER=
SEQNUM=4509
USEC_INITIALIZED=16806353809
UDEV [16818.973613] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0
SUBSYSTEM=power_supply
POWER_SUPPLY_NAME=AC0
POWER_SUPPLY_TYPE=Mains
POWER_SUPPLY_ONLINE=0
SEQNUM=4510
USEC_INITIALIZED=16818973375
UDEV [16819.099794] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0
SUBSYSTEM=power_supply
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=283
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11400000
POWER_SUPPLY_VOLTAGE_NOW=11400000
POWER_SUPPLY_POWER_NOW=27759000
POWER_SUPPLY_ENERGY_FULL_DESIGN=48336000
POWER_SUPPLY_ENERGY_FULL=40401000
POWER_SUPPLY_ENERGY_NOW=32433000
POWER_SUPPLY_CAPACITY=80
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=ASUS Battery
POWER_SUPPLY_MANUFACTURER=ASUSTeK
POWER_SUPPLY_SERIAL_NUMBER=
SEQNUM=4511
USEC_INITIALIZED=16819099449
tlp-stat -b
--- TLP 1.3.1 --------------------------------------------
+++ Battery Features: Charge Thresholds and Recalibrate
natacpi = inactive (laptop not supported)
tpacpi-bat = inactive (laptop not supported)
tp-smapi = inactive (laptop not supported)
+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer = ASUSTeK
/sys/class/power_supply/BAT0/model_name = ASUS Battery
/sys/class/power_supply/BAT0/cycle_count = 283
/sys/class/power_supply/BAT0/energy_full_design = 48336 [mWh]
/sys/class/power_supply/BAT0/energy_full = 40401 [mWh]
/sys/class/power_supply/BAT0/energy_now = 32193 [mWh]
/sys/class/power_supply/BAT0/power_now = 5643 [mW]
/sys/class/power_supply/BAT0/status = Discharging
Charge = 79.7 [%]
Capacity = 83.6 [%]
bambus:/home/christian # tlp-stat -b
--- TLP 1.3.1 --------------------------------------------
+++ Battery Features: Charge Thresholds and Recalibrate
natacpi = inactive (laptop not supported)
tpacpi-bat = inactive (laptop not supported)
tp-smapi = inactive (laptop not supported)
+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer = ASUSTeK
/sys/class/power_supply/BAT0/model_name = ASUS Battery
/sys/class/power_supply/BAT0/cycle_count = 283
/sys/class/power_supply/BAT0/energy_full_design = 48336 [mWh]
/sys/class/power_supply/BAT0/energy_full = 40401 [mWh]
/sys/class/power_supply/BAT0/energy_now = 32182 [mWh]
/sys/class/power_supply/BAT0/power_now = 5027 [mW]
/sys/class/power_supply/BAT0/status = Charging
Charge = 79.7 [%]
Capacity = 83.6 [%]
Please enable trace mode by adding
TLP_DEBUG="ps run"
to your configuration. Then Unplug/Plug AC once again and show the trace output with:
tlp-stat -T
first unplugged, second plugged in...
--- TLP 1.3.1 --------------------------------------------
-- Logs begin at Sun 2020-10-04 14:34:05 CEST, end at Mon 2020-10-05 15:09:29 CEST. -- Oct 05 14:58:00 localhost tlp[1926]: Applying power save settings...done. Oct 05 14:58:00 localhost tlp[1926]: Setting battery charge thresholds...done. Oct 05 15:06:02 bambus.fritz.box tlp[5031]: get_sys_power_supply(AC0).ac_offline_remembered Oct 05 15:06:02 bambus.fritz.box tlp[5031]: get_sys_power_supply(BAT0).bat_discharging: syspwr=1 Oct 05 15:06:02 bambus.fritz.box tlp[5031]: +++ start (1.3.1) ++++++++++++++++++++++++++++++++++++++++ Oct 05 15:06:02 bambus.fritz.box tlp[5031]: power_source=bat Oct 05 15:06:02 bambus.fritz.box tlp[5031]: manual_mode=none Oct 05 15:06:02 bambus.fritz.box tlp[5031]: power_mode=bat Oct 05 15:06:02 bambus.fritz.box tlp[5031]: compare_and_save_power_state(1).equal Oct 05 15:06:02 bambus.fritz.box tlp[5031]: save_runconf.ok: /run/tlp/tlp-run.conf_tmpgKx3us -> /run/tlp/run.conf bambus:/home/christian # tlp-stat -T --- TLP 1.3.1 --------------------------------------------
-- Logs begin at Sun 2020-10-04 14:34:05 CEST, end at Mon 2020-10-05 15:10:17 CEST. -- Oct 05 14:58:00 localhost tlp[1926]: Applying power save settings...done. Oct 05 14:58:00 localhost tlp[1926]: Setting battery charge thresholds...done. Oct 05 15:06:02 bambus.fritz.box tlp[5031]: get_sys_power_supply(AC0).ac_offline_remembered Oct 05 15:06:02 bambus.fritz.box tlp[5031]: get_sys_power_supply(BAT0).bat_discharging: syspwr=1 Oct 05 15:06:02 bambus.fritz.box tlp[5031]: +++ start (1.3.1) ++++++++++++++++++++++++++++++++++++++++ Oct 05 15:06:02 bambus.fritz.box tlp[5031]: power_source=bat Oct 05 15:06:02 bambus.fritz.box tlp[5031]: manual_mode=none Oct 05 15:06:02 bambus.fritz.box tlp[5031]: power_mode=bat Oct 05 15:06:02 bambus.fritz.box tlp[5031]: compare_and_save_power_state(1).equal Oct 05 15:06:02 bambus.fritz.box tlp[5031]: save_runconf.ok: /run/tlp/tlp-run.conf_tmpgKx3us -> /run/tlp/run.conf
That is not the expected output for udev power supply events. +++ start
means manual invocation via tlp start
. Power supply events would be +++ auto
.
Something seems to be wrong with your system. Please check if TLP's udev rules file is there:
locate tlp.rules
locate tlp.rules /usr/libexec/udev/rules.d/85-tlp.rules
i have run tlp auto again and the output sems longer now... before i run tlp start.
bambus:/home/christian # tlp auto bambus:/home/christian # tlp-stat -T --- TLP 1.3.1 --------------------------------------------
-- Logs begin at Sun 2020-10-04 14:34:05 CEST, end at Mon 2020-10-05 15:30:16 CEST. -- Oct 05 14:58:00 localhost tlp[1926]: Applying power save settings...done. Oct 05 14:58:00 localhost tlp[1926]: Setting battery charge thresholds...done. Oct 05 15:06:02 bambus.fritz.box tlp[5031]: get_sys_power_supply(AC0).ac_offline_remembered Oct 05 15:06:02 bambus.fritz.box tlp[5031]: get_sys_power_supply(BAT0).bat_discharging: syspwr=1 Oct 05 15:06:02 bambus.fritz.box tlp[5031]: +++ start (1.3.1) ++++++++++++++++++++++++++++++++++++++++ Oct 05 15:06:02 bambus.fritz.box tlp[5031]: power_source=bat Oct 05 15:06:02 bambus.fritz.box tlp[5031]: manual_mode=none Oct 05 15:06:02 bambus.fritz.box tlp[5031]: power_mode=bat Oct 05 15:06:02 bambus.fritz.box tlp[5031]: compare_and_save_power_state(1).equal Oct 05 15:06:02 bambus.fritz.box tlp[5031]: save_runconf.ok: /run/tlp/tlp-run.conf_tmpgKx3us -> /run/tlp/run.conf Oct 05 15:16:19 bambus.fritz.box tlp[6681]: get_sys_power_supply(AC0).ac_offline_remembered Oct 05 15:16:19 bambus.fritz.box tlp[6681]: get_sys_power_supply(BAT0).bat_discharging: syspwr=1 Oct 05 15:16:19 bambus.fritz.box tlp[6681]: +++ start (1.3.1) ++++++++++++++++++++++++++++++++++++++++ Oct 05 15:16:19 bambus.fritz.box tlp[6681]: power_source=bat Oct 05 15:16:19 bambus.fritz.box tlp[6681]: manual_mode=none Oct 05 15:16:19 bambus.fritz.box tlp[6681]: power_mode=bat Oct 05 15:16:19 bambus.fritz.box tlp[6681]: compare_and_save_power_state(1).equal Oct 05 15:16:20 bambus.fritz.box tlp[6681]: save_runconf.ok: /run/tlp/tlp-run.conf_tmp9der4p -> /run/tlp/run.conf Oct 05 15:30:16 bambus.fritz.box tlp[9052]: get_sys_power_supply(AC0).ac_offline_remembered Oct 05 15:30:16 bambus.fritz.box tlp[9052]: get_sys_power_supply(BAT0).bat_discharging: syspwr=1 Oct 05 15:30:16 bambus.fritz.box tlp[9052]: +++ auto (1.3.1) ++++++++++++++++++++++++++++++++++++++++ Oct 05 15:30:16 bambus.fritz.box tlp[9052]: power_source=bat Oct 05 15:30:16 bambus.fritz.box tlp[9052]: manual_mode=none Oct 05 15:30:16 bambus.fritz.box tlp[9052]: power_mode=bat Oct 05 15:30:16 bambus.fritz.box tlp[9052]: compare_and_save_power_state(1).equal bambus:/home/christian # tlp-stat -T --- TLP 1.3.1 --------------------------------------------
-- Logs begin at Sun 2020-10-04 14:34:05 CEST, end at Mon 2020-10-05 15:30:16 CEST. -- Oct 05 14:58:00 localhost tlp[1926]: Applying power save settings...done. Oct 05 14:58:00 localhost tlp[1926]: Setting battery charge thresholds...done. Oct 05 15:06:02 bambus.fritz.box tlp[5031]: get_sys_power_supply(AC0).ac_offline_remembered Oct 05 15:06:02 bambus.fritz.box tlp[5031]: get_sys_power_supply(BAT0).bat_discharging: syspwr=1 Oct 05 15:06:02 bambus.fritz.box tlp[5031]: +++ start (1.3.1) ++++++++++++++++++++++++++++++++++++++++ Oct 05 15:06:02 bambus.fritz.box tlp[5031]: power_source=bat Oct 05 15:06:02 bambus.fritz.box tlp[5031]: manual_mode=none Oct 05 15:06:02 bambus.fritz.box tlp[5031]: power_mode=bat Oct 05 15:06:02 bambus.fritz.box tlp[5031]: compare_and_save_power_state(1).equal Oct 05 15:06:02 bambus.fritz.box tlp[5031]: save_runconf.ok: /run/tlp/tlp-run.conf_tmpgKx3us -> /run/tlp/run.conf Oct 05 15:16:19 bambus.fritz.box tlp[6681]: get_sys_power_supply(AC0).ac_offline_remembered Oct 05 15:16:19 bambus.fritz.box tlp[6681]: get_sys_power_supply(BAT0).bat_discharging: syspwr=1 Oct 05 15:16:19 bambus.fritz.box tlp[6681]: +++ start (1.3.1) ++++++++++++++++++++++++++++++++++++++++ Oct 05 15:16:19 bambus.fritz.box tlp[6681]: power_source=bat Oct 05 15:16:19 bambus.fritz.box tlp[6681]: manual_mode=none Oct 05 15:16:19 bambus.fritz.box tlp[6681]: power_mode=bat Oct 05 15:16:19 bambus.fritz.box tlp[6681]: compare_and_save_power_state(1).equal Oct 05 15:16:20 bambus.fritz.box tlp[6681]: save_runconf.ok: /run/tlp/tlp-run.conf_tmp9der4p -> /run/tlp/run.conf Oct 05 15:30:16 bambus.fritz.box tlp[9052]: get_sys_power_supply(AC0).ac_offline_remembered Oct 05 15:30:16 bambus.fritz.box tlp[9052]: get_sys_power_supply(BAT0).bat_discharging: syspwr=1 Oct 05 15:30:16 bambus.fritz.box tlp[9052]: +++ auto (1.3.1) ++++++++++++++++++++++++++++++++++++++++ Oct 05 15:30:16 bambus.fritz.box tlp[9052]: power_source=bat Oct 05 15:30:16 bambus.fritz.box tlp[9052]: manual_mode=none Oct 05 15:30:16 bambus.fritz.box tlp[9052]: power_mode=bat Oct 05 15:30:16 bambus.fritz.box tlp[9052]: compare_and_save_power_state(1).equal
Stop it, i didn't mean invoking tlp auto
or anything else manually. udevd should do it automatically when the power supply events occur. We have to check the logs.
Enable debug logs for udevd:
udevadm control --log-priority=debug
Unplug/Plug AC and show log output:
journalctl -u systemd-udevd | grep tlp.rules
have done it. No Output
Bad. Another udevd rule check:
udevadm test -a change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0
udevadm test -a change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0
udevadm test -a change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0 This program is for debugging only, it does not run any program specified by a RUN key. It may show incorrect results, because some values may be different, or not available at a simulation run.
Load module index Parsed configuration file /usr/lib/systemd/network/99-default.link Created link configuration context. Reading rules file: /usr/lib/udev/rules.d/00-dont-del-part-nodes.rules Reading rules file: /usr/lib/udev/rules.d/01-md-raid-creating.rules Reading rules file: /usr/lib/udev/rules.d/10-dm.rules Reading rules file: /usr/lib/udev/rules.d/11-dm-lvm.rules Reading rules file: /usr/lib/udev/rules.d/11-dm-mpath.rules Reading rules file: /usr/lib/udev/rules.d/11-dm-parts.rules Reading rules file: /usr/lib/udev/rules.d/13-dm-disk.rules Reading rules file: /usr/lib/udev/rules.d/39-usbmuxd.rules Reading rules file: /usr/lib/udev/rules.d/40-libgphoto2.rules Reading rules file: /usr/lib/udev/rules.d/40-usb-blacklist.rules Reading rules file: /usr/lib/udev/rules.d/40-usb_modeswitch.rules Reading rules file: /usr/lib/udev/rules.d/42-hd-audio-pm.rules Reading rules file: /usr/lib/udev/rules.d/42-usb-hid-pm.rules Reading rules file: /usr/lib/udev/rules.d/50-iscsi-firmware-login.rules Reading rules file: /usr/lib/udev/rules.d/50-udev-default.rules Reading rules file: /usr/lib/udev/rules.d/54-before-scsi-sg3_id.rules Reading rules file: /usr/lib/udev/rules.d/55-Argyll.rules Reading rules file: /usr/lib/udev/rules.d/55-libsane.rules Reading rules file: /usr/lib/udev/rules.d/55-scsi-sg3_id.rules Reading rules file: /usr/lib/udev/rules.d/56-multipath.rules Reading rules file: /usr/lib/udev/rules.d/56-sane-backends-autoconfig.rules Reading rules file: /usr/lib/udev/rules.d/58-scsi-sg3_symlink.rules Reading rules file: /usr/lib/udev/rules.d/59-fc-wwpn-id.rules Reading rules file: /usr/lib/udev/rules.d/60-autosuspend.rules Reading rules file: /usr/lib/udev/rules.d/60-block.rules Reading rules file: /usr/lib/udev/rules.d/60-cdrom_id.rules Reading rules file: /usr/lib/udev/rules.d/60-drm.rules Reading rules file: /usr/lib/udev/rules.d/60-evdev.rules Reading rules file: /usr/lib/udev/rules.d/60-fido-id.rules Reading rules file: /usr/lib/udev/rules.d/60-input-id.rules Reading rules file: /usr/lib/udev/rules.d/60-io-scheduler.rules Reading rules file: /usr/lib/udev/rules.d/60-pcmcia.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-alsa.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-input.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-storage-tape.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-storage.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-v4l.rules Reading rules file: /usr/lib/udev/rules.d/60-scdaemon.rules Reading rules file: /usr/lib/udev/rules.d/60-sensor.rules Reading rules file: /usr/lib/udev/rules.d/60-serial.rules Reading rules file: /usr/lib/udev/rules.d/60-vboxdrv.rules Reading rules file: /usr/lib/udev/rules.d/61-gdm.rules Reading rules file: /usr/lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules Reading rules file: /usr/lib/udev/rules.d/61-persistent-storage-compat.rules Reading rules file: /usr/lib/udev/rules.d/63-md-raid-arrays.rules Reading rules file: /usr/lib/udev/rules.d/64-btrfs-dm.rules Reading rules file: /usr/lib/udev/rules.d/64-btrfs.rules Reading rules file: /usr/lib/udev/rules.d/64-md-raid-assembly.rules Reading rules file: /usr/lib/udev/rules.d/65-libwacom.rules Reading rules file: /usr/lib/udev/rules.d/65-wacom.rules Reading rules file: /usr/lib/udev/rules.d/66-kpartx.rules Reading rules file: /usr/lib/udev/rules.d/68-del-part-nodes.rules Reading rules file: /usr/lib/udev/rules.d/69-cd-sensors.rules Reading rules file: /usr/lib/udev/rules.d/69-dm-lvm-metad.rules Reading rules file: /usr/lib/udev/rules.d/69-libmtp.rules Reading rules file: /usr/lib/udev/rules.d/69-md-clustered-confirm-device.rules Reading rules file: /usr/lib/udev/rules.d/69-xorg-vmmouse.rules Reading rules file: /usr/lib/udev/rules.d/70-fido2.rules Reading rules file: /usr/lib/udev/rules.d/70-joystick.rules Reading rules file: /usr/lib/udev/rules.d/70-mouse.rules Reading rules file: /usr/lib/udev/rules.d/70-power-switch.rules Reading rules file: /usr/lib/udev/rules.d/70-printers.rules Reading rules file: /usr/lib/udev/rules.d/70-touchpad.rules Reading rules file: /usr/lib/udev/rules.d/70-uaccess.rules Reading rules file: /usr/lib/udev/rules.d/71-seat.rules Reading rules file: /usr/lib/udev/rules.d/73-seat-late.rules Reading rules file: /usr/lib/udev/rules.d/75-net-description.rules Reading rules file: /usr/lib/udev/rules.d/75-probe_mtd.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-cinterion-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-dell-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-dlink-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-ericsson-mbm.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-fibocom-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-haier-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-huawei-net-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-longcheer-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-mtk-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-nokia-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-quectel-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-sierra.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-simtech-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-telit-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-tplink-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-ublox-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-usb-device-blacklist.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-x22x-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-zte-port-types.rules Reading rules file: /usr/lib/udev/rules.d/78-sound-card.rules Reading rules file: /usr/lib/udev/rules.d/80-drivers.rules Reading rules file: /usr/lib/udev/rules.d/80-hotplug-cpu-mem.rules Reading rules file: /usr/lib/udev/rules.d/80-iio-sensor-proxy.rules Reading rules file: /usr/lib/udev/rules.d/80-libinput-device-groups.rules Reading rules file: /usr/lib/udev/rules.d/80-mm-candidate.rules Reading rules file: /usr/lib/udev/rules.d/80-net-setup-link.rules Reading rules file: /usr/lib/udev/rules.d/80-udisks2.rules Reading rules file: /usr/lib/udev/rules.d/84-nm-drivers.rules Reading rules file: /usr/lib/udev/rules.d/85-nm-unmanaged.rules Reading rules file: /usr/lib/udev/rules.d/85-regulatory.rules Reading rules file: /usr/lib/udev/rules.d/90-alsa-restore.rules Reading rules file: /usr/lib/udev/rules.d/90-bolt.rules Reading rules file: /usr/lib/udev/rules.d/90-fwupd-devices.rules Reading rules file: /usr/lib/udev/rules.d/90-haveged.rules Reading rules file: /usr/lib/udev/rules.d/90-issue-generator.rules Reading rules file: /usr/lib/udev/rules.d/90-libinput-fuzz-override.rules Reading rules file: /usr/lib/udev/rules.d/90-nm-thunderbolt.rules Reading rules file: /usr/lib/udev/rules.d/90-pulseaudio.rules Reading rules file: /usr/lib/udev/rules.d/90-vconsole.rules Reading rules file: /usr/lib/udev/rules.d/95-cd-devices.rules Reading rules file: /usr/lib/udev/rules.d/95-dm-notify.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-csr.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-hid.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-hidpp.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-wup.rules Reading rules file: /usr/lib/udev/rules.d/97-hid2hci.rules Reading rules file: /usr/lib/udev/rules.d/99-iwlwifi-led.rules Reading rules file: /usr/lib/udev/rules.d/99-systemd.rules Reading rules file: /usr/lib/udev/rules.d/99-wakeup-from-idle.rules DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/ACPI0003:00/power_supply/AC0 POWER_SUPPLY_NAME=AC0 POWER_SUPPLY_TYPE=Mains POWER_SUPPLY_ONLINE=1 ACTION=change SUBSYSTEM=power_supply USEC_INITIALIZED=3278990260 Unload module index Unloaded link configuration context.
udevadm test -a change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0 This program is for debugging only, it does not run any program specified by a RUN key. It may show incorrect results, because some values may be different, or not available at a simulation run.
Load module index Parsed configuration file /usr/lib/systemd/network/99-default.link Created link configuration context. Reading rules file: /usr/lib/udev/rules.d/00-dont-del-part-nodes.rules Reading rules file: /usr/lib/udev/rules.d/01-md-raid-creating.rules Reading rules file: /usr/lib/udev/rules.d/10-dm.rules Reading rules file: /usr/lib/udev/rules.d/11-dm-lvm.rules Reading rules file: /usr/lib/udev/rules.d/11-dm-mpath.rules Reading rules file: /usr/lib/udev/rules.d/11-dm-parts.rules Reading rules file: /usr/lib/udev/rules.d/13-dm-disk.rules Reading rules file: /usr/lib/udev/rules.d/39-usbmuxd.rules Reading rules file: /usr/lib/udev/rules.d/40-libgphoto2.rules Reading rules file: /usr/lib/udev/rules.d/40-usb-blacklist.rules Reading rules file: /usr/lib/udev/rules.d/40-usb_modeswitch.rules Reading rules file: /usr/lib/udev/rules.d/42-hd-audio-pm.rules Reading rules file: /usr/lib/udev/rules.d/42-usb-hid-pm.rules Reading rules file: /usr/lib/udev/rules.d/50-iscsi-firmware-login.rules Reading rules file: /usr/lib/udev/rules.d/50-udev-default.rules Reading rules file: /usr/lib/udev/rules.d/54-before-scsi-sg3_id.rules Reading rules file: /usr/lib/udev/rules.d/55-Argyll.rules Reading rules file: /usr/lib/udev/rules.d/55-libsane.rules Reading rules file: /usr/lib/udev/rules.d/55-scsi-sg3_id.rules Reading rules file: /usr/lib/udev/rules.d/56-multipath.rules Reading rules file: /usr/lib/udev/rules.d/56-sane-backends-autoconfig.rules Reading rules file: /usr/lib/udev/rules.d/58-scsi-sg3_symlink.rules Reading rules file: /usr/lib/udev/rules.d/59-fc-wwpn-id.rules Reading rules file: /usr/lib/udev/rules.d/60-autosuspend.rules Reading rules file: /usr/lib/udev/rules.d/60-block.rules Reading rules file: /usr/lib/udev/rules.d/60-cdrom_id.rules Reading rules file: /usr/lib/udev/rules.d/60-drm.rules Reading rules file: /usr/lib/udev/rules.d/60-evdev.rules Reading rules file: /usr/lib/udev/rules.d/60-fido-id.rules Reading rules file: /usr/lib/udev/rules.d/60-input-id.rules Reading rules file: /usr/lib/udev/rules.d/60-io-scheduler.rules Reading rules file: /usr/lib/udev/rules.d/60-pcmcia.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-alsa.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-input.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-storage-tape.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-storage.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-v4l.rules Reading rules file: /usr/lib/udev/rules.d/60-scdaemon.rules Reading rules file: /usr/lib/udev/rules.d/60-sensor.rules Reading rules file: /usr/lib/udev/rules.d/60-serial.rules Reading rules file: /usr/lib/udev/rules.d/60-vboxdrv.rules Reading rules file: /usr/lib/udev/rules.d/61-gdm.rules Reading rules file: /usr/lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules Reading rules file: /usr/lib/udev/rules.d/61-persistent-storage-compat.rules Reading rules file: /usr/lib/udev/rules.d/63-md-raid-arrays.rules Reading rules file: /usr/lib/udev/rules.d/64-btrfs-dm.rules Reading rules file: /usr/lib/udev/rules.d/64-btrfs.rules Reading rules file: /usr/lib/udev/rules.d/64-md-raid-assembly.rules Reading rules file: /usr/lib/udev/rules.d/65-libwacom.rules Reading rules file: /usr/lib/udev/rules.d/65-wacom.rules Reading rules file: /usr/lib/udev/rules.d/66-kpartx.rules Reading rules file: /usr/lib/udev/rules.d/68-del-part-nodes.rules Reading rules file: /usr/lib/udev/rules.d/69-cd-sensors.rules Reading rules file: /usr/lib/udev/rules.d/69-dm-lvm-metad.rules Reading rules file: /usr/lib/udev/rules.d/69-libmtp.rules Reading rules file: /usr/lib/udev/rules.d/69-md-clustered-confirm-device.rules Reading rules file: /usr/lib/udev/rules.d/69-xorg-vmmouse.rules Reading rules file: /usr/lib/udev/rules.d/70-fido2.rules Reading rules file: /usr/lib/udev/rules.d/70-joystick.rules Reading rules file: /usr/lib/udev/rules.d/70-mouse.rules Reading rules file: /usr/lib/udev/rules.d/70-power-switch.rules Reading rules file: /usr/lib/udev/rules.d/70-printers.rules Reading rules file: /usr/lib/udev/rules.d/70-touchpad.rules Reading rules file: /usr/lib/udev/rules.d/70-uaccess.rules Reading rules file: /usr/lib/udev/rules.d/71-seat.rules Reading rules file: /usr/lib/udev/rules.d/73-seat-late.rules Reading rules file: /usr/lib/udev/rules.d/75-net-description.rules Reading rules file: /usr/lib/udev/rules.d/75-probe_mtd.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-cinterion-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-dell-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-dlink-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-ericsson-mbm.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-fibocom-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-haier-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-huawei-net-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-longcheer-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-mtk-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-nokia-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-quectel-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-sierra.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-simtech-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-telit-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-tplink-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-ublox-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-usb-device-blacklist.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-x22x-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-zte-port-types.rules Reading rules file: /usr/lib/udev/rules.d/78-sound-card.rules Reading rules file: /usr/lib/udev/rules.d/80-drivers.rules Reading rules file: /usr/lib/udev/rules.d/80-hotplug-cpu-mem.rules Reading rules file: /usr/lib/udev/rules.d/80-iio-sensor-proxy.rules Reading rules file: /usr/lib/udev/rules.d/80-libinput-device-groups.rules Reading rules file: /usr/lib/udev/rules.d/80-mm-candidate.rules Reading rules file: /usr/lib/udev/rules.d/80-net-setup-link.rules Reading rules file: /usr/lib/udev/rules.d/80-udisks2.rules Reading rules file: /usr/lib/udev/rules.d/84-nm-drivers.rules Reading rules file: /usr/lib/udev/rules.d/85-nm-unmanaged.rules Reading rules file: /usr/lib/udev/rules.d/85-regulatory.rules Reading rules file: /usr/lib/udev/rules.d/90-alsa-restore.rules Reading rules file: /usr/lib/udev/rules.d/90-bolt.rules Reading rules file: /usr/lib/udev/rules.d/90-fwupd-devices.rules Reading rules file: /usr/lib/udev/rules.d/90-haveged.rules Reading rules file: /usr/lib/udev/rules.d/90-issue-generator.rules Reading rules file: /usr/lib/udev/rules.d/90-libinput-fuzz-override.rules Reading rules file: /usr/lib/udev/rules.d/90-nm-thunderbolt.rules Reading rules file: /usr/lib/udev/rules.d/90-pulseaudio.rules Reading rules file: /usr/lib/udev/rules.d/90-vconsole.rules Reading rules file: /usr/lib/udev/rules.d/95-cd-devices.rules Reading rules file: /usr/lib/udev/rules.d/95-dm-notify.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-csr.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-hid.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-hidpp.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-wup.rules Reading rules file: /usr/lib/udev/rules.d/97-hid2hci.rules Reading rules file: /usr/lib/udev/rules.d/99-iwlwifi-led.rules Reading rules file: /usr/lib/udev/rules.d/99-systemd.rules Reading rules file: /usr/lib/udev/rules.d/99-wakeup-from-idle.rules DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/PNP0C09:01/PNP0C0A:03/power_supply/BAT0 POWER_SUPPLY_NAME=BAT0 POWER_SUPPLY_TYPE=Battery POWER_SUPPLY_STATUS=Discharging POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Li-ion POWER_SUPPLY_CYCLE_COUNT=284 POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11400000 POWER_SUPPLY_VOLTAGE_NOW=11400000 POWER_SUPPLY_POWER_NOW=8151000 POWER_SUPPLY_ENERGY_FULL_DESIGN=48336000 POWER_SUPPLY_ENERGY_FULL=40572000 POWER_SUPPLY_ENERGY_NOW=16245000 POWER_SUPPLY_CAPACITY=40 POWER_SUPPLY_CAPACITY_LEVEL=Normal POWER_SUPPLY_MODEL_NAME=ASUS Battery POWER_SUPPLY_MANUFACTURER=ASUSTeK POWER_SUPPLY_SERIAL_NUMBER= ACTION=change SUBSYSTEM=power_supply USEC_INITIALIZED=3299993679 Unload module index Unloaded link configuration context.
Thanks.
My conclusion: the package you installed (from the openSUSE repos i assume) is severely broken:
I suggest you file a bug report against the openSUSE package (refer to this issue).
Thank you for figuring this out ;) I file a bug on openSuSe
You're welcome. Please report back here when the package is fixed.
Status Update: I copied the udev rules to the correct path to fix the issue myself as a workaround.
I have reported this bug on opensuse bugzilla https://bugzilla.opensuse.org/show_bug.cgi?id=1177313.
The Bug and workaround was confirmed by Bugzilla.
Hoping they will fix this soon with a new release of the package.
Thank you again for the fast support ;)
The bug is now solved by openSuSE and a new version is up in the tumbleweed repos.
Great. Thanks for the news.
Hello there,
TLP doesn't change the Mode on (un)plugging. It recognices the correct Power Source but did not change the right Mode.
I'm on openSuSe Tumbleweed and TLP 1.3.1