upower xdisplay--nvidia -vga---cpu info
grep 'physical id' /proc/cpuinfo | sort -u | wc -l
grep 'core id' /proc/cpuinfo | sort -u | wc -l
grep 'processor' /proc/cpuinfo | sort -u | wc -l
upower -i $(upower -e | grep 'BAT') | grep -E "state|to\ full|percentage"
http://www.cnblogs.com/lizunicon/p/3509539.html
http://www.cnblogs.com/tracyone/p/4034504.html
https://www.cnblogs.com/congbo/archive/2012/09/12/2682105.html
A friendly reminder: since Linux kernel 2.6.24 using /proc
to store ACPI info has been discouraged and deprecated.
Now we are encouraged to use -> /sys/class/power_supply/BAT0
.
UPDATE: Linux 3.19 and onwards, we should look at the following directory -> /sys/class/power_supply/BAT1/
For example capacity -> cat /sys/class/power_supply/BAT1/capacity
status -> cat /sys/class/power_supply/BAT1/status
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步