[Linux-Biella] ptt_apm e acpi battery status
PaulTT
linux@ml.bilug.linux.it
Wed, 16 Jun 2004 17:51:41 +0200
Claudio M. wrote:
>Il Wed, 16 Jun 2004 17:37:02 +0200
>PaulTT <paultt@bilug.linux.it> scrisse:
>
>
>
>>chi me ne posta uno, pls? e mi dice che % batt ha attualmente e se e'
>>attaccatto alla corrente o no?
>>
>>
>
>Ahem
>[root@pb acpi]# ls -l
>totale 0
>dr-xr-xr-x 3 root root 0 16 giu 17:21 ac_adapter
>-rw-r--r-- 1 root root 0 16 giu 17:21 alarm
>dr-xr-xr-x 2 root root 0 16 giu 17:21 asus
>dr-xr-xr-x 3 root root 0 16 giu 17:21 battery
>dr-xr-xr-x 5 root root 0 16 giu 17:21 button
>-r-------- 1 root root 0 16 giu 17:21 dsdt
>dr-xr-xr-x 3 root root 0 16 giu 17:21 embedded_controller
>-r-------- 1 root root 0 16 giu 15:47 event
>-r-------- 1 root root 0 16 giu 17:21 fadt
>dr-xr-xr-x 2 root root 0 16 giu 17:21 fan
>-r--r--r-- 1 root root 0 16 giu 17:21 info
>dr-xr-xr-x 2 root root 0 16 giu 17:21 power_resource
>dr-xr-xr-x 3 root root 0 16 giu 17:21 processor
>-rw-r--r-- 1 root root 0 16 giu 17:21 sleep
>dr-xr-xr-x 2 root root 0 16 giu 17:21 thermal_zone
>
>
>cosa preferisci?
>
>Magari:
>[root@pb acpi]# ls -l battery/BAT0/
>totale 0
>-rw-r--r-- 1 root root 0 16 giu 17:44 alarm
>-r--r--r-- 1 root root 0 16 giu 17:44 info
>-r--r--r-- 1 root root 0 16 giu 17:44 state
>
>[root@pb acpi]# cat battery/BAT0/state
>present: yes
>capacity state: ok
>charging state: charged
>present rate: 0 mA
>remaining capacity: 5585 mAh
>present voltage: 12470 mV
>
>
>Sono al 100% di batteria e collegato alla rete
>
>Bye
>
>
>
>
ecco 100=charged, direi, nell'info che c'e'? come so la capacita' max?
--
Gli uomini non sospettano
quale terribile carico stiano
trasportando a valle.
public gpg key: gpg --keyserver pgp.mit.edu --recv-key 2E61343C