Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tlp for openSUSE:Factory checked in at 2026-09-08 16:56:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tlp (Old) and /work/SRC/openSUSE:Factory/.tlp.new.1265 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tlp" Tue Sep 8 16:56:38 2026 rev:29 rq:1376154 version:1.10.2 Changes: -------- --- /work/SRC/openSUSE:Factory/tlp/tlp.changes 2026-05-19 17:51:29.883434328 +0200 +++ /work/SRC/openSUSE:Factory/.tlp.new.1265/tlp.changes 2026-09-08 16:59:16.645897998 +0200 @@ -1,0 +2,18 @@ +Tue Sep 01 01:07:43 UTC 2026 - Holden Fried <[email protected]> + +- Update to version 1.10.2: + * *** 1.10.2 Release *** + * manpages: update version, date + * VERSION/changelog: 1.10.2 + * bat.d/asus: update unit-tests for "no data" + * bat.d/asus: tlp-stat -b: display the kernel's -ENODATA as “no data” + * bat.d/asus: explain solution to issue #890 + * bat.d/asus: fix charge threshold for kernel 7.1 + * Restrict USB charger detection to PD/PPS + * tlp-stat -b: base mA(h) -> mW(h) conversion on voltage_min_design + * tlp-stat -b: label calculated mW(h) ratings as approximations + * Ignore laptop_mode with kernel >= 7.0 + * Log non-existent vm.laptop_mode + * fix: skip vm.laptop_mode on kernels that removed the sysctl + +------------------------------------------------------------------- Old: ---- TLP-1.10.1.obscpio New: ---- TLP-1.10.2.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tlp.spec ++++++ --- /var/tmp/diff_new_pack.b8lwT5/_old 2026-09-08 16:59:17.726943257 +0200 +++ /var/tmp/diff_new_pack.b8lwT5/_new 2026-09-08 16:59:17.727943299 +0200 @@ -25,7 +25,7 @@ %endif %{!?_udevrulesdir: %define _udevrulesdir %{_udevdir}/rules.d} Name: tlp -Version: 1.10.1 +Version: 1.10.2 Release: 0 Summary: Tools to save battery power on laptops License: GPL-2.0-or-later AND GPL-3.0-or-later ++++++ TLP-1.10.1.obscpio -> TLP-1.10.2.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/VERSION new/TLP-1.10.2/VERSION --- old/TLP-1.10.1/VERSION 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/VERSION 2026-07-06 09:52:57.000000000 +0200 @@ -1 +1 @@ -1.10.1 +1.10.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/05-thinkpad new/TLP-1.10.2/bat.d/05-thinkpad --- old/TLP-1.10.1/bat.d/05-thinkpad 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/05-thinkpad 2026-07-06 09:52:57.000000000 +0200 @@ -1103,7 +1103,7 @@ _bat_efsum=$((_bat_efsum + _bat_ef)) _bat_ensum=$((_bat_ensum + _bat_en)) else - print_bat_energy + print_bat_energy "$verbose" fi print_bat_state "$_bd_read/status" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/10-thinkpad-legacy new/TLP-1.10.2/bat.d/10-thinkpad-legacy --- old/TLP-1.10.1/bat.d/10-thinkpad-legacy 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/10-thinkpad-legacy 2026-07-06 09:52:57.000000000 +0200 @@ -935,7 +935,7 @@ natacpi) # no tp-smapi --> use ACPI data print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/15-lenovo new/TLP-1.10.2/bat.d/15-lenovo --- old/TLP-1.10.1/bat.d/15-lenovo 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/15-lenovo 2026-07-06 09:52:57.000000000 +0200 @@ -448,7 +448,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/16-lenovo-legacy new/TLP-1.10.2/bat.d/16-lenovo-legacy --- old/TLP-1.10.1/bat.d/16-lenovo-legacy 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/16-lenovo-legacy 2026-07-06 09:52:57.000000000 +0200 @@ -419,7 +419,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/20-huawei new/TLP-1.10.2/bat.d/20-huawei --- old/TLP-1.10.1/bat.d/20-huawei 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/20-huawei 2026-07-06 09:52:57.000000000 +0200 @@ -472,7 +472,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/25-msi new/TLP-1.10.2/bat.d/25-msi --- old/TLP-1.10.1/bat.d/25-msi 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/25-msi 2026-07-06 09:52:57.000000000 +0200 @@ -516,7 +516,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/30-samsung new/TLP-1.10.2/bat.d/30-samsung --- old/TLP-1.10.1/bat.d/30-samsung 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/30-samsung 2026-07-06 09:52:57.000000000 +0200 @@ -440,7 +440,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/35-lg new/TLP-1.10.2/bat.d/35-lg --- old/TLP-1.10.1/bat.d/35-lg 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/35-lg 2026-07-06 09:52:57.000000000 +0200 @@ -468,7 +468,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/40-sony new/TLP-1.10.2/bat.d/40-sony --- old/TLP-1.10.1/bat.d/40-sony 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/40-sony 2026-07-06 09:52:57.000000000 +0200 @@ -443,7 +443,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/45-system76 new/TLP-1.10.2/bat.d/45-system76 --- old/TLP-1.10.1/bat.d/45-system76 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/45-system76 2026-07-06 09:52:57.000000000 +0200 @@ -565,7 +565,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/50-toshiba new/TLP-1.10.2/bat.d/50-toshiba --- old/TLP-1.10.1/bat.d/50-toshiba 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/50-toshiba 2026-07-06 09:52:57.000000000 +0200 @@ -461,7 +461,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/55-cros-ec new/TLP-1.10.2/bat.d/55-cros-ec --- old/TLP-1.10.1/bat.d/55-cros-ec 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/55-cros-ec 2026-07-06 09:52:57.000000000 +0200 @@ -984,7 +984,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/60-macbook new/TLP-1.10.2/bat.d/60-macbook --- old/TLP-1.10.1/bat.d/60-macbook 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/60-macbook 2026-07-06 09:52:57.000000000 +0200 @@ -566,7 +566,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/65-dell new/TLP-1.10.2/bat.d/65-dell --- old/TLP-1.10.1/bat.d/65-dell 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/65-dell 2026-07-06 09:52:57.000000000 +0200 @@ -596,7 +596,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/66-wilco-ec new/TLP-1.10.2/bat.d/66-wilco-ec --- old/TLP-1.10.1/bat.d/66-wilco-ec 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/66-wilco-ec 2026-07-06 09:52:57.000000000 +0200 @@ -600,7 +600,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/70-tuxedo new/TLP-1.10.2/bat.d/70-tuxedo --- old/TLP-1.10.1/bat.d/70-tuxedo 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/70-tuxedo 2026-07-06 09:52:57.000000000 +0200 @@ -616,7 +616,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/89-asus new/TLP-1.10.2/bat.d/89-asus --- old/TLP-1.10.1/bat.d/89-asus 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/89-asus 2026-07-06 09:52:57.000000000 +0200 @@ -1,5 +1,5 @@ #!/bin/sh -# 15-asus - Battery Plugin for ASUS laptops w/ asus_wmi driver +# 89-asus - Battery Plugin for ASUS laptops w/ asus_wmi driver # # Copyright (c) 2026 Thomas Koch <linrunner at gmx.net> and others. # SPDX-License-Identifier: GPL-2.0-or-later @@ -91,8 +91,14 @@ if [ "$NATACPI_ENABLE" = "0" ]; then # natacpi disabled in configuration --> skip actual detection _natacpi=32 - elif [ -f "$bd/charge_control_end_threshold" ] && readable_sysf "$bd/charge_control_end_threshold"; then - # sysfile for stop threshold exists and is actually readable + elif [ -f "$bd/charge_control_end_threshold" ]; then + # sysfile for stop threshold exists + # note: the threshold value cannot be read from the ASUS hardware. + # starting with 7.1 the kernel returns -ENODATA "No data available" + # after boot instead of resetting the threshold to 100 and returning + # that value. thus, do not read threshold during initialization since + # it will only be readable after the first write. + # https://github.com/torvalds/linux/commit/186bf9031666602d61b40832181b6b6fdc3ba4dc _natacpi=0 _bm_thresh="natacpi" _bn_stop="charge_control_end_threshold" @@ -200,7 +206,7 @@ if [ "$1" != "1" ]; then out="" else - out="(not available)" + out="(no data)" fi rc=4 fi @@ -217,7 +223,7 @@ printf "%s" "$out" else if [ "$1" = "1" ]; then - printf "(not available)\n" + printf "(no data)\n" fi rc=4 fi @@ -241,8 +247,8 @@ # 5=threshold write error # prerequisite: batdrv_init(), batdrv_select_battery() - local new_stop=${2:-} - local verb=${3:-0} + local new_stop="${2:-}" + local verb="${3:-0}" # insert defaults [ "$new_stop" = "DEF" ] && new_stop=$_bt_def_stop @@ -297,6 +303,7 @@ fi # write new threshold + # note: do not read threshold for comparison since with kernel 7.1 it will only be readable after the first write if [ "$verb" = "2" ]; then printf "Setting temporary charge threshold for %s:\n" "$_bat_str" 1>&2 fi @@ -463,7 +470,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/90-generic new/TLP-1.10.2/bat.d/90-generic --- old/TLP-1.10.1/bat.d/90-generic 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/90-generic 2026-07-06 09:52:57.000000000 +0200 @@ -161,7 +161,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/bat.d/TEMPLATE new/TLP-1.10.2/bat.d/TEMPLATE --- old/TLP-1.10.1/bat.d/TEMPLATE 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/bat.d/TEMPLATE 2026-07-06 09:52:57.000000000 +0200 @@ -579,7 +579,7 @@ print_bat_make "$verbose" print_bat_cycle_count "$_bd_read/cycle_count" - print_bat_energy + print_bat_energy "$verbose" print_bat_state "$_bd_read/status" printf "\n" print_bat_voltages "$verbose" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/changelog new/TLP-1.10.2/changelog --- old/TLP-1.10.1/changelog 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/changelog 2026-07-06 09:52:57.000000000 +0200 @@ -1,6 +1,21 @@ This is the user-oriented changelog. For information regarding packaging, please refer to: https://linrunner.de/tlp/developers/packaging.html ++++ 1.10.2 --- 06.07.2026 +++ + + * Bugfix release + Battery Care: + - ASUS laptops: + - Fix charge threshold for kernel 7.1 (Issue #890) + - tlp-stat -b: display "no data" until a threshold has been set + - tlp-stat -b -v: base mA(h) to mW(h) conversion of battery ratings + on voltage_min_design (representing the nominal voltage) + File System: + - DISK_IDLE_SECS_ON_AC/BAT ignored with kernels >= 7.0, where + laptop_mode has been removed + Profiles: + - Restrict USB charger detection to PD/PPS + +++ 1.10.1 --- 04.05.2026 +++ * Bugfix Release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/func.d/15-tlp-func-disk new/TLP-1.10.2/func.d/15-tlp-func-disk --- old/TLP-1.10.1/func.d/15-tlp-func-disk 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/func.d/15-tlp-func-disk 2026-07-06 09:52:57.000000000 +0200 @@ -14,6 +14,8 @@ readonly DISK_NOP_WORDS="_ keep" +readonly LM_IGN_KVER="7.0" + # ---------------------------------------------------------------------------- # Functions @@ -637,6 +639,16 @@ return 0 fi + if [ ! -f /proc/sys/vm/laptop_mode ]; then + echo_debug "disk" "set_laptopmode($1).non_existent" + return 0 + fi + if kernel_version_ge "$LM_IGN_KVER"; then + # prevent "vm.laptop_mode is deprecated" warnings + echo_debug "disk" "set_laptopmode($1).ignored" + return 0 + fi + write_sysf "$isec" /proc/sys/vm/laptop_mode echo_debug "disk" "set_laptopmode($1): $isec; rc=$?" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/func.d/tlp-func-stat new/TLP-1.10.2/func.d/tlp-func-stat --- old/TLP-1.10.1/func.d/tlp-func-stat 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/func.d/tlp-func-stat 2026-07-06 09:52:57.000000000 +0200 @@ -927,6 +927,7 @@ print_bat_energy () { # print and sum up battery energy or charge data + # $1: verbose # global param: $_bd_read # global vars/retvals: # $_bat_ed - design capacity (mWh or mAh) @@ -936,6 +937,7 @@ # $_bat_ensum - accumulated current charge level # prerequisite: batdrv_init(), batdrv_select_battery() + local verbose="${1:-0}" local ed ef en pn pwr volt # initialize accumulation @@ -972,9 +974,9 @@ _bat_ensum=$((_bat_ensum + _bat_en)) pwr="$(perl -e 'printf "%.0f", '"$(read_sysval "$_bd_read/current_now")"' / 1000.0')" - volt="$(read_sysval "$_bd_read/voltage_now")" + volt="$(read_sysval "$_bd_read/voltage_min_design")" - if [ "$volt" -gt 0 ]; then + if [ "$verbose" = "1" ] && [ "$volt" -gt 0 ]; then # voltage is valid -> display mA(h) and mW(h) units side by side # convert mA(h) to mW(h) units volt="$(perl -e 'printf "%.3f", '"$volt"' / 1000000.0')" @@ -983,10 +985,10 @@ en="$(perl -e 'printf "%.0f\n", '"$_bat_en"' * '"$volt"'')" pn="$(perl -e 'printf "%.0f\n", '"$pwr"' * '"$volt"'')" - printf "%-59s = %6d [mAh] (%6d mWh)\n" "$_bd_read/charge_full_design" "$_bat_ed" "$ed" - printf "%-59s = %6d [mAh] (%6d mWh)\n" "$_bd_read/charge_full" "$_bat_ef" "$ef" - printf "%-59s = %6d [mAh] (%6d mWh)\n" "$_bd_read/charge_now" "$_bat_en" "$en" - printf "%-59s = %6d [mA] (%6d mW)\n" "$_bd_read/current_now" "$pwr" "$pn" + printf "%-59s = %6d [mAh] (≈%6d mWh)\n" "$_bd_read/charge_full_design" "$_bat_ed" "$ed" + printf "%-59s = %6d [mAh] (≈%6d mWh)\n" "$_bd_read/charge_full" "$_bat_ef" "$ef" + printf "%-59s = %6d [mAh] (≈%6d mWh)\n" "$_bd_read/charge_now" "$_bat_en" "$en" + printf "%-59s = %6d [mA] (≈%6d mW)\n" "$_bd_read/current_now" "$pwr" "$pn" else # voltage is not available or invalid -> display mA(h) units only printf "%-59s = %6d [mAh]\n" "$_bd_read/charge_full_design" "$_bat_ed" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man/bluetooth.1 new/TLP-1.10.2/man/bluetooth.1 --- old/TLP-1.10.1/man/bluetooth.1 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man/bluetooth.1 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH bluetooth 1 2026-05-04 "TLP 1.10.1" "Power Management" +.TH bluetooth 1 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME bluetooth - enable/disable internal bluetooth device diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man/nfc.1 new/TLP-1.10.2/man/nfc.1 --- old/TLP-1.10.1/man/nfc.1 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man/nfc.1 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH nfc 1 2026-05-04 "TLP 1.10.1" "Power Management" +.TH nfc 1 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME nfc - enable/disable internal NFC device diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man/run-on-ac.1 new/TLP-1.10.2/man/run-on-ac.1 --- old/TLP-1.10.1/man/run-on-ac.1 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man/run-on-ac.1 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH run-on-ac 1 2026-05-04 "TLP 1.10.1" "Power Management" +.TH run-on-ac 1 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME run-on-ac - run command when on ac power diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man/run-on-bat.1 new/TLP-1.10.2/man/run-on-bat.1 --- old/TLP-1.10.1/man/run-on-bat.1 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man/run-on-bat.1 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH run-on-bat 1 2026-05-04 "TLP 1.10.1" "Power Management" +.TH run-on-bat 1 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME run-on-bat - run command when on battery power diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man/tlp-stat.8 new/TLP-1.10.2/man/tlp-stat.8 --- old/TLP-1.10.1/man/tlp-stat.8 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man/tlp-stat.8 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH tlp-stat 8 2026-05-04 "TLP 1.10.1" "Power Management" +.TH tlp-stat 8 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME tlp-stat - view power saving status diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man/tlp.8 new/TLP-1.10.2/man/tlp.8 --- old/TLP-1.10.1/man/tlp.8 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man/tlp.8 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH tlp 8 2026-05-04 "TLP 1.10.1" "Power Management" +.TH tlp 8 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME tlp - apply laptop power saving settings diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man/tlp.service.8 new/TLP-1.10.2/man/tlp.service.8 --- old/TLP-1.10.1/man/tlp.service.8 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man/tlp.service.8 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH tlp.service 8 2026-05-04 "TLP 1.10.1" "Power Management" +.TH tlp.service 8 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man/wifi.1 new/TLP-1.10.2/man/wifi.1 --- old/TLP-1.10.1/man/wifi.1 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man/wifi.1 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH wifi 1 2026-05-04 "TLP 1.10.1" "Power Management" +.TH wifi 1 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME wifi - enable/disable internal Wi-Fi device diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man/wwan.1 new/TLP-1.10.2/man/wwan.1 --- old/TLP-1.10.1/man/wwan.1 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man/wwan.1 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH wwan 1 2026-05-04 "TLP 1.10.1" "Power Management" +.TH wwan 1 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME wwan - enable/disable internal WWAN (3G/4G/5G) device diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man-pd/tlp-pd.8 new/TLP-1.10.2/man-pd/tlp-pd.8 --- old/TLP-1.10.1/man-pd/tlp-pd.8 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man-pd/tlp-pd.8 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH tlp-pd 8 2026-05-04 "TLP 1.10.1" "Power Management" +.TH tlp-pd 8 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man-pd/tlp-pd.service.8 new/TLP-1.10.2/man-pd/tlp-pd.service.8 --- old/TLP-1.10.1/man-pd/tlp-pd.service.8 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man-pd/tlp-pd.service.8 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH tlp-pd.service 8 2026-05-04 "TLP 1.10.1" "Power Management" +.TH tlp-pd.service 8 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man-pd/tlpctl.1 new/TLP-1.10.2/man-pd/tlpctl.1 --- old/TLP-1.10.1/man-pd/tlpctl.1 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man-pd/tlpctl.1 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH tlpctl 1 2026-05-04 "TLP 1.10.1" "Power Management" +.TH tlpctl 1 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME tlpctl \- control TLP profiles diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/man-rdw/tlp-rdw.8 new/TLP-1.10.2/man-rdw/tlp-rdw.8 --- old/TLP-1.10.1/man-rdw/tlp-rdw.8 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/man-rdw/tlp-rdw.8 2026-07-06 09:52:57.000000000 +0200 @@ -1,4 +1,4 @@ -.TH tlp-rdw 8 2026-05-04 "TLP 1.10.1" "Power Management" +.TH tlp-rdw 8 2026-07-06 "TLP 1.10.2" "Power Management" . .SH NAME tlp-rdw - disable Radio Device Wizard temporarily (until reboot). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/tlp-func-base.in new/TLP-1.10.2/tlp-func-base.in --- old/TLP-1.10.1/tlp-func-base.in 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/tlp-func-base.in 2026-07-06 09:52:57.000000000 +0200 @@ -876,7 +876,7 @@ # 3. Batteries # $TLP_PS_IGNORE may be used to ignore one or more power source classes - local bs ps_ignore psrc psrc_name + local bs ps_ignore psrc psrc_name usb_type local ac0seen= local tlp_cmd="$1" local wait= @@ -903,7 +903,7 @@ _psdev="${_psdev:-$psrc}" # if configured, skip device to ignore incorrect AC status if wordinlist "AC" "$ps_ignore"; then - echo_debug "ps" "get_sys_power_supply(${psrc_name}).ac_ignored: syspwr=$_syspwr" + echo_debug "ps" "get_sys_power_supply(${psrc_name}).ac_ignored: syspwr=$_syspwr; dev=$_psdev" continue fi @@ -911,12 +911,12 @@ if [ "$(read_sysf "$psrc/online")" = "1" ]; then # AC online --> end iteration _syspwr=$PS_AC - echo_debug "ps" "get_sys_power_supply(${psrc_name}).ac_online: syspwr=$_syspwr" + echo_debug "ps" "get_sys_power_supply(${psrc_name}).ac_online: syspwr=$_syspwr; dev=$_psdev" break else # AC offine --> end iteration _syspwr=$PS_BAT - echo_debug "ps" "get_sys_power_supply(${psrc_name}).ac_offline: syspwr=$_syspwr" + echo_debug "ps" "get_sys_power_supply(${psrc_name}).ac_offline: syspwr=$_syspwr; dev=$_psdev" break fi ;; @@ -924,9 +924,17 @@ USB) # USB PS detected _psdev="${_psdev:-$psrc}" + # if configured, skip device to ignore incorrect USB status if wordinlist "USB" "$ps_ignore"; then - echo_debug "ps" "get_sys_power_supply(${psrc_name}).usb_ignored: syspwr=$_syspwr" + echo_debug "ps" "get_sys_power_supply(${psrc_name}).usb_ignored: syspwr=$_syspwr; dev=$_psdev" + continue + fi + + # check USB PS type + usb_type="$(get_listitem "$(read_sysf "$psrc/usb_type")")" + if ! wordinlist "$usb_type" "PD PD_PPS"; then + echo_debug "ps" "get_sys_power_supply(${psrc_name}).usb_notpd: syspwr=$_syspwr; dev=$_psdev; type=$usb_type" continue fi @@ -934,13 +942,13 @@ if [ "$(read_sysf "$psrc/online")" = "1" ]; then # USB online --> end iteration _syspwr=$PS_AC - echo_debug "ps" "get_sys_power_supply(${psrc_name}).usb_online: syspwr=$_syspwr" + echo_debug "ps" "get_sys_power_supply(${psrc_name}).usb_online: syspwr=$_syspwr; dev=$_psdev; type=$usb_type" break else # USB PS offline could mean battery, but multiple connectors may exist # --> remember and continue looking ac0seen=1 - echo_debug "ps" "get_sys_power_supply(${psrc_name}).remember_usb_offline" + echo_debug "ps" "get_sys_power_supply(${psrc_name}).remember_usb_offline; dev=$_psdev; type=$usb_type" fi ;; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/tlp-stat.in new/TLP-1.10.2/tlp-stat.in --- old/TLP-1.10.1/tlp-stat.in 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/tlp-stat.in 2026-07-06 09:52:57.000000000 +0200 @@ -692,7 +692,7 @@ # --- show laptop-mode, dirty buffers params if [ "$show_all" = "1" ]; then echo "+++ File System" - printparm "%-38s = ##%5d##" /proc/sys/vm/laptop_mode + kernel_version_ge "$LM_IGN_KVER" || printparm "%-38s = ##%5d##" /proc/sys/vm/laptop_mode printparm "%-38s = ##%5d##" /proc/sys/vm/dirty_writeback_centisecs printparm "%-38s = ##%5d##" /proc/sys/vm/dirty_expire_centisecs printparm "%-38s = ##%5d##" /proc/sys/vm/dirty_ratio diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/tlp.conf.in new/TLP-1.10.2/tlp.conf.in --- old/TLP-1.10.1/tlp.conf.in 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/tlp.conf.in 2026-07-06 09:52:57.000000000 +0200 @@ -122,8 +122,9 @@ #TLP_PS_IGNORE="BAT" -# Seconds laptop mode has to wait after the disk goes idle before doing a -# sync. Non-zero value enables, zero disables laptop mode. +# Seconds laptop_mode has to wait after the disk goes idle before doing a +# sync. Non-zero value enables, zero disables laptop_mode. +# Note: will be ignored starting with kernel 7.0 # Default: 0 (AC), 2 (BAT) #DISK_IDLE_SECS_ON_AC=0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/TLP-1.10.1/unit-tests/charge-thresholds_simulate1 new/TLP-1.10.2/unit-tests/charge-thresholds_simulate1 --- old/TLP-1.10.1/unit-tests/charge-thresholds_simulate1 2026-05-03 16:29:57.000000000 +0200 +++ new/TLP-1.10.2/unit-tests/charge-thresholds_simulate1 2026-07-06 09:52:57.000000000 +0200 @@ -101,7 +101,7 @@ $ sudo tlp-stat -b -- X_BAT_PLUGIN_SIMULATE=asus | grep "BAT0/charge_control_end_threshold" /sys/class/power_supply/BAT0/charge_control_end_threshold = 100 [%] $ sudo tlp-stat -b -- X_BAT_PLUGIN_SIMULATE=asus X_THRESH_SIMULATE_READERR=1 | grep "BAT0/charge_control_end_threshold" -/sys/class/power_supply/BAT0/charge_control_end_threshold = (not available) [%] +/sys/class/power_supply/BAT0/charge_control_end_threshold = (no data) [%] $ # $ # +++ Huawei ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ $ # ++++++ TLP.obsinfo ++++++ --- /var/tmp/diff_new_pack.b8lwT5/_old 2026-09-08 16:59:17.968953389 +0200 +++ /var/tmp/diff_new_pack.b8lwT5/_new 2026-09-08 16:59:17.973953599 +0200 @@ -1,5 +1,5 @@ name: TLP -version: 1.10.1 -mtime: 1777818597 -commit: 5558e46461fea9b7dac3b1a2f66babdfe08a7f30 +version: 1.10.2 +mtime: 1783324377 +commit: 4c62f65f364080d812a418164656b8b22403a273 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.b8lwT5/_old 2026-09-08 16:59:18.007955022 +0200 +++ /var/tmp/diff_new_pack.b8lwT5/_new 2026-09-08 16:59:18.011955190 +0200 @@ -3,7 +3,7 @@ <param name="url">https://github.com/linrunner/TLP.git</param> <param name="versionformat">@PARENT_TAG@</param> <param name="scm">git</param> - <param name="revision">1.10.1</param> + <param name="revision">1.10.2</param> <param name="versionrewrite-pattern">(\d+\.\d+\.\d+)</param> <param name="versionrewrite-replacement">\1</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.b8lwT5/_old 2026-09-08 16:59:18.048956739 +0200 +++ /var/tmp/diff_new_pack.b8lwT5/_new 2026-09-08 16:59:18.052956906 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/linrunner/TLP.git</param> - <param name="changesrevision">5558e46461fea9b7dac3b1a2f66babdfe08a7f30</param></service></servicedata> + <param name="changesrevision">4c62f65f364080d812a418164656b8b22403a273</param></service></servicedata> (No newline at EOF)
