Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Fix Common ACPI Problems (DSDT, ECDT, etc.)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 13, 14, 15, 16  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
atrus123
Guru
Guru


Joined: 06 Jul 2005
Posts: 339
Location: Annapolis, MD

PostPosted: Thu May 17, 2007 2:04 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
SDark
n00b
n00b


Joined: 02 May 2006
Posts: 47
Location: Portugal

PostPosted: Thu May 17, 2007 3:00 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Gex
n00b
n00b


Joined: 27 Sep 2002
Posts: 23
Location: Vienna

PostPosted: Tue May 22, 2007 7:24 am    Post subject: Reply with quote

@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/
Back to top
View user's profile Send private message
JuPiTeR15
n00b
n00b


Joined: 21 Dec 2004
Posts: 13

PostPosted: Tue May 22, 2007 10:16 am    Post subject: Reply with quote

My battery status works just fine with A6T and gentoo.
I've put my .config at http://forums.gentoo.org/viewtopic-t-560048-highlight-a6t.html perhaps it could help.
Back to top
View user's profile Send private message
SDark
n00b
n00b


Joined: 02 May 2006
Posts: 47
Location: Portugal

PostPosted: Tue May 22, 2007 11:10 am    Post subject: Reply with quote

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...
_________________
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


Last edited by SDark on Thu May 24, 2007 2:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
atrus123
Guru
Guru


Joined: 06 Jul 2005
Posts: 339
Location: Annapolis, MD

PostPosted: Thu May 24, 2007 2:12 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
cyko_1
n00b
n00b


Joined: 13 Dec 2006
Posts: 16

PostPosted: Wed Jun 06, 2007 6:09 am    Post subject: Reply with quote

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:

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.php?manufacturer=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
Back to top
View user's profile Send private message
Ice_Berg_
n00b
n00b


Joined: 23 Sep 2004
Posts: 17

PostPosted: Thu Jun 07, 2007 7:55 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Shoikan
n00b
n00b


Joined: 06 Jul 2004
Posts: 8

PostPosted: Wed Jun 27, 2007 3:03 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
sydney
n00b
n00b


Joined: 26 Sep 2005
Posts: 44

PostPosted: Wed Jun 27, 2007 3:33 pm    Post subject: Reply with quote

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

Code:

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 :-)
Back to top
View user's profile Send private message
sydney
n00b
n00b


Joined: 26 Sep 2005
Posts: 44

PostPosted: Wed Jun 27, 2007 3:36 pm    Post subject: Reply with quote

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

Code:

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 :-)
Back to top
View user's profile Send private message
Pandor
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2005
Posts: 128
Location: Belgium

PostPosted: Tue Jul 03, 2007 9:04 am    Post subject: Reply with quote

Could someone help me out, with my dsdt?

Code:
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:
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:


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:
nano +3164 dsdt.dsl
                    OperationRegion (ERAM, EmbeddedControl, 0x00, 0xFF)
                    Field (ERAM, AnyAcc, Lock, Preserve)
                    {

Replaced with:
Code:

                    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:

 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/files/linux/dsdt.dsl
Back to top
View user's profile Send private message
sonaatti
n00b
n00b


Joined: 09 Jan 2006
Posts: 39

PostPosted: Sun Jul 15, 2007 3:23 pm    Post subject: Reply with quote

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

Code:

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.
Back to top
View user's profile Send private message
pyrotek
n00b
n00b


Joined: 24 Jul 2007
Posts: 23

PostPosted: Tue Jul 24, 2007 2:15 pm    Post subject: Reply with quote

Hello all,

I've fixed all of my issues but one.

" Statement is unreachable "

Code:

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


Part taken from dsdt.dsl
Code:

       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
Back to top
View user's profile Send private message
zeroQ
n00b
n00b


Joined: 03 Jul 2007
Posts: 11

PostPosted: Tue Jul 31, 2007 9:43 pm    Post subject: Reply with quote

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:
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. ;)
Back to top
View user's profile Send private message
oshecho
n00b
n00b


Joined: 23 Dec 2006
Posts: 62

PostPosted: Wed Aug 01, 2007 8:54 pm    Post subject: Reply with quote

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:
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
Back to top
View user's profile Send private message
retroman
Apprentice
Apprentice


Joined: 18 Nov 2004
Posts: 207
Location: Stuttgart

PostPosted: Thu Aug 23, 2007 5:58 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
lobo_it
n00b
n00b


Joined: 24 Aug 2007
Posts: 1
Location: Italy

PostPosted: Fri Aug 24, 2007 3:21 pm    Post subject: Reserved method has too many arguments (_OSC requires 4) Reply with quote

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:

Quote:

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:

            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
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3874
Location: USA

PostPosted: Wed Aug 29, 2007 3:36 pm    Post subject: stores to undefined variables Reply with quote

Anyone know what to do to fix sillyness like:

Code:
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@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 457
Location: Sao Paulo, Brazil

PostPosted: Sat Sep 15, 2007 12:09 am    Post subject: Reply with quote

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

Code:

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.
Back to top
View user's profile Send private message
Satan Klaus
n00b
n00b


Joined: 11 May 2005
Posts: 19

PostPosted: Sun Nov 04, 2007 10:35 am    Post subject: Reply with quote

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:

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


to this:

Code:

                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:

                        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.
Back to top
View user's profile Send private message
Fuzzo
Guru
Guru


Joined: 23 Jun 2004
Posts: 319
Location: Padova, Italy

PostPosted: Wed Jan 02, 2008 7:18 pm    Post subject: Dell 5150 Reply with quote

I think i'm one step far away the solution:
Code:
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
Back to top
View user's profile Send private message
_Stevie_
n00b
n00b


Joined: 20 Jan 2008
Posts: 7

PostPosted: Wed Jan 30, 2008 12:57 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
mimosinnet
Guru
Guru


Joined: 10 Aug 2006
Posts: 523
Location: Barcelona, Spain

PostPosted: Wed Feb 06, 2008 10:09 am    Post subject: Reply with quote

_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:
# 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:
Return (Package (0x02)
        {
             0x00,
             0x00
        })


Hope it is helpful.

Cheers!
Back to top
View user's profile Send private message
_Stevie_
n00b
n00b


Joined: 20 Jan 2008
Posts: 7

PostPosted: Wed Feb 06, 2008 5:09 pm    Post subject: Reply with quote

hi mimosinnet!

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


greets,

stevie
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 13, 14, 15, 16  Next
Page 14 of 16

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum