{"id":1707,"date":"2025-01-01T17:39:19","date_gmt":"2025-01-01T22:39:19","guid":{"rendered":"https:\/\/www.familytidings.com\/blog\/?p=1707"},"modified":"2025-01-01T17:39:19","modified_gmt":"2025-01-01T22:39:19","slug":"thinkpad-t560-battery-usage-under-ubuntu-24","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=1707","title":{"rendered":"Thinkpad T560 Battery Usage Under Ubuntu 24"},"content":{"rendered":"<h1>Information about batteries<\/h1>\n<h2>List all power devices<\/h2>\n<p>$ upower -e<br \/>\n\/org\/freedesktop\/UPower\/devices\/battery_BAT0<br \/>\n\/org\/freedesktop\/UPower\/devices\/battery_BAT1<br \/>\n\/org\/freedesktop\/UPower\/devices\/line_power_AC<br \/>\n\/org\/freedesktop\/UPower\/devices\/DisplayDevice<\/p>\n<h2>Get information about one of the devices<\/h2>\n<p>$ upower -i \/org\/freedesktop\/UPower\/devices\/battery_BAT1<br \/>\nnative-path: BAT1<br \/>\nvendor: SANYO<br \/>\nmodel: 45N1775<br \/>\nserial: 219<br \/>\npower supply: yes<br \/>\nupdated: Tue 31 Dec 2024 08:11:49 AM EST (25 seconds ago)<br \/>\nhas history: yes<br \/>\nhas statistics: yes<br \/>\nbattery<br \/>\npresent: yes<br \/>\nrechargeable: yes<br \/>\nstate: discharging<br \/>\nwarning-level: none<br \/>\nenergy: 40.67 Wh<br \/>\nenergy-empty: 0 Wh<br \/>\nenergy-full: 60 Wh<br \/>\nenergy-full-design: 60 Wh<br \/>\nenergy-rate: 4.852 W<br \/>\nvoltage: 11.286 V<br \/>\ncharge-cycles: N\/A<br \/>\ntime to empty: 8.4 hours<br \/>\npercentage: 67%<br \/>\ncapacity: 100%<br \/>\ntechnology: lithium-ion<br \/>\nicon-name: &#8216;battery-full-symbolic&#8217;<br \/>\nHistory (charge):<br \/>\n1735650649 67.000 discharging<br \/>\nHistory (rate):<br \/>\n1735650709 4.852 discharging<br \/>\n1735650679 5.101 discharging<br \/>\n1735650649 5.000 discharging<\/p>\n<h2>Charging Thresholds<\/h2>\n<p>Show the remaining battery percentage below which the battery will be charged.\u00a0 The default is 0, which means the battery will always charge when on AC power.<\/p>\n<p>$ cat \/sys\/class\/power_supply\/BAT1\/charge_start_threshold<br \/>\n0<\/p>\n<p>Change it to 5% so the battery won&#8217;t charge unless it has less than 5% of a full charge remaining :<br \/>\n$ sudo sh -c &#8220;echo 5 &gt; \/sys\/class\/power_supply\/BAT1\/charge_start_threshold&#8221;<\/p>\n<p>Show the remaining battery percentage above which the battery will not be charged.\u00a0 The default is 100, which means the battery will be charged until completely full.<br \/>\n$ cat \/sys\/class\/power_supply\/BAT1\/charge_stop_threshold<br \/>\n100<\/p>\n<p>Change it to 95%:<br \/>\n$ sudo sh -c &#8220;echo 95 &gt; \/sys\/class\/power_supply\/BAT1\/charge_stop_threshold&#8221;<br \/>\nCheck what the battery is doing (returns discharging or charging):<br \/>\n$ cat \/sys\/class\/power_supply\/BAT1\/status<\/p>\n<h1>References<\/h1>\n<blockquote class=\"wp-embedded-content\" data-secret=\"3w9k2Ueesw\"><p><a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2024\/02\/limit-battery-charge-ubuntu\/\">How to Set Battery Charge Limit in Ubuntu 22.04 &#038; 24.04<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;How to Set Battery Charge Limit in Ubuntu 22.04 &#038; 24.04&#8221; &#8212; UbuntuHandbook\" src=\"https:\/\/ubuntuhandbook.org\/index.php\/2024\/02\/limit-battery-charge-ubuntu\/embed\/#?secret=LVlfb69zHb#?secret=3w9k2Ueesw\" data-secret=\"3w9k2Ueesw\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Information about batteries List all power devices $ upower -e \/org\/freedesktop\/UPower\/devices\/battery_BAT0 \/org\/freedesktop\/UPower\/devices\/battery_BAT1 \/org\/freedesktop\/UPower\/devices\/line_power_AC \/org\/freedesktop\/UPower\/devices\/DisplayDevice Get information about one of the devices $ upower -i \/org\/freedesktop\/UPower\/devices\/battery_BAT1 native-path: BAT1 vendor: SANYO model: 45N1775 serial: 219 power supply: yes updated: Tue 31 Dec 2024 08:11:49 AM EST (25 seconds ago) has history: yes has statistics: yes battery present: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1707","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1707"}],"version-history":[{"count":2,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1707\/revisions"}],"predecessor-version":[{"id":1709,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1707\/revisions\/1709"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}