Computers
Read books online » Computers » ACPI: Advanced Configuration and Power Interface by Emma Jane Hogbin (english novels to read TXT) 📖

Book online «ACPI: Advanced Configuration and Power Interface by Emma Jane Hogbin (english novels to read TXT) 📖». Author Emma Jane Hogbin



1 2 3 4 5 6
Go to page:

present voltage: 14800 mV

present: yes

capacity state: ok

charging state: charging <-- AC adapter plugged in

present rate: unknown

remaining capacity: 3840 mAh

present voltage: 14800 mV

If I want information about my battery in general I check it out like this:

cat /proc/acpi/battery/BAT0/info

present: yes

design capacity: 3920 mAh

last full capacity: 3920 mAh

battery technology: rechargeable

design voltage: 14800 mV

design capacity warning: 30 mAh

design capacity low: 20 mAh

capacity granularity 1: 10 mAh

capacity granularity 2: 3470 mAh

model number: Bat0

serial number:

battery type: Lion

OEM info: Acer

You're smart people. You can probably figure it out from here. :)

References and Resources

The following URLs were incredibly useful in writing this HOWTO and generally

getting ACPI up and running.

HOWTOs

HOWTO install ACPI under Linux

http://sylvestre.ledru.info/howto/howto-acpi.php

Linux ACPI-HOWTO

http://www.columbia.edu/~ariel/acpi/acpi-howto.txt

Linux on the road, formerly: Linux Laptop HOWTO

http://tuxmobil.org/howtos.html You'll need to scroll a bit, or use the HTML version: http://tuxmobil.org/Mobile-Guide.db/Mobile-Guide.html

Hardware in Detail (part of Linux on the road)

http://tuxmobil.org/Mobile-Guide.db/ mobile-guide-p2c1-hardware-in-detail.html

Power Management with Linux - APM, ACPI, PMU

http://tuxmobil.org/apm-linux.html

Battery Powered Linux Mini-HOWTO

http://www.tldp.org/HOWTO/mini/Battery-Powered/

Creating custom kernels with Debian's Kernel-Package system

http://newbiedoc.sourceforge.net/system/kernel-pkg.html

Hardware-specific Install Reports and Info

Installation Reports

http://acpi.sourceforge.net/wiki/index.php/InstallationReports

Blacklist

http://acpi.sourceforge.net/documentation/blacklist.html

DSDT: Overview

http://acpi.sourceforge.net/dsdt/index.php Includes links to patched DSDTs and HOWTOs about patching your own DSDT.

BIOS Settings for the AcerTM (Phoenix BIOS)

http://help.nec-computers.com/au/pri/item-instr-bios-7521N.asp

Software Development Groups

ACPI4Linux

http://acpi.sf.net

ACPI Special Interest Group

http://www.acpi.info/

Intel

http://developer.intel.com/technology/iapc/acpi/

ACPI articles

Fan Speed Control Techniques in PCs

http://www.analog.com/library/analogDialogue/archives/34-04/fan/

Mailing List Threads

debian-laptop thread: can't restore from suspend

http://lists.debian.org/debian-laptop/2003/debian-laptop-200304/ msg00367.html

acpi-support thread: newbie HOWTO and debian patching

http://sourceforge.net/mailarchive/forum.php?forum-id=7803&max-rows= 25&style=flat&viewmonth=200304&viewday=17

debian-laptop thread: acer 634 acpi & apm

http://lists.debian.org/debian-laptop/2002/debian-laptop-200212/ msg00242.html

ACPI packages and related software

The Kernel

Remember to choose "F" for full when you download your kernel source. http://www.kernel.org

Debian-ized kernel

maxx's pre-patched 2.4.20-8 kernel source package. For more information see maxx's notes. http://people.debian.org/~maxx/kernel-source-2.4.20/

ACPI kernel patch

You'll need to pick the version that exactly matches the kernel you're using. http://sourceforge.net/project/showfiles.php?group-id=36832

acpid

the daemon http://sourceforge.net/projects/acpid

acpi

text interface http://grahame.angrygoats.net/acpi.shtml

Kacpi

graphical interface for KDE http://www.elektronikschule.de/~genannt/ kacpi/download.html

aKpi

another KDE interface http://akpi.scmd.at/

wmacpi

WindowMaker DockApp (another GUI) http://www.ne.jp/asahi/linux/timecop/

wmacpi+clecourt

WindowMaker DockApp (another graphical interface). Handles two battery slots. http://open.iliad.fr/~clecourt/wmacpi/index.html Thanks

Much thanks goes out to the following:

*  [http://acpi.sourceforge.net/mailinglists.html] acpi-support (note: the

discussion list for ACPI4Linux is now at acpi-devel)

*  [http://lists.debian.org/debian-laptop/] debian-laptop

*  [http://lists.debian.org/debian-user/] debian-user

*  [http://linuxchix.org/] techtalk

*  TLDP mailing lists (discuss and docbook)

* Sebastian Henschel for reminding me I'd promised to write it all down

* Erich Schubert for writing the section on DSDTs

* Werner Heuser for suggesting I submit the document to The LDP

* Tabatha Marshall for editing and generally being very enthusiastic about

learning DocBook

A. Patching Old Kernels

If you are using a 2.4.x series kernel, the kernel will need to be patched

before you can add ACPI support. Although ACPI is included in the 2.6.x

series kernels you should check to see if any patches have been released to

fix bugs. You can find this information on the ACPI4Linux site.

A.1. Getting the Source Files

Download a fresh kernel from [http://www.kernel.org] www.kernel.org. You need

to make sure you get a full kernel. Find the "latest stable version of the

Linux kernel" and click on F for FULL. Wait patiently. A bzipped kernel is

about 26M. If you're feeling particularly geeky you could also wget http://

kernel.org/pub/linux/kernel/v2.4/linux-.tar.bz2.

Tip You may or may not want the latest stable version. For more information

read the Section 7.1 section of this document. If you decide to use a version of the kernel that is not published on the front page, use the [http://www.kernel.org/pub/linux/kernel/] /pub/linux/kernel directory on the [http://www.kernel.org] kernel.org site to find the kernel you'd like.

While you're waiting, grab a copy of the patch as well. For the 2.4.20 kernel

use the 2.4.20 patch. It's dated 2002.12.12. You'll need to know that number

later when we check to make sure the patch worked. If you are using a

different kernel version make sure you take note of the date of your patch.

Your numbers will differ slightly from the one I use later on.

Once you've got those two files (the kernel and the patch) unpack them and

patch the kernel.

A.1.1. Patch

Now we're going to actually patch the kernel. I take one extra step from

[http://acpi.sourceforge.net/download.html] the instructions at ACPI4Linux.

Instead of gunzipping and patching in the same line, I use two lines. This is

purely a matter of preference. When you patch the kernel you want to make

sure there are no error messages. (There is no "yay" line, instead look for

the absence of errors.)

*  cd /usr/src/linux

*  cp acpi-20021212-2.4.20.diff.gz /usr/src/linux/. (Your patch filename

will be different if you're not using the 2.4.20 kernel.)

*  gunzip acpi-20021212-2.4.20.diff.gz

*  patch -p1 < acpi-20021212-2.4.20.diff (this is the actual patching

part)

Once you've finished patching your kernel, continue reading at Section 10.

B. ACPI the Non-Debian Way

1 2 3 4 5 6
Go to page:

Free ebook «ACPI: Advanced Configuration and Power Interface by Emma Jane Hogbin (english novels to read TXT) 📖» - read online now

Comments (0)

There are no comments yet. You can be the first!
Add a comment