![]() r-r-r- 1 root root 4096 Oct 9 13:11 manufacturer r-r-r- 1 root root 4096 Oct 9 13:11 energy_nowĭrwxr-xr-x 3 root root 0 Oct 9 13:10 hwmon2 r-r-r- 1 root root 4096 Oct 9 13:11 energy_full_design Lrwxrwxrwx 1 root root 0 Oct 9 13:10 device ->. rw-r-r- 1 root root 4096 Oct 9 16:09 charge_stop_threshold rw-r-r- 1 root root 4096 Oct 9 16:09 charge_start_threshold r-r-r- 1 root root 4096 Oct 9 16:09 capacity_level Here is what we see and make sure you explore all those files using the cat or less command/ more command: total 0 $ cat /proc/acpi/ibm/thermal Use /sys/class/power_supply/BAT0/ directory to get battery infoĪs of Linux kernel 2.6.x you need to use /sys/class/power_supply/BAT0 directory: ![]() Then I use the following cat command to see Thinkpad thermal details: rw-r-r- 1 root root 0 Oct 9 16:06 volume r-r-r- 1 root root 0 Oct 9 16:06 thermal rw-r-r- 1 root root 0 Oct 9 16:06 lcdshadow rw-r-r- 1 root root 0 Oct 9 16:06 kbdlight rw-r-r- 1 root root 0 Oct 9 16:06 hotkey rw-r-r- 1 root root 0 Oct 9 16:06 bluetooth IBM and Thinkpad (Lenovo) laptop users please check /proc/acpi/ibm/ directory under Linux I guess it is a litter hot here: temperature: 55 C $ cat /proc/acpi/thermal_zone/THM/temperature For example:ĭr-xr-xr-x 3 root root 0 14: 29 ac_adapterĭr-xr-xr-x 3 root root 0 14: 29 embedded_controllerĭr-xr-xr-x 2 root root 0 14: 29 power_resourceĭr-xr-xr-x 10 root root 0 14: 29 processorĭr-xr-xr-x 3 root root 0 14: 29 thermal_zone You can browse the same data by visiting /proc/acpi/ directory using the cd command and then typing the ls command to list files. $ acpi -tk Use /proc/acpi/ directory to get laptop battery info (deprecated method) How about kelvin as the temperature unit under Linux? Again try: Want to use fahrenheit as the temperature unit on Linux? Pass the -tf option: Type the following command:ĭetails from my Linux laptop: Thermal 0: ok, 39.5 degrees C Let us check battery status thermal information using Linux command line. Showing thermal information about Linux battery The above output indicates that laptop is plugged in use i.e. Try the following command on Linux to get laptop battery ac adapter status: Sample outputs: Battery 0: Charging, 17%, 01:20:06 until charged See ac adapter information on Linux Thermal 0: trip point 0 switches to mode critical at temperature 107.0 degrees C Here is what I see on my ThinkPad Laptop powered by Ubuntu Linux desktop operating system: Battery 0: Full, 100%īattery 0: design capacity 8400 mAh, last full capacity 8044 mAh = 95% Type the following command to get battery related statistics on Linux: Processing triggers for man-db (2.9.1-1). 293991 files and directories currently installed.) Selecting previously unselected package acpitool. Get:1 focal/universe amd64 acpitool amd64 0.5.1-5build1 The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 6 not upgraded.Īfter this operation, 147 kB of additional disk space will be used. Use 'sudo apt autoremove' to remove them. The following packages were automatically installed and are no longer required: For example:įrom my Ubuntu LTS 20.04 Linux powered ThinkPad laptop: password for vivek: ![]() The acpi command may not be installed by default so use apt-get command or yum command/dnf command to install the same on Linux to check your laptop’s battery health. Updated: Tuesday 21 January 2014 06:01:52 PM IST (1757 seconds ago)ĭisplaying Linux Laptop Battery Status Using the apci terminal command Sample outputs: native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0 $ upower -i /org/freedesktop/UPower/devices/battery_BAT0 Type the following command to see Linux laptop battery status including vendor name and other info: Use upower command to check battery status from command line /sys/class/power_supply/BAT0/ directory : Store ACPI information about your first battery.acpi command : Shows battery status and other ACPI information from /proc and /sys file system.upower command : A command line tool for UPower which provides an interface to enumerate power sources on the system and control system-wide power management.Three simple ways to check your laptop’s battery health status in Linux: Linux Laptop Display Battery Status And Thermal Temperature Command
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |