Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267048 - sys-kernel/gentoo-sources all? ACPI ac_adapter detection
Summary: sys-kernel/gentoo-sources all? ACPI ac_adapter detection
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-22 03:29 UTC by Ryan
Modified: 2009-04-25 23:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan 2009-04-22 03:29:57 UTC
Always had this issue, first tested kernel is with the stock on 2008.0 CD which I believe is 2.6.27-r9. /proc/acpi/ac_adapter is always empty so Gentoo thinks it is always working on battery. Currently use 2.6.29-r1. Laptop is Sager NP8660. This is probably a problem in vanilla too but they don't take reports from dist specific kernels. And yes, Sager says it's *nix fault and would not do anything unless I could prove it was their fault - of course. Barked up that tree. DSDT only shows 3 warnings.

Reproducible: Always

Steps to Reproduce:
1.boot





Emerge and ACPI dmesg grep included

>emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9500_@_2.53GHz-with-glibc2.2.5
Timestamp of tree: Wed, 22 Apr 2009 02:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ja en_US ja_JP"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="CJK X aac acl acpi alsa amd64 berkdb bzip2 cairo canna cjk cli cracklib crypt cups dbus directfb dri dvd dvdr emerald encode fbcon ffmpeg flac fortran gdbm gif glitz gpm gtk hal iconv imagemagick immqt-bc ipv6 isdnlog java6 jpeg jpeg2k laptop midi mmx mp3 mpeg mplayer mudflap multilib ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png pppd python quicktime readline reflection session sound spell spl sse sse2 ssl ssse3 startup-notification subtitles svg sysfs tcpd theora threads tiff truetype unicode v4l2 vcd vorbis x264 xcb xcomposite xinerama xorg xprint xscreensaver xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja en_US ja_JP" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

>dmesg | grep ACPI
5>ACPI: BIOS _OSI(Linux) query ignored
ACPI: EC: non-query interrupt received, switching to interrupt mode
ACPI: EC: GPE storm detected, transactions will use polling mode
ACPI: EC: missing confirmations, switch off interrupt mode.
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
PCI: MCFG area at e0000000 reserved in ACPI motherboard resources
ACPI: EC: GPE = 0x18, I/O: command/status = 0x66, data = 0x62
ACPI: EC: driver started in poll mode
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P2._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP01._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP02._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP03._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP05._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 *5 6 7 10 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 11 12 14 15) *10
ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 7 *10 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 7 11 12 14 15) *10
ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 7 10 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 7 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 5 6 7 10 12 14 15) *11
ACPI: PCI Interrupt Link [LNKH] (IRQs 1 3 4 5 6 *7 11 12 14 15)
PCI: Using ACPI for IRQ routing
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 10 devices
ACPI: ACPI bus type pnp unregistered
ACPI: Battery Slot [BAT0] (battery present)
ACPI Error (psargs-0359): [\_PR_.CPU0._PPC] Namespace lookup failure, AE_NOT_FOUND
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.AC__.ADJP] (Node ffff88013f85bc10), AE_NOT_FOUND
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.AC__._PSR] (Node ffff88013f85bc50), AE_NOT_FOUND
ACPI Exception (ac-0135): AE_NOT_FOUND, Error reading AC Adapter state [20081204]
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Lid Switch [LID0]
ACPI: SSDT BFD1AC20, 0265 (r1  PmRef  Cpu0Ist     3000 INTL 20050624)
ACPI: SSDT BFD186A0, 05D7 (r1  PmRef  Cpu0Cst     3001 INTL 20050624)
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
processor ACPI_CPU:00: registered as cooling_device0
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI: SSDT BFD19CA0, 01CF (r1  PmRef    ApIst     3000 INTL 20050624)
ACPI: SSDT BFD19F20, 008D (r1  PmRef    ApCst     3000 INTL 20050624)
ACPI: CPU1 (power states: C1[C1] C2[C2] C3[C3])
processor ACPI_CPU:01: registered as cooling_device1
ACPI: Processor [CPU1] (supports 8 throttling states)
ACPI: I/O resource 0000:00:1f.3 [0x1c00-0x1c1f] conflicts with ACPI region SMBI [0x1c00-0x1c0f]
ACPI: Device needs an ACPI driver
ACPI: Video Device [PEGP] (multi-head: yes  rom: no  post: no)
ACPI: Thermal Zone [TZ0] (43 C)
Comment 1 Mike Pagano gentoo-dev 2009-04-23 23:56:22 UTC
Another person with Sager and the same problems. 
http://forum.sabayonlinux.org/viewtopic.php?f=56&t=15873

Do you have the latest bios for your system?
Comment 2 Ryan 2009-04-24 00:57:30 UTC
I have as of January I believe. Sager does not publicly list them and you have to ask them via email if there's an update. Let's see if they respond to my email this time.

I have no errors and 3 warnings. I've been curious of just deleting the two OR lines since they're not used. Not quite sure to do with the middle one.

>iasl -tc dsdt.dsl 

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20090123 [Apr 22 2009]
Copyright (C) 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl  2180:                                         Or (TMOR, TMPV)
Warning  1105 -     Result is not used, operator has no effect ^ 

dsdt.dsl  5462:                         Method (WMAB, 3, NotSerialized)
Warning  1087 -                                    ^ Not all control paths return a value (WMAB)

dsdt.dsl  7027:                                 Or (TMOR, TMPV)
Warning  1105 -                                        ^ Result is not used, operator has no effect

ASL Input:  dsdt.dsl - 8309 lines, 329717 bytes, 3041 keywords
AML Output: dsdt.aml - 32473 bytes, 724 named objects, 2317 executable opcodes

Compilation complete. 0 Errors, 3 Warnings, 0 Remarks, 41 Optimizations
Comment 3 George Kadianakis (RETIRED) gentoo-dev 2009-04-24 02:37:55 UTC
(In reply to comment #2)
> I have no errors and 3 warnings. I've been curious of just deleting the two OR
> lines since they're not used. Not quite sure to do with the middle one.

Regarding the "Not all control paths" one, I found the following link in the internets which you may find of use:
http://users.telenet.be/PrittyFlemishPages/linux/aspire1800_3.html
Comment 4 Ryan 2009-04-24 21:08:24 UTC
Thank you for that George, the warning for that statement is gone. Is it actually safe for me to delete the lines for the other two warnings:

dsdt.dsl  2180:                                         Or (TMOR, TMPV)
Warning  1105 -     Result is not used, operator has no effect ^

dsdt.dsl  7027:                                 Or (TMOR, TMPV)
Warning  1105 -                                        ^ Result is not used,
operator has no effect

My knowledge of assembly says yes but just want to make sure.

I will add the custom DSDT tonight/tomorrow and report back the findings.
Comment 5 Ryan 2009-04-25 23:38:47 UTC
Reread your post Mike, that actually fixed it. Guess I skimmed too much the first time.

http://forum.sabayonlinux.org/viewtopic.php?f=56&t=15873
works. Note I also fixed DSDT of the 1 warning George pointed out, might be a combo of both.

Thanks for your comments! Now I just wish nvidia would get on the ball about powermizer.

Solution:
Recompile acpi options that default as modules to kernel accept for AC adapter. 2.6.29-r1 would not allow me to do video as part of the kernel, but it still worked as a module.
Power management and ACPI options  ---> 
     ACPI (Advanced Configuration and Power Interface) Support  --->
          [*] Deprecated /proc/acpi files
          [*]   Deprecated power /proc/acpi directories
          [*]   Future power /sys interface
          [*]   Deprecated /proc/acpi/event support
          <M>   AC Adapter  
          <*>   Battery  
          <*>  Button 
          <M>   Video
          <*>   Fan
          -*-   Dock
          <*>   Processor 
          <*>     Thermal 
          (/usr/src/dsdt_table.h) Custom DSDT Table file to include  
          [ ]   Debug Statements 
          < >   PCI slot detection driver 
          [*]   Power Management Timer Support
          -*-   ACPI0004,PNP0A05 and PNP0A06 Container Driver (EXPERIMENTAL)
          < >   Smart Battery System

>dmesg | grep ACPI
ACPI: EC: Look up EC in DSDT
ACPI: BIOS _OSI(Linux) query ignored
ACPI: EC: non-query interrupt received, switching to interrupt mode
ACPI: EC: GPE storm detected, transactions will use polling mode
ACPI: EC: missing confirmations, switch off interrupt mode.
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
PCI: MCFG area at e0000000 reserved in ACPI motherboard resources
ACPI: EC: GPE = 0x18, I/O: command/status = 0x66, data = 0x62
ACPI: EC: driver started in poll mode
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P2._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP01._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP02._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP03._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP05._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 *5 6 7 10 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 11 12 14 15) *10
ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 7 *10 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 7 11 12 14 15) *10
ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 7 10 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 7 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 5 6 7 10 12 14 15) *11
ACPI: PCI Interrupt Link [LNKH] (IRQs 1 3 4 5 6 *7 11 12 14 15)
PCI: Using ACPI for IRQ routing
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 10 devices
ACPI: ACPI bus type pnp unregistered
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Lid Switch [LID0]
ACPI: SSDT BFD1AC20, 0265 (r1  PmRef  Cpu0Ist     3000 INTL 20050624)
ACPI: SSDT BFD186A0, 05D7 (r1  PmRef  Cpu0Cst     3001 INTL 20050624)
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
processor ACPI_CPU:00: registered as cooling_device0
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI: SSDT BFD19CA0, 01CF (r1  PmRef    ApIst     3000 INTL 20050624)
ACPI: SSDT BFD19F20, 008D (r1  PmRef    ApCst     3000 INTL 20050624)
ACPI: CPU1 (power states: C1[C1] C2[C2] C3[C3])
processor ACPI_CPU:01: registered as cooling_device1
ACPI: Processor [CPU1] (supports 8 throttling states)
ACPI: Thermal Zone [TZ0] (59 C)
ACPI: AC Adapter [AC] (off-line)
ACPI: I/O resource 0000:00:1f.3 [0x1c00-0x1c1f] conflicts with ACPI region SMBI [0x1c00-0x1c0f]
ACPI: Device needs an ACPI driver
ACPI: Video Device [PEGP] (multi-head: yes  rom: no  post: no)