In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "how to check battery capacity in CentOS Linux". Many people will encounter this dilemma in the operation of practical cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
When I had to fly in a few days, I suddenly realized that laptop batteries could cause trouble. Portable battery has too much capacity, not to mention carrying it with him, and there is no need to talk about consignment. The information found said that the battery of the laptop should not exceed the 160Wh. How big is the battery of my laptop? I'm sure I can see it when I take it down, but I don't want to take it apart, so I'll find out if there is a command line that can be checked in the system. The battery management of the graphical interface is just to see if the battery is fully charged, how much power it is now, and some other mode settings such as on-screen display, without detailed technical parameters.
Found a lot of ways to introduce and check, all of which are not suitable. However, on CentOS, there is no apci command, there is no tlp-stat command, and it cannot be found in yum.
I really found it-- upower! Many articles say that there is no such directory in the upower-I / org/., system. So upower-- help, ask for help. I see a parameter d that says that all the information can be poured out.
# upower-- helpUsage: upower [OPTION...] UPower toolHelp Options:-h,-- help Show help optionsApplication Options:-e,-- enumerate Enumerate objects paths for devices-d,-- dump Dump all parameters for all objects-w,-- wakeups Get the wakeup data-m,-- monitor Monitor activity from the power daemon-- monitor-detail Monitor with detail-I,-- show-info Show information about object path-v -- version Print version of client and daemon
Then try it and run the command: upower-d
[root@hp-notebook-alan] # upower-dDevice: / org/freedesktop/UPower/devices/line_power_ACAD native-path: ACAD power supply: yes updated: Tuesday, October 29th, 2019, 08:44:57 (28901 seconds ago) has history: no has statistics: no line-power warning-level: none online: yes Icon-name: 'ac-adapter-symbolic'Device: / org/freedesktop/UPower/devices/battery_BAT1 native-path: BAT1 vendor: Hewlett-Packard model: PABAS0241231 serial: 41167 power supply: yes updated: Tuesday, October 29, 2019, 16:45:18 (80 seconds ago) has history: Yes has statistics: yes battery present: yes rechargeable: yes state: fully-charged warning-level: none energy: 67.5598 Wh energy-empty: 0 Wh energy-full: 67.8524 Wh energy-full-design: 70.07 Wh energy-rate: 0 W voltage: 17.524 V percentage: 100% capacity: 96.1758% technology: lithium-ion icon-name: 'battery-full-charged-symbolic'Device: / org/freedesktop/UPower/devices/DisplayDevice power supply: yes updated: Tuesday, October 29, 2019, 15:05:14 (6084 seconds ago) has history: No has statistics: no battery present: yes state: fully-charged warning-level: none energy: 67.5598 Wh energy-full: 67.8524 Wh energy-rate: 0W percentage: 100% icon-name: 'battery-full-charged-symbolic'Daemon: daemon-version: 0. 99.7 on-battery: no lid-is-closed: no lid-is-present: yes critical-action: HybridSleep
As you can see, the design capacity of the battery is 70.07Wh, and now it is 100% full, which is 67.8524 Wh. 1000Wh, that is, one kilowatt-hour of electricity, this is only 0.0678524 kilowatt-hours of electricity, so it should be harmless to people and animals.
I can't believe there is a device called / org/freedesktop/UPower/devices/DisplayDevice, but I can't see it in the file system. Let's try again:
# upower-I / org/freedesktop/UPower/devices/DisplayDevice
Well, it can be used. The same results are given.
This is the end of "how to check Battery capacity in CentOS Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.