atlanticnax.blogg.se

Conky battery status
Conky battery status






conky battery status
  1. #Conky battery status install
  2. #Conky battery status serial
  3. #Conky battery status full

We can use cat and find command to display the battery details.

conky battery status

This was suggested by one of our reader in the comment section.

conky battery status

$ man acpi Method 3: Using "cat" and "find" commands If the AC power is not available, you would the see the following output: Adapter 0: off-lineĬheck Laptop battery status and level using acpi commandįor more details, check the man pages. Want to know whether the AC power is connected or not? Simple! Simply run the following command: $ acpi -a Sample output: Thermal 0: ok, 144.5 degrees F We can view the above output in Fahrenheit using -f flag: $ acpi -t -f

conky battery status

Sample output: Thermal 0: ok, 58.5 degrees C Sample output: Battery 0: Discharging, 98%, 01:48:14 remaining To check only the state of the charge of battery. Thermal 0: trip point 0 switches to mode critical at temperature 84.0 degrees CĬooling 1: intel_powerclamp no state information availableĬooling 3: x86_pkg_temp no state information available

#Conky battery status full

Sample output: Battery 0: Discharging, 98%, 01:43:14 remainingīattery 0: design capacity 4400 mAh, last full capacity 3013 mAh = 68%īattery 1: Discharging, 0%, rate information unavailable Once acpi installed, run the following command: $ acpi -V

#Conky battery status install

On RHEL, CentOS, Fedora: $ sudo yum install acpi To install acpi on Debian, Ubuntu and its derivatives: $ sudo apt-get install acpi On Arch Linux and its derivatives: $ sudo pacman -S acpi You might need to install acpi command in some Linux distributions. The acpi command shows battery status and other ACPI information in your Linux distribution. $ man upower Method 2 - Using "acpi" command $ upower -i $(upower -e | grep BAT) | grep -color=never -E "state|to\ full|to\ empty|percentage"Īs you see in the above output, my Laptop battery has been fully charged.įor more details, refer man pages. You can also display the status of the battery only by with combination of upower and grep commands as shown below.

#Conky battery status serial

Upower not just display the battery status, but also the complete details of the installed battery such as model, vendor name, serial no, state, voltage etc. Icon-name: 'battery-full-charged-symbolic' Updated: Tuesday 01 October 2019 12:54:41 PM IST (48 seconds ago) If the above command doesn't work for any reason, try the following command instead: $ upower -i `upower -e | grep 'BAT'` Check Laptop battery status and level using upower commandĪs you see above, my battery is fully-charged now and the battery level is 100%.








Conky battery status