Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

HOWTO: Fix Common ACPI Problems (DSDT, ECDT, etc.)

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
394 posts
  • Page 14 of 16
    • Jump to page:
  • Previous
  • 1
  • …
  • 12
  • 13
  • 14
  • 15
  • 16
  • Next
Author
Message
atrus123
Guru
Guru
User avatar
Posts: 339
Joined: Wed Jul 06, 2005 10:05 pm
Location: Annapolis, MD

  • Quote

Post by atrus123 » Thu May 17, 2007 2:04 am

SDark wrote:Guys can anyone clear this out for me, I'm a bit confused.

I'm using a debugged dsdt on my default gentoo instalation and the main reason why I (and those who helped) started messing with the dsdt was the lack of battery status. No info on current charge status.

Today I tried a liveCD of the latest kubuntu series, and I was surprised to see that the battery display was working just fine there... Same goes for slax (another liveCD). So it kinda hit me... How did they do it? I think that including custom dsdt's in the kernel would be impossible so how did they managed to make it work just like that?

Anyone has any ideas?
Newer kernel perhaps?
"I cannot support a movement that exploded spending and borrowing and blames its successor for the debt."
-Andrew Sullivan
Top
SDark
n00b
n00b
User avatar
Posts: 47
Joined: Tue May 02, 2006 12:17 pm
Location: Portugal

  • Quote

Post by SDark » Thu May 17, 2007 3:00 am

atrus123 wrote:Newer kernel perhaps?
Nope ... the same with ubuntu and older with slax. Probably some custom patch, but I would like to see what is capable of and if possible request to be included in gentoo default patches.
Thread topic to [solved] if the problem is in fact solved :)
Don't waste your time on crack! Do something for the community and adopt an unanswered post
Top
Gex
n00b
n00b
User avatar
Posts: 23
Joined: Fri Sep 27, 2002 7:23 pm
Location: Vienna
Contact:
Contact Gex
Website

  • Quote

Post by Gex » Tue May 22, 2007 7:24 am

@atrus123
the solution for your prob :

^ Not all control paths return a value

#######insert a Return at the end of this method:

Return (Package(0x02){0x00,0x00})

#######you can find details here: http://home.fhtw-berlin.de/~s0502837/r31/
Top
JuPiTeR15
n00b
n00b
Posts: 13
Joined: Tue Dec 21, 2004 11:12 am

  • Quote

Post by JuPiTeR15 » Tue May 22, 2007 10:16 am

My battery status works just fine with A6T and gentoo.
I've put my .config at http://forums.gentoo.org/viewtopic-t-56 ... t-a6t.html perhaps it could help.
Top
SDark
n00b
n00b
User avatar
Posts: 47
Joined: Tue May 02, 2006 12:17 pm
Location: Portugal

  • Quote

Post by SDark » Tue May 22, 2007 11:10 am

It seems that the custom laptop support in the kernel addresses some of the battery status I mentioned before.
I'm not sure which module does the job, but when booting the liveCDs there are several acpi modules loaded. These correspond to asus acpi, toshiba acpi, and others... all of them included in the vanilla kernel.

Loading these modules seems to workaround the battery problem, at least in my case. And Acer is not listed nor mentioned in the kernel so I just left those modules out...
Last edited by SDark on Thu May 24, 2007 2:28 pm, edited 1 time in total.
Thread topic to [solved] if the problem is in fact solved :)
Don't waste your time on crack! Do something for the community and adopt an unanswered post
Top
atrus123
Guru
Guru
User avatar
Posts: 339
Joined: Wed Jul 06, 2005 10:05 pm
Location: Annapolis, MD

  • Quote

Post by atrus123 » Thu May 24, 2007 2:12 pm

Thanks to all that helped. I've uploaded a working dsdt for the Toshiba Satellite P105-S6177 to acpi.sourceforge.net. My system is dualbooted with both Gentoo and openSUSE, and sound now works in both.
"I cannot support a movement that exploded spending and borrowing and blames its successor for the debt."
-Andrew Sullivan
Top
cyko_1
n00b
n00b
Posts: 16
Joined: Wed Dec 13, 2006 11:58 pm

  • Quote

Post by cyko_1 » Wed Jun 06, 2007 6:09 am

so can anyone tell me if removing the underscores fixes the reserved word error...you never actually say in any of the reading.

I have a few errors..mostly around the reserved word

Code: Select all

mNet micro # iasl -tc dsdt.dsl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20060912 [Jun  6 2007]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl  1773:                                 Name (_T_0, 0x00)
Error    4081 -                     Use of reserved word ^  (_T_0)

dsdt.dsl  1851:                                 Name (_T_0, 0x00)
Error    4081 -                     Use of reserved word ^  (_T_0)

dsdt.dsl  2145:                             Name (_T_0, 0x00)
Error    4081 -                 Use of reserved word ^  (_T_0)

dsdt.dsl  2223:                             Name (_T_0, 0x00)
Error    4081 -                 Use of reserved word ^  (_T_0)

dsdt.dsl  6516:             Method (BTST, 0, NotSerialized)
Warning  1086 -                        ^ Not all control paths return a value (B                                                                                                TST)

dsdt.dsl  6543:             Name (_HID, "*PNP0C14")
Error    4001 -                                  ^ String must be entirely alpha                                                                                                numeric (*PNP0C14)

ASL Input:  dsdt.dsl - 6731 lines, 236548 bytes, 2496 keywords
Compilation complete. 5 Errors, 1 Warnings, 0 Remarks, 862 Optimizations
I was looking around in http://acpi.sourceforge.net/dsdt/view.p ... er=Toshiba for an already ready fixed version. It seems my laptop model isn't shown there.

I am going to have to do this myself but I don't want to kill my laptop.
Cyko
Top
Ice_Berg_
n00b
n00b
Posts: 17
Joined: Thu Sep 23, 2004 10:37 pm

  • Quote

Post by Ice_Berg_ » Thu Jun 07, 2007 7:55 pm

SDark wrote:It should ... I've got this in my config

CONFIG_ACPI_CUSTOM_DSDT=y
CONFIG_ACPI_CUSTOM_DSDT_FILE="/etc/acpi/dsdt_table.h"
I have the same problem these options do not appear in my .config or in menuconfig

Kernel version: 2.6.20-gentoo-r8

I am going to upgrade to 2.6.21 to see if that solves the problem, but it should be noted that the option isnt there on that kernel version.
Top
Shoikan
n00b
n00b
Posts: 8
Joined: Tue Jul 06, 2004 12:36 pm

  • Quote

Post by Shoikan » Wed Jun 27, 2007 3:03 pm

That option actually IS there.. But you have to look for the options that have to do with firmware. If I recall correctly (can't get to a gentoo machine right now), you have to disable something called 'don't build drivers that require firmware' plus the option right underneath or above that. This is 'hidden' in the drivers section, not in the acpi one. When you've done that, the items you were looking for will appear in the acpi section.

I've had a hard time finding them too :D
Top
sydney
n00b
n00b
Posts: 44
Joined: Mon Sep 26, 2005 10:57 pm

  • Quote

Post by sydney » Wed Jun 27, 2007 3:33 pm

Can someone Help me to Fix my broken DSDT? or a Howto where i can finde a solution for this Erros.

Code: Select all

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20061109 [Apr 25 2007]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl  1970:                     Method (DRUL, 1, NotSerialized)
Warning  1086 -                                ^ Not all control paths return a value (DRUL)

dsdt.dsl  2624:                         Method (_DCK, 1, NotSerialized)
Warning  1086 -                                    ^ Not all control paths return a value (_DCK)

dsdt.dsl  2624:                         Method (_DCK, 1, NotSerialized)
Warning  1079 -                                    ^ Reserved method must return a value (_DCK)

dsdt.dsl  7623:                             And (0xFE, Local7)
Warning  1104 -                                     ^ Result is not used, operator has no effect

ASL Input:  dsdt.dsl - 7770 lines, 288199 bytes, 3198 keywords
AML Output: dsdt.aml - 27435 bytes 675 named objects 2523 executable opcodes
Thanks you a lot :-)
Top
sydney
n00b
n00b
Posts: 44
Joined: Mon Sep 26, 2005 10:57 pm

  • Quote

Post by sydney » Wed Jun 27, 2007 3:36 pm

Can someone Help me to Fix my broken DSDT? or a Howto where i can find a solution for this Erros.

Code: Select all

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20061109 [Apr 25 2007]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl  1970:                     Method (DRUL, 1, NotSerialized)
Warning  1086 -                                ^ Not all control paths return a value (DRUL)

dsdt.dsl  2624:                         Method (_DCK, 1, NotSerialized)
Warning  1086 -                                    ^ Not all control paths return a value (_DCK)

dsdt.dsl  2624:                         Method (_DCK, 1, NotSerialized)
Warning  1079 -                                    ^ Reserved method must return a value (_DCK)

dsdt.dsl  7623:                             And (0xFE, Local7)
Warning  1104 -                                     ^ Result is not used, operator has no effect

ASL Input:  dsdt.dsl - 7770 lines, 288199 bytes, 3198 keywords
AML Output: dsdt.aml - 27435 bytes 675 named objects 2523 executable opcodes
Thanks a lot :-)
Top
Pandor
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Wed Nov 16, 2005 5:25 pm
Location: Belgium

  • Quote

Post by Pandor » Tue Jul 03, 2007 9:04 am

Could someone help me out, with my dsdt?

Code: Select all

iasl -tc dsdt.dsl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20060912 [Jul  2 2007]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl   172:     Method (_WAK, 1, NotSerialized)
Warning  1079 -                ^ Reserved method must return a value (_WAK)

dsdt.dsl  1057:                                 If (Local1)
Error    4049 - Method local variable is not initialized ^  (Local1)

dsdt.dsl  3164:                     Field (ERAM, AnyAcc, Lock, Preserve)
Error    4074 -                               ^ Host Operation Region requires ByteAcc access

ASL Input:  dsdt.dsl - 4694 lines, 183539 bytes, 2049 keywords
Compilation complete. 2 Errors, 1 Warnings, 0 Remarks, 646 Optimizations
So, on to fixing it:

Code: Select all

nano +172 dsdt.dsl

 Method (_WAK, 1, NotSerialized)
    {
        Store (0x01, BATN)
        If (LEqual (Arg0, 0x03)) {}
        If (LEqual (Arg0, 0x04))
        {
            Notify (\_SB.PWRB, 0x02)
            \_SB.PCI0.LPC0.PHSS (0x0F)
        }

        If (LGreaterEqual (OSTP, 0x01))
        {
            Notify (\_SB.PCI0.IDEC.SECD, 0x00)
            Notify (\_SB.PCI0.IDEC.SECD.S_D0, 0x01)
        }
    }
Replaced with:

Code: Select all


Method (_WAK, 1, NotSerialized)
    {
        Store (0x01, BATN)
        If (LEqual (Arg0, 0x03)) {}
        If (LEqual (Arg0, 0x04))
        {
            Notify (\_SB.PWRB, 0x02)
            \_SB.PCI0.LPC0.PHSS (0x0F)
        }

        If (LGreaterEqual (OSTP, 0x01))
        {
            Notify (\_SB.PCI0.IDEC.SECD, 0x00)
            Notify (\_SB.PCI0.IDEC.SECD.S_D0, 0x01)
        }
        Return (Package (0x02)
        {
             0x00,
             0x00
        })
    }

Code: Select all

nano +3164 dsdt.dsl
                    OperationRegion (ERAM, EmbeddedControl, 0x00, 0xFF)
                    Field (ERAM, AnyAcc, Lock, Preserve)
                    {
Replaced with:

Code: Select all

                    OperationRegion (ERAM, EmbeddedControl, 0x00, 0xFF)
                    Field (ERAM, ByteAcc, Lock, Preserve)
                    {
The only thing that's still bugging me is line 1057, Local1 not being initialized.

Code: Select all

 Device (LPC0)
            {
                Method (SWAP, 0, NotSerialized)
                {
                    \_SB.PCI0.LPC0.PHSS (0x0A)
                    Store (BAYS, Local0)
                    If (LOr (LEqual (Local0, 0x04), LEqual (Local0, 0x08)))
                    {
                        If (LEqual (\_SB.PCI0.LPC0.SPWR, 0x00))
                        {
                            Store (0x01, \_SB.PCI0.LPC0.SPWR)
                            Sleep (0x1E)
                            And (\_SB.PCI0.IDEC.ICR4, 0x03, \_SB.PCI0.IDEC.ICR4)
                            Sleep (0x1E)
                            Store (0x01, \_SB.PCI0.LPC0.SRST)
                        }

                        If (LGreaterEqual (OSTP, 0x01))
                        {
                            Sleep (0x09C4)
                            If (LEqual (OSTP, 0x01))
                            {
                                If (Local1)
                                {
                                    Sleep (0x09C4)
                                }
                            }
                        }
                    }
                    Else
                    {
                        \_SB.PCI0.LPC0.EJSE ()
                    }

                    If (LGreaterEqual (OSTP, 0x01))
                    {
                        Notify (\_SB.PCI0.IDEC.SECD, 0x00)
                        Notify (\_SB.PCI0.IDEC.SECD.S_D0, 0x01)
                    }
                }
The full dsdt.dsl can be found @ http://members.lycos.nl/pandoriaantje/f ... x/dsdt.dsl
Top
sonaatti
n00b
n00b
Posts: 39
Joined: Mon Jan 09, 2006 5:47 pm

  • Quote

Post by sonaatti » Sun Jul 15, 2007 3:23 pm

After upgrading to gentoo-sources-2.6.22-r1 my ecdt is missing, worked in 2.6.20.

Code: Select all

ACPI Error (evregion-0316): No handler for Region [EC__] (ffff81005e908560) [EmbeddedControl] [20070126]
ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node ffff81005e910670), AE_NOT_EXIST
Any suggestions ? I assume the patch in the first post does not work any more since it's a couple of years old.
Top
pyrotek
n00b
n00b
Posts: 23
Joined: Tue Jul 24, 2007 2:09 pm

  • Quote

Post by pyrotek » Tue Jul 24, 2007 2:15 pm

Hello all,

I've fixed all of my issues but one.

" Statement is unreachable "

Code: Select all

Context:-
dsdt.dsl   888:                         Name (PSIZ, 0x00)
Warning  1098 -         Statement is unreachable ^ 
Part taken from dsdt.dsl

Code: Select all

       Name (PSIZ, 0x00)
                        Name (PPTR, 0x00)
                        \_SB.SSMI (0x82, 0x02)
                        Store (CADL, Local0)
                        Store (CADL, Local1)
                        Store (CADL, PADL)
                        While (Local1)
I've googled for quite sometime but can't seem to locate what to do to fix this. I've had some pointers at returning the PSIZ value but not sure how or even if this needs to be stored somewhere.

Anyone Have any ideas??

Thanks
Top
zeroQ
n00b
n00b
Posts: 11
Joined: Tue Jul 03, 2007 7:41 pm

  • Quote

Post by zeroQ » Tue Jul 31, 2007 9:43 pm

Guys... plz help somebody with this errors.... try use info about this error from others post... but i`m not programmer... it`s too hard for me... can help.... my machine Toshiba Satellite L100-173 (no in acpi.source database)... here my dsdt.dsl - http://pastebin.ca/641035

and here error code....

Code: Select all

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20060912 [Jul 29 2007]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

acpi.dsl   158:     Method (_WAK, 1, NotSerialized)
Warning  1079 -                ^ Reserved method must return a value (_WAK)

acpi.dsl  1642:                 Field (SMB, WordAcc, NoLock, Preserve)
Error    4026 -                          ^ Access width is greater than region size

acpi.dsl  1644:                     SIRQ,   8
Error    4027 -                        ^ Access width of Field Unit extends beyond region limit

acpi.dsl  4048:                                 Name (_T_0, 0x00)
Error    4081 -                     Use of reserved word ^  (_T_0)

acpi.dsl  4126:                                 Name (_T_0, 0x00)
Error    4081 -                     Use of reserved word ^  (_T_0)

acpi.dsl  4602:             Method (EVNT, 1, NotSerialized)
Warning  1086 -                        ^ Not all control paths return a value (EVNT)

acpi.dsl  4929:                     Name (_T_0, 0x00)
Error    4081 -         Use of reserved word ^  (_T_0)

ASL Input:  acpi.dsl - 5275 lines, 186422 bytes, 2160 keywords
Compilation complete. 5 Errors, 2 Warnings, 0 Remarks, 917 Optimizations
thanks for any advice or fixing... sorry for my eng. ;)
Top
oshecho
n00b
n00b
Posts: 62
Joined: Sat Dec 23, 2006 7:52 pm

  • Quote

Post by oshecho » Wed Aug 01, 2007 8:54 pm

zeroQ wrote:Guys... plz help somebody with this errors.... try use info about this error from others post... but i`m not programmer... it`s too hard for me... can help.... my machine Toshiba Satellite L100-173 (no in acpi.source database)... here my dsdt.dsl - http://pastebin.ca/641035

and here error code....

Code: Select all

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20060912 [Jul 29 2007]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

acpi.dsl   158:     Method (_WAK, 1, NotSerialized)
Warning  1079 -                ^ Reserved method must return a value (_WAK)

acpi.dsl  1642:                 Field (SMB, WordAcc, NoLock, Preserve)
Error    4026 -                          ^ Access width is greater than region size

acpi.dsl  1644:                     SIRQ,   8
Error    4027 -                        ^ Access width of Field Unit extends beyond region limit

acpi.dsl  4048:                                 Name (_T_0, 0x00)
Error    4081 -                     Use of reserved word ^  (_T_0)

acpi.dsl  4126:                                 Name (_T_0, 0x00)
Error    4081 -                     Use of reserved word ^  (_T_0)

acpi.dsl  4602:             Method (EVNT, 1, NotSerialized)
Warning  1086 -                        ^ Not all control paths return a value (EVNT)

acpi.dsl  4929:                     Name (_T_0, 0x00)
Error    4081 -         Use of reserved word ^  (_T_0)

ASL Input:  acpi.dsl - 5275 lines, 186422 bytes, 2160 keywords
Compilation complete. 5 Errors, 2 Warnings, 0 Remarks, 917 Optimizations
thanks for any advice or fixing... sorry for my eng. ;)
For the 'Use of reserved word' errors, just rename all ocurrances of it with something else. I think I renamed all my '_T_0' to 'T_0'. I'm not sure about the access width. For the 'Not all control paths return a value', you need to stick a return in there. But I dont remember what it should be returning. You should be able to find what to return by searching around.
Adopt an unanswered post!
God rocks
Top
retroman
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Thu Nov 18, 2004 6:25 pm
Location: Stuttgart

  • Quote

Post by retroman » Thu Aug 23, 2007 5:58 pm

can anyone here provice a dsdt for a laptop with a turion 64 x2 processor who currently has more than 1 c-state. The dv6000 pavilion only shows 1 but i believe there are more.

thanx

j
Top
lobo_it
n00b
n00b
User avatar
Posts: 1
Joined: Fri Aug 24, 2007 2:42 pm
Location: Italy

Reserved method has too many arguments (_OSC requires 4)

  • Quote

Post by lobo_it » Fri Aug 24, 2007 3:21 pm

Hello all,

this is my first time as writer in this forum (but not my first time as reader).

I have a Acer 5720 notebook, and I have already fixed nearly all the bugs of my DSDT (many thanks to all the writers of this post, of course :wink: ).

It remains just the following Warning:
dsdt.dsl 906: Method (_OSC, 5, NotSerialized)
Warning 1075 - ^ Reserved method has too many arguments (_OSC requires 4)
Unfortunately I cannot change the "5" with a "4" in the method declaration, since the fifth param is used into the method body!

Here is the method body (note the usage of the "Store (Arg4, BUF1)"):

Code: Select all

            Method (_OSC, 5, NotSerialized)
            {
                Store (Arg3, Local0)
                Multiply (Local0, 0x04, Local1)
                Name (BUF1, Buffer (Local1) {})
                Store (Arg4, BUF1)
                Store (Zero, Local1)
                Store (Zero, Local2)
                While (Local0)
                {
                    Multiply (Local1, 0x04, Local2)
                    CreateDWordField (BUF1, Local2, CAPB)
                    If (Arg2)
                    {
                        If (LEqual (Local1, Zero))
                        {
                            And (CAPB, 0xFFFFFFFC)
                        }
                    }
                    Else
                    {
                    }

                    Increment (Local1)
                    Decrement (Local0)
                }

                Return (BUF1)
            }
any idea?

thanks in advance
Top
eccerr0r
Watchman
Watchman
Posts: 10234
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

stores to undefined variables

  • Quote

Post by eccerr0r » Wed Aug 29, 2007 3:36 pm

Anyone know what to do to fix sillyness like:

Code: Select all

ouka.dsl   332:             Store (Local0, Local0)
Error    4049 -                         ^ Method local variable is not initialized (Local0)
This of course makes absolutely no sense... Has anyone figured out a way to figure out what this statement was initially trying to accomplish? Or what to do to fix something like this?

(This showed up on my Abit IS7 and Foxconn G9657MA motherboards, eerily similar errors. Both use Award BIOS I think.)

My Foxconn's WOL doesn't work (there seems to be another warning related to that) as well as hangs randomly on boot while detecting ACPI... wonderring if this is related...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
ferreirafm
Guru
Guru
Posts: 487
Joined: Thu Jul 28, 2005 7:08 pm
Location: Sao Paulo, Brazil

  • Quote

Post by ferreirafm » Sat Sep 15, 2007 12:09 am

I would appreciate if someone could help me to track this warning down.
Thanks!

Code: Select all

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20061109 [Sep 14 2007]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl  1528:                     Acquire (MUT0, 0x0FFF)
Warning  1103 -    Possible operator timeout is ignored ^

ASL Input:  dsdt.dsl - 3536 lines, 115967 bytes, 1313 keywords
AML Output: dsdt.aml - 11384 bytes 452 named objects 861 executable opcodes

Compilation complete. 0 Errors, 1 Warnings, 0 Remarks, 22 Optimizations
I believe such warning has something to do with hibernation/sleeping. My box just turn off after the sleeping time with no issues to syslog. Any clues are welcome.
Thanks.
Top
Satan Klaus
n00b
n00b
Posts: 19
Joined: Wed May 11, 2005 7:57 pm

  • Quote

Post by Satan Klaus » Sun Nov 04, 2007 10:35 am

SDark wrote: I'm giving up on this ... Commenting out the notification code!
No lid events but at least no high CPU loads nor huge logs.
Hi! Maybe I'm posting a little late but I didn't pay attention to the A6T lid problem until recently.

I've read the whole discussion about A6T lid events and came to conclusion that the approach of modifying \SB.LID._LID() method was completely wrong. The real source of problem with events flood is straightforward approach to notification in \_GPE._L12 method. So, I've changed

Code: Select all

                Scope (\_GPE)
                {
                    Method (_L12, 0, NotSerialized)
                    {
                        Notify (\_SB.LID, 0x80)
                    }
                }
to this:

Code: Select all

                Scope (\_GPE)
                {
                    Name (LSTR, 0xFF)
                    Method (_L12, 0, Serialized)
                    {
                        While(LEqual (\_SB.LID._LID (), LSTR)) {
                            Sleep(0x80)
                        }

                        Store(\_SB.LID._LID (), LSTR)
                        Notify (\_SB.LID, 0x80)
                    }
                }
and voila! - it works as expected generating only one event per lid opening/closing respectively.
Maybe Sleep() argument needs adjusment though.

And for other Asus A6T users experiencing the same problem when the the CPU fan keeps running all the time if CPU temperature doesn't reach the threshold of about 50C I have working solution too: there's a need to add a call to \_GPE._L02 method (may be \_TZ.STRP will suffice - it's called from \_GPE._L02) to some code which is executed during either OS start and resume fom suspend/hibernation. So I've decided to put it in \_TZ._TMP before Return() statement:

Code: Select all

                        Method (_TMP, 0, NotSerialized)
                        {
                            Store (0x05, Local1)
                            While (Local1)
                            {
                                Store (RTMP (), Local0)
                                If (LGreater (Local0, TCRT))
                                {
                                    Decrement (Local1)
                                }
                                Else
                                {
                                    Store (0x00, Local1)
                                }
                            }

                            \_GPE._L02 ()

                            Return (KELV (Local0))
                        }
The result is that fan works as expected running only when CPU temperature is really high.
Top
Fuzzo
Guru
Guru
User avatar
Posts: 319
Joined: Wed Jun 23, 2004 5:35 pm
Location: Padova, Italy

Dell 5150

  • Quote

Post by Fuzzo » Wed Jan 02, 2008 7:18 pm

I think i'm one step far away the solution:

Code: Select all

dell ~ # iasl -tc dsdt.dsl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20060912 [Jan  2 2008]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl  1681:                 Method (_S0D, 0, NotSerialized)
Warning  1097 -      Unknown reserved name ^  (_S0D)

dsdt.dsl  1723:                 Method (_S0D, 0, NotSerialized)
Warning  1097 -      Unknown reserved name ^  (_S0D)

dsdt.dsl  1777:                 Method (_S0D, 0, NotSerialized)
Warning  1097 -      Unknown reserved name ^  (_S0D)

dsdt.dsl  1819:                 Method (_S0D, 0, NotSerialized)
Warning  1097 -      Unknown reserved name ^  (_S0D)

dsdt.dsl  2111:                         And (Local0, 0x0F)
Warning  1104 -                                   ^ Result is not used, operator has no effect

dsdt.dsl  2169:                         And (Local0, 0x0F)
Warning  1104 -                                   ^ Result is not used, operator has no effect

dsdt.dsl  2227:                         And (Local0, 0x0F)
Warning  1104 -                                   ^ Result is not used, operator has no effect

dsdt.dsl  2285:                         And (Local0, 0x0F)
Warning  1104 -                                   ^ Result is not used, operator has no effect

dsdt.dsl  2343:                         And (Local0, 0x0F)
Warning  1104 -                                   ^ Result is not used, operator has no effect

dsdt.dsl  2401:                         And (Local0, 0x0F)
Warning  1104 -                                   ^ Result is not used, operator has no effect

ASL Input:  dsdt.dsl - 2744 lines, 80008 bytes, 981 keywords
AML Output: dsdt.aml - 8594 bytes 385 named objects 596 executable opcodes

Compilation complete. 0 Errors, 10 Warnings, 0 Remarks, 279 Optimizations
Anyone can help me with these 2 warnings? Thanks!
bye,
Fuzzo
Top
_Stevie_
n00b
n00b
Posts: 7
Joined: Sun Jan 20, 2008 8:56 pm

  • Quote

Post by _Stevie_ » Wed Jan 30, 2008 12:57 am

hello all,

i fear i wont get any help, since no one answers questions in this thread
but im gonna try anyway.
my case is described here:
http://ubuntuforums.org/showthread.php?t=681887

greets,

stevie
Top
mimosinnet
l33t
l33t
User avatar
Posts: 720
Joined: Thu Aug 10, 2006 4:20 pm
Location: Barcelona, Spain
Contact:
Contact mimosinnet
Website

  • Quote

Post by mimosinnet » Wed Feb 06, 2008 10:09 am

_Stevie_ wrote:i fear i wont get any help, since no one answers questions in this thread
but im gonna try anyway.
my case is described here:
http://ubuntuforums.org/showthread.php?t=681887
You are right. There are many people asking questions not willing to answer them, even if they have found the solution.

I was having these errors, some of them similar to yours:

Code: Select all

# iasl -tc dsdt.dsl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20060912 [Jan 24 2008]
Copyright (C) 2000 - 2006 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl  2893:                     Method (_CRS, 0, Serialized)
Warning  1086 -                                ^ Not all control paths return a value (_CRS)

dsdt.dsl  2893:                     Method (_CRS, 0, Serialized)
Warning  1079 -                                ^ Reserved method must return a value (_CRS)

dsdt.dsl  3553:     Method (_WAK, 1, NotSerialized)
Warning  1079 -                ^ Reserved method must return a value (_WAK)

ASL Input:  dsdt.dsl - 3608 lines, 125528 bytes, 1401 keywords
AML Output: dsdt.aml - 13236 bytes 436 named objects 965 executable opcodes
I have been able to solve all of them by reading the posts in this thread: adding at the end of the method:

Code: Select all

Return (Package (0x02) 
        { 
             0x00, 
             0x00 
        }) 
Hope it is helpful.

Cheers!
Top
_Stevie_
n00b
n00b
Posts: 7
Joined: Sun Jan 20, 2008 8:56 pm

  • Quote

Post by _Stevie_ » Wed Feb 06, 2008 5:09 pm

hi mimosinnet!

thanks for your reply :D
im gonna try this and will post feedback here!


greets,

stevie
Top
Post Reply

394 posts
  • Page 14 of 16
    • Jump to page:
  • Previous
  • 1
  • …
  • 12
  • 13
  • 14
  • 15
  • 16
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy