電池資訊及狀態

利用


/proc/acpi/battery/BAT0/info
/proc/acpi/battery/BAT0/state


可以得到電池規格資訊及狀態值。是否插入 AC adaptor 也可由此來判斷。


留言

熱門文章