Skip to content

Commit

Permalink
tlp-stat -v: additional battery voltages
Browse files Browse the repository at this point in the history
* /sys/class/power_supply/BAT*/voltage_min_design, voltage_now
* /sys/devices/platform/smapi/BAT*/design_voltage, voltage
  • Loading branch information
linrunner committed Feb 21, 2017
1 parent 7459aa6 commit 3ce2b05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion changelog
@@ -1,4 +1,4 @@
+++ 1.0 --- 13.01.2017 +++
+++ 1.0 --- 21.02.2017 +++

*** Development version ***

Expand Down Expand Up @@ -36,6 +36,7 @@
- -g|--graphics: show graphics card data only
- --psup: show power supply diagnostic
- SMART attribute G-Sense_Error_Rate (191)
- -v: additional battery voltages
- Workqueue power efficient status

* Bugfixes
Expand Down
8 changes: 8 additions & 0 deletions tlp-stat.in
Expand Up @@ -1130,6 +1130,8 @@ if [ "$show_bat" = "1" ] || [ "$show_all" = "1" ]; then
print_tp_batstate $batd/state
echo
if [ $show_verbose -eq 1 ]; then
printparm "%-59s = ##%6s## [mV]" $batd/design_voltage
printparm "%-59s = ##%6s## [mV]" $batd/voltage
printparm "%-59s = ##%6s## [mV]" $batd/group0_voltage
printparm "%-59s = ##%6s## [mV]" $batd/group1_voltage
printparm "%-59s = ##%6s## [mV]" $batd/group2_voltage
Expand Down Expand Up @@ -1247,6 +1249,12 @@ if [ "$show_bat" = "1" ] || [ "$show_all" = "1" ]; then
fi
echo

if [ $show_verbose -eq 1 ]; then
printparm "%-59s = ##%6s## [mV]" $batd/voltage_min_design "" 000
printparm "%-59s = ##%6s## [mV]" $batd/voltage_now "" 000
echo
fi

if [ $tpacpi -eq 0 ]; then
# --- show ThinkPad charge thresholds via tpacpi-bat
print_tpacpi_thresholds $batt $bat_idx
Expand Down

0 comments on commit 3ce2b05

Please sign in to comment.