In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the TLP command to check notebook battery status in linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
How to use the TLP command to check the battery status of a laptop
TLP is a free and open source versatile command line tool that optimizes laptop batteries without any configuration changes.
TLP can bring more advanced power management to your Linux without understanding any technical details. TLP comes with a configuration that has been optimized for your battery by default, so you can leave it alone after you install it. Although TLP is a tool that can be highly customized to your needs.
TLP is available in the official libraries of most Linux distributions, such as Arch, Debian, Fedora, Gentoo, openSUSE, and so on. Install TLP using the package management of your Linux distribution.
Just run the following command in Linux to get the battery and other dependent information.
$sudo tlp-stat-b muri-TLP 1.1-+ Battery Status/sys/class/power_supply/BAT0/manufacturer = SMP/sys/class/power_supply/BAT0/model_name = L14M4P23/sys/class/power_supply/BAT0 / cycle_count = (not supported) / sys/class/power_supply/BAT0/energy_full_design = 60000 [mWh] / sys/class/power_supply/BAT0/energy_full = 52260 [mWh] / sys/class/power_supply/BAT0/energy_now = 21950 [mWh] / sys/class/power_supply/BAT0/power_now = 10923 [mW] / sys/class/power_supply/BAT0/status = Discharging Charge = 42.0 [%] Capacity = 87.1 [%]
You can also view other information.
$sudo tlp-stat-s Murray-TLP 1.1-+ System InfoSystem = LENOVO Lenovo ideapad Y700-15ISK 80NVBIOS = CDCN35WWRelease = "Manjaro Linux" Kernel = 4.19.6-1-MANJARO # 1 SMP PREEMPT Sat Dec 1 12:21:26 UTC 2018 x 86 million 64 / proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-4.19-x86_64 root=UUID=69d9dd18-36be-4631-9ebb-78f05fe3217f rw quiet resume=UUID=a2092b92-af29-4760-8e68-7a201922573bInit system = systemd Boot mode = BIOS (CSM Legacy) + + TLP StatusState = enabledLast run = 07:16:12 IST, 4362 sec (s) agoMode = batteryPower source = battery`` # how to use the ACPI command to check battery status ACPI represents advanced configuration and power interface Advanced Configuration and Power Interface module They are kernel modules for different ACPI parts. They enable special ACPI functions to add information to `/ proc` or` / sys`. This information can be parsed through the acpid of events or other monitors.
$acpi Battery 0: Charging, 43%, 01:05:11 until charged "`
Check the battery capacity.
$acpi-iBattery 0: Charging, 43%, 01:05:07 until chargedBattery 0: design capacity 3817 mAh, last full capacity 3324 mAh = 87%
Check out more information about batteries and their related information.
$acpi-VBattery 0: Charging, 43%, 01:05:07 until chargedBattery 0: design capacity 3815 mAh Last full capacity 3323 mAh = 87%Adapter 0: on-lineCooling 0: Processor 0 of 10Cooling 1: Processor 0 of 10Cooling 2: Processor 0 of 10Cooling 3: iwlwifi 0 of 19Cooling 4: Processor 0 of 10Cooling 5: iwlwifi no state information availableCooling 6: Processor 0 of 10Cooling 7: Processor 0 of 10Cooling 8: Processor 0 of 10Cooling 9: intel_powerclamp no state information availableCooling 10: x86_pkg_temp no state information availableCooling 11: Processor 0 of 10 above is all the content of the article "how to use the TLP command to check notebook battery status in linux" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.