Compaq 1700T dsdt
Hello,
Please excuse the very long message... I wanted to ask about three somewhat related issues, but did not know whether I should split them into more messages.
I have a Compaq 1700T and I can say that overall it has proved extremely linux friendly. ACPI of course is a different story. I am currently running 2.4.20+acpi-20021212, and finally I see some things under /proc/acpi. However, I have not been able to go far beyond that.
[Just as a statement I would like to ultimately have to capabilities:
1. see the battery status, so -while on battery- I can know when it is about to drain and have the option to shutdown gracefully, (this should be doable)
2. be able to somehow sleep/suspend/hibernate the machine (avoid having to boot/shutdown every time I need to use it). This is probably trickier, and I would appreciate suggestions on what could be done at this point (under basic assumptions like: I would rather not run unstable kernels, etc).
I disassembled my dsdt (you can have a look at it at:
http://mit.edu/costas/www/CAdsdt.dsl)
./iasl -d /proc/acpi/dsdt (had to do this as root, as dsdt was read only for the root only)
then
./iasl -tc ./dsdt.dsl
The good news is that I only got warnings:
==================
[costas@localhost iasl-linux-20030123]$ ./iasl -tc ./dsdt.dsl
Intel ACPI Component Architecture
ASL Optimizing Compiler / AML Disassembler version 20030122 [Jan 23 2003]
Copyright (C) 2000 - 2003 Intel Corporation
Supports ACPI Specification Revision 2.0b
./dsdt.dsl 845: Name (PSIZ, 0x00)
Warning 2079 - Statement is unreachable ^
./dsdt.dsl 2923: Method (_GLK, 1,
NotSerialized)
Warning 2024 - ^ Reserved method
has too many arguments ( _GLK requires 0)
./dsdt.dsl 4516: Method (_WAK, 1, NotSerialized)
Warning 2026 - ^ Reserved method must return a value
(_WAK)
ASL Input: ./dsdt.dsl - 4890 lines, 176234 bytes, 2364 keywords AML Output: DSDT.aml - 21722 bytes 645 named objects 1719 executable
opcodes
Compilation complete. 0 Errors, 3 Warnings, 0 Remarks, 625 Optimizations [costas@localhost iasl-linux-20030123]$
===========================
I have found hints on how to fix warning 2026
(http://www.cpqlinux.com/acpi-howto.html#fix_broken_dsdt), but nothing on the other two. Is it critical that they are fixed?
Also, under /proc/acpi/battery, I have a directory CMB0. Shouldn't this be BAT0 or sth?
[costas@localhost CMB0]$ more state
present: yes capacity state: ok charging state: unknown <=== shouldn't it know it is charging? present rate: 0 mW remaining capacity: 3474 mWh present voltage: 16742 mV [costas@localhost CMB0]$ more info present: yes design capacity: unknown last full capacity: unknown battery technology: rechargeable design voltage: unknown design capacity warning: 800 mWh design capacity low: 16 mWh capacity granularity 1: 100 mWh capacity granularity 2: 100 mWh model number: BAT1 serial number: 0000 battery type: LION OEM info: COMPAQ
[costas@localhost CMB0]$
If I understand correctly, to make the machine sleep, I need to send a number to the /proc/acpi/sleep?
[Where could I find a description of what each step is supposed to do? My machine for example claims it supports S0, S1, S4, and S5...]
Also, a possibly naive/stupid question: Assuming I suspend/put to sleep the machine, how would I bring it back? Press the power button?
Thanks in advance for any help (and for reading thus far, anyway! ;)
Costas
Signature · 13 lines
Constantinos Antoniou Ph.D. Candidate Massachusetts Institute of Technology Intelligent Transportation Systems Program 77 Massachusetts Ave., NE20-208, Cambridge, MA 02139 (T) 617-252-1113 * (F) 617-252-1130 * (email) [email protected] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com
A quick answer for part of your questions:
Quoted 2 lines
Also, under
/proc/acpi/battery, I have a directory CMB0. Shouldn't this be BAT0 or sth?
(Even though there was a couple of argument), current code simply picks up the characters your ACPI BIOS names the battery device in DSDT. And it's "Device (CMB0)" in your DSDT.
Thanks,
- Adachi, Kenichi
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Quoted 9 lines · Kenichi
A quick answer for part of your questions:
Quoted 2 lines
Also, under
/proc/acpi/battery, I have a directory CMB0. Shouldn't this be BAT0 or sth?(Even though there was a couple of argument), current code simply picks up the characters your ACPI BIOS names the battery device in DSDT. And it's "Device (CMB0)" in your DSDT.
CMB0 in fact is more appropriate than BAT0.
It stand for 'Control Method Battery'
Signature · 10 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
Hi Bruno,
JP PC vendors (AFA I can tell you, SONY/Fujitsu/Panasonic/NEC's certain laptops) prefer BATx style, even though they expose battery as Control Method Battery. Probably this is because of one particular BIOS vendor's taste. Even Toshiba recently starts using P's BIOS,,,
Incidentally have you ever seen the laptop whose battery is fully implemented as Smart Battery and BIOS does describe battery device as such? The 1st 2 Questions of FAQ at ACPI official site (
http://www.acpi.info/acpi_faq.htm --- looks out of date, though ) address SBS, but I've never seen the real world implementation. I remember some web site (URL forgotten --- probably at developer.intel.com or www.sbs-forum.org ) indicates Intel actually has the one. I believe several battery devices already have full capability to satisfy all the SBS requirements and are ready to hit the road...
Thanks,
- Adachi, Kenichi
Quoted 17 lines
-----Original Message-----
From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Ducrot Bruno
Sent: Thursday, February 13, 2003 5:12 PM
To: Adachi, Kenichi
Cc: 'Constantinos Antoniou'; [email protected]
Subject: Re: [ACPI] Compaq 1700T dsdtQuoted 6 lines · Kenichi
A quick answer for part of your questions:
Quoted 2 lines
Also, under
/proc/acpi/battery, I have a directory CMB0. Shouldn't this be BAT0 or sth?(Even though there was a couple of argument), current code
Quoted 25 lines
simply picks
Quoted 3 lines
up the characters your ACPI BIOS names the battery device in DSDT. And it's "Device (CMB0)" in your DSDT.
CMB0 in fact is more appropriate than BAT0.
It stand for 'Control Method Battery'
Signature · 14 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Acpi-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/acpi-devel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf