Hello Erez.

Since you run Linux/ACPI on a Compaq Laptop, I'd like to know if you can actually get a battery readout (/proc/acpi/battery not empty). I can't get this to work on my laptop - Evo 1000v with RH9.0 with modified ACPI revision
20021212. If so, what version of kernel and ACPI are you using?


Yes, I can get a battery readout. I'm using the 2.4.22 kernel with no patches. The relevant part of the .config file, and the content of all files in the /proc/acpi directory follows. Note that I ran this as a regular user, so some files are not accesible.

I hope this helps.

Eli

---------- snip from .config: ----------------
#
# ACPI Support
#
CONFIG_ACPI=y
# CONFIG_ACPI_HT_ONLY is not set
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_BUS=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_RELAXED_AML is not set

--------- And here are the files in /proc/acpi: ------------------

[EMAIL PROTECTED] eli]$ cd /proc/acpi
[EMAIL PROTECTED] acpi]$ for i in `find . -type f`; do echo -e "\n$i:\n"; cat $i; done;


./thermal_zone/THRM/polling_frequency:

<polling disabled>

./thermal_zone/THRM/cooling_mode:

cooling mode: active

./thermal_zone/THRM/trip_points:

critical (S5):           96 C
passive:                 90 C: tc1=4 tc2=3 tsp=40 devices=0xc12447e0

./thermal_zone/THRM/temperature:

temperature: 31 C

./thermal_zone/THRM/state:

state: ok

./processor/CPU0/limit:

active limit:            P0:T0
platform limit:          P0:T0
user limit:              P0:T0
thermal limit:           P0:T0

./processor/CPU0/throttling:

state count:             8
active state:            T0
states:
  *T0:                  00%
   T1:                  12%
   T2:                  25%
   T3:                  37%
   T4:                  50%
   T5:                  62%
   T6:                  75%
   T7:                  87%

./processor/CPU0/performance:

<not supported>

./processor/CPU0/power:

active state: C2
default state: C1
bus master activity: 00000000
states:
C1: promotion[C2] demotion[--] latency[000] usage[00002050]
*C2: promotion[--] demotion[C1] latency[002] usage[00228911]
C3: <not supported>


./processor/CPU0/info:

processor id:            0
acpi id:                 0
bus mastering control:   yes
power management:        yes
throttling control:      yes
performance management:  no
limit interface:         yes

./button/lid/LID/state:

state: open

./button/lid/LID/info:

type: Lid Switch

./button/power/PWRF/info:

type: Power Button (FF)

./battery/BAT1/alarm:

alarm: unsupported

./battery/BAT1/state:

present:                 yes
capacity state:          ok
charging state:          unknown
present rate:            0 mA
remaining capacity:      4128 mAh
present voltage:         16512 mV

./battery/BAT1/info:

present:                 yes
design capacity:         4400 mAh
last full capacity:      4128 mAh
battery technology:      rechargeable
design voltage:          14800 mV
design capacity warning: 300 mAh
design capacity low:     200 mAh
capacity granularity 1:  32 mAh
capacity granularity 2:  32 mAh
model number:            01KT
serial number:           7
battery type:            LION
OEM info:                SMP

./ac_adapter/ACAD/state:

state: on-line

./embedded_controller/EC0/info:

gpe bit:                 0x18
ports:                   0x66, 0x62
use global lock:         no

./alarm:

2003-11-26 05:56:23

./sleep:

S0 S3 S4 S5

./event:

cat: ./event: Permission denied

./fadt:

cat: ./fadt: Permission denied

./dsdt:

cat: ./dsdt: Permission denied

./info:

version:                 20030813
states:                  S0 S3 S4 S5

--
Web: http://www.billauer.co.il



--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]




Reply via email to