LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 01-10-2006, 09:34 AM   #1
wookie2
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
No ACPI battery events on HP compaq nx9000 (kernel 2.6.14-suspend2-r7)


Hi folks!

I have a problem with ACPI battery support on my compaq nx9000, running Gentoo and 2.6.14-suspend2-r7 kernel. The battery state is read correctly at boot-up, but then stays at the same level. It only gets updated when the ac adapter is plugged or unplugged. It seems like no regular ACPI battery events are being generated and /proc/acpi/battery/BAT1/state doesn't have the correct values. Also, ocasionally plugging/unplugging the ac adapter doesn't produce an event either. I've tried several other recent kernels, the result always being the same.

dmesg | grep ACPI produces:

BIOS-e820: 000000000bf70000 - 000000000bf7c000 (ACPI data)
BIOS-e820: 000000000bf7c000 - 000000000bf80000 (ACPI NVS)
ACPI: RSDP (v000 PTLTD ) @ 0x000f6ca0
ACPI: RSDT (v001 PTLTD RSDT 0x06040000 LTP 0x00000000) @ 0x0bf75e53
ACPI: FADT (v001 ATI Salmon 0x06040000 ATI 0x000f4240) @ 0x0bf7bf64
ACPI: BOOT (v001 PTLTD $SBFTBL$ 0x06040000 LTP 0x00000001) @ 0x0bf7bfd8
ACPI: DSDT (v001 ATI MS2_1535 0x06040000 MSFT 0x0100000e) @ 0x00000000
ACPI: PM-Timer IO Port: 0x8008
ACPI: setting ELCR to 0200 (from 0420)
ACPI: bus type pci registered
ACPI: Subsystem revision 20050902
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI quirk: region 8000-803f claimed by ali7101 ACPI
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGPB._PRT]
ACPI: PCI Interrupt Link [LNK0] (IRQs 7 10) *0, disabled.
ACPI: PCI Interrupt Link [LNK1] (IRQs 7 *10)
ACPI: PCI Interrupt Link [LNK2] (IRQs 7 *10)
ACPI: PCI Interrupt Link [LNK3] (IRQs 7 *10)
ACPI: PCI Interrupt Link [LNK4] (IRQs 7 11) *0, disabled.
ACPI: PCI Interrupt Link [LNK5] (IRQs 7 *11)
ACPI: PCI Interrupt Link [LNK6] (IRQs 7 10) *0, disabled.
ACPI: PCI Interrupt Link [LNK7] (IRQs *5)
ACPI: PCI Interrupt Link [LNK8] (IRQs 7 10) *0, disabled.
ACPI: Embedded Controller [EC0] (gpe 24)
pnp: PnP ACPI init
pnp: PnP ACPI: found 13 devices
PCI: Using ACPI for IRQ routing
ACPI: PCI Interrupt Link [LNK5] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNK5] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt 0000:00:0a.1[A] -> Link [LNK5] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNK0] enabled at IRQ 10
ACPI: PCI Interrupt 0000:01:05.0[A] -> Link [LNK0] -> GSI 10 (level, low) -> IRQ 10
ACPI: AC Adapter [ACAD] (on-line)
ACPI: Battery Slot [BAT1] (battery absent)
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
ACPI: Lid Switch [LID]
ACPI: Video Device [VGA] (multi-head: yes rom: no post: no)
ACPI: CPU0 (power states: C1[C1] C2[C2])
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI: Thermal Zone [THRM] (57 C)
ACPI: PCI Interrupt 0000:00:10.0[A]: no GSI
acpi-cpufreq: CPU0 - ACPI performance management activated.
ACPI wakeup devices:
ACPI: (supports S0 S3 S4 S5)
ACPI: PCI Interrupt Link [LNK3] enabled at IRQ 10
ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [LNK3] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI Interrupt Link [LNK2] enabled at IRQ 10
ACPI: PCI Interrupt 0000:00:0e.0[A] -> Link [LNK2] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI Interrupt 0000:00:0e.1[B] -> Link [LNK3] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI Interrupt Link [LNK7] enabled at IRQ 5
ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNK7] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNK5] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt 0000:00:0a.1[A] -> Link [LNK5] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt 0000:01:05.0[A] -> Link [LNK0] -> GSI 10 (level, low) -> IRQ 10



This line's interesting:

ACPI: Battery Slot [BAT1] (battery absent)

The battery really is there and /proc/acpi/battery/BAT1/state confirms that it's present.



My kernel config:


# Power management options (ACPI, APM)
# ACPI (Advanced Configuration and Power Interface) Support
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
# CONFIG_ACPI_SLEEP_PROC_SLEEP is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
# CONFIG_ACPI_HOTKEY is not set
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set
CONFIG_X86_ACPI_CPUFREQ=y
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
CONFIG_PNPACPI=y
# CONFIG_SERIAL_8250_ACPI is not set




When I got this machine it came with an XP and everything seemed to be fine then.

Anyone's got any ideas why this could be happening?

Thanks in advance.
 
Old 01-10-2006, 09:35 AM   #2
wookie2
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Please let me know if there's any other info I can provide.
 
Old 01-10-2006, 10:05 AM   #3
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Buggy BIOS???? Many laptops BIOS's do not conform to the acpi standards. Just because something works in Windows does not mean it will work in Linux. Windows has more manufactuer support (paid for / contract mandated) for one thing and many times 'hacks' are provided to work around this type of issue. You have the option of building a custom kernel and a custom DSDT to resolve this issue. To learn how and much more visit;

http://acpi.sourceforge.net/

http://www.acpi.info/
 
Old 01-12-2006, 12:40 PM   #4
wookie2
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the advice. I've tried it - my DSDT did actually have one error, but correcting it, recompiling and building the table into the kernel didn't help. I've also switched ACPI debug statements on, but they don't output any errors.

Any other ideas?
 
Old 01-12-2006, 01:47 PM   #5
grcore
Member
 
Registered: Nov 2004
Distribution: Mandriva + kernel 2.6.15
Posts: 38

Rep: Reputation: 15
I am not a guru on the intracasies of kernel options, but I found that the ACPI stuff worked well with the latest knoppix cd (v4.0). Even though all the ACPI and power managment options were identical to the kernel I am using (2.6.15), I had all sorts of problems with ACPI events.

I copied the .config from the 2.6.12 kernel source in knoppix 4, ran make menuconfig, compiled it and things worked much better. I was having similar problems as you, battery missing, events not happening, and freezing. I still have a few minor problems, which I will try to work out once I have some free time.

its worth a shot to see if it helps.

g
 
Old 01-12-2006, 08:08 PM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
How true, I'm running a RHEL clone myself. The vanilla kernel from kernel.org works better for me then the supplied kernels from Red Hat (even when built from the source rpm files). It takes a lot of time, trial and effort to get a good working master .config file to use building kernels with, once you have it life is good!! Sometimes it takes a good .config file and some additional work, BIOS upgrade or downgrade (rare case) and maybe a kernel patch or two.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
suspend2 2.6.14 missing kernel options cyberjun Linux - Software 1 11-19-2005 07:27 AM
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
Kernels >=2.6.9: almost no battery events yozhhh Linux - Laptop and Netbook 10 07-05-2005 03:08 PM
Question on creating ACPI events... sephkeene Linux - Laptop and Netbook 0 08-27-2004 01:15 AM
acpi events? raven Linux - Laptop and Netbook 2 10-12-2003 02:23 PM


All times are GMT -5. The time now is 01:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration