[Linux-Biella] ptt_apm e acpi battery status

Claudio M. linux@ml.bilug.linux.it
Wed, 16 Jun 2004 17:49:16 +0200


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


-- 
IO - Senza il backup c'e' la paura, la paura porta alla rabbia,
la rabbia all'odio e l'odio porta ad usare Windows su macchine 
di produzione!
GJ - ...hemmm... pensavo che fosse "porta alla sofferenza"...
IO - Perche' usare Windows su una macchina di produzione 
non e' soffrire?
(Davide Bianchi)