InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #1  
Old 08-17-2009, 02:00 PM
Gurruwiwi Gurruwiwi is offline
Tiger
 
Join Date: Jun 2009
Posts: 306
Hi guys,

I dont mean to hijack the thread, but what beeter place for 2 quick DSDT questions for people who actually seem to know what they are talking about !!
No one has been able to answer me, well... because no one seems to actually KNOW what they are saying... Please please help!
DSDT is the voodoo of computers for to me loool...
Ok, I've got 2 Acer laptops and 1 Asus laptop. Just for reference. All had OSx, 10.4 to 10.5, many distros, my latest and greatest in my sig.

How on earth do I know if DSDT is doing something or not ?

iAtkos v7 Chameleon 2 RC1 (now RC2) and fassls DSDT script checked. DSDT.aml
is in root, but I tried in Extra folder and felt absolutely no difference.
On first boot I press power, poweroff window comes up (native install) My multimedia controller on my keyboard controls volume and front row funtions!! (photos in link in signature) - Video card not detected (but with strings + 2 kext native HD res QE etc)
Out of the box, FN and up down increases/decreases screen brightness. Other fn work, very few dont.
. Audio works OTB, clicks pops etc, no internal or external mic. VoodooHDA is the same,
Ehternet with kext only... didnt try stringing it because I got it to work
So how do I know if DSDT is working? if I remove it I am almost certain my laptop will respond the same.

My previous laptops, NONE used DSDT, I pressed power button, they worked fine! Brightness and other stuff too... etc etc
and I am scared because I read sometimes
"Patch DSDT at you own risk!! !
as in flashing the bios or something... can I bick my laptop with DSDT !??! When can DSDT be dangerous?

I want to try decompiling and fixing my dsdt for Snow... but I dont even know if

1) I actually need it
2) If it is working or not
3) it is dangerous, or when is it dangerous?

ok, three questions

thanks in advance"

_____________________________________________

Acer 6936g 864G32mn [@ Snow Leopard 10.6.1 32/64bit
C2D 2,4Ghz 4Gb 1066mhz DDR3 9600m GT 512 GDDR3

___Snow Leopard tutorial -> http://www.infinitemac.com/f57/guide...ted-for-t4183/
_________Leopard
tutorial ->http://www.infinitemac.com/f19/guide...-iatkos-t3357/

Last edited by Gurruwiwi; 08-17-2009 at 02:02 PM.
Reply With Quote
  #2  
Old 08-17-2009, 07:01 PM
kizwan kizwan is offline
Jaguar
 
Join Date: Jun 2009
Posts: 36
Quote:
Originally Posted by Gurruwiwi View Post
1) I actually need it
2) If it is working or not
3) it is dangerous, or when is it dangerous?
................
1) You don't need it unless you need it. If everything is working properly, so you don't need it. DSDT override just for PC that have problem with CPU alias (only can use one core), sound, graphic card, power management & etc.
2) It is working.
3) No hard evidence that it is dangerous. DSDT override can be applied by 2 ways; i) by using dsdt.aml file. ii) by flashing it to ROM permanently. Of course the second one is dangerous if you do it wrongly.

kizwan
Reply With Quote
  #3  
Old 10-20-2009, 04:07 PM
2nerd4u 2nerd4u is offline
Cheetah
 
Join Date: Oct 2009
Posts: 2
Quote:
Originally Posted by sk1nhd33t View Post
Quote:
Originally Posted by pentiumpc View Post
change _HID to _CID

Device (PWRB)
{
Name (_HID, EisaId ("PNP0C0C")) ---> Name (_CID, EisaId ("PNP0C0C"))
Name (_UID, 0xAA)
Name (_STA, 0x0B)
}


This one I got it off some site, cannot remember where. (credit goes to him/her)
This will activate your power button to bring up the shutdown menu.

hmm weird, tried doing this on my gigabyte board but the shutdown menu wont show, when i press the power button my hack will just sleep thats it
mine will shut down instantly
edit: well actually it just goes to sleep mode verry fast^^ too bad my system wont wake from sleep...

Last edited by 2nerd4u; 10-20-2009 at 04:12 PM.
Reply With Quote
  #4  
Old 09-07-2009, 08:16 AM
The Edge3000's Avatar
The Edge3000 The Edge3000 is offline
Cheetah
 
Join Date: Jul 2009
Posts: 9
I applied the power button fix. However, It only seems to work when I check the box to allow it to sleep the computer. Other than that, it does nothing - no menu or anything.

Asus P5KC | Q6600 3.02GHz | 4 GB DDR2 887MHz | 9800GTX | 1TB WD Caviar Black

Snow Leopard 10.6.2
Sleep | Vanilla Speedstep | DSDT

Everything you need can be downloaded here.

Leopard 10.5.8 | Windows 7 Ultimate x64 | Windows XP SP3
Reply With Quote
  #5  
Old 09-08-2009, 09:21 PM
Common_Sense Common_Sense is offline
Cheetah
 
Join Date: Jul 2009
Posts: 3
I applied the power button fix but it doesn't work, when I press it my computer will enter sleep mode without displaying any message just like it did before I applied the fix, I have a gigabyte EP45-DS3LR, anyone knows whats wrong?, this is how the DSDT looks like:

Device (PWRB)
{
Name (_HID, EisaId ("PNP0C0C")) --> Name (_CID, EisaId ("PNP0C0C"))
Method (_STA, 0, NotSerialized)
{
Return (0x0B)
}
}
Reply With Quote
  #6  
Old 09-25-2009, 03:41 AM
gnychis gnychis is offline
Cheetah
 
Join Date: Sep 2009
Posts: 7
hi all... I have a Thinkpad X300, that whenever I put to sleep, I see the wireless light blink, and the the laptop wakes up. It seems as though the wireless card is waking the system after a second or two every time I sleep it.

Does anyone have any recommendations for this in terms of the DSDT? I've attached mine if it helps.
Attached Files
File Type: zip DSDT.dsl.zip (29.9 KB, 26 views)
Reply With Quote
  #7  
Old 10-05-2009, 05:37 AM
msingh msingh is offline
Puma
 
Join Date: Jul 2009
Posts: 18
DSDT advice needed

Hello,

My system is a Dell D830.

After a lot of tinkering around, I managed to install Snow Leopard on it. Please see my guide.

I did a few DSDT mods to get some basic fixes.

Now, the system sleeps (S3 suspend to ram) but does not deep sleep (S5 suspend to disk), shutdown or reboot. I am using OpenHaltRestart.kext and SleepEnabler.kext. The latter made it possible to even suspend.

I am including my dsdt.dsl (which includes my fixes, by the way).

I see tantalizing references to the sleep button, SBTN, etc., but I have not found any systematic documentation for the code (btw. I am comfortable with coding as I do plenty of numerical coding in my work).

Can anyone take a look and let me know what I need to do to fix my poweroff and hibernate problem ?

The DSDT repository does not contain a fixed DSDT for my laptop.

PS: Microsoft's ASL compiler should be outlawed.
Attached Files
File Type: zip dsdt.dsl.zip (20.9 KB, 62 views)

Dell Optiplex 745 Q965 Chipset
10.5.5 retail /boot-132/ EFI.
System.plist edited to 10.5.6 (needed for iWork'09)
Intel HD Audio ADI1983.
1152x864@32bit ATI (0x1002 0x7187 0x0000) Radeon X1300. Hardware accelerated. QE supported. Can't get my monitor's 1440x900 resolution as in Linux
Network : Atheros 5005G (0x168c, 0x3A1D) card aka Atheros 2413.
Dell Latitude D830 Nvidia Quadro NVS 140M, Suspend works, hibernate/shutdown/reboot don't Snow Leopard
Reply With Quote
  #8  
Old 12-21-2009, 01:26 PM
Sweaty Sweaty is offline
Cheetah
 
Join Date: Sep 2009
Posts: 14
DSDT shutdown patch

With this and new restart patch chameleon booter from Duvel (strong beer that) I have only fakesmc as an added kext, although I'm about to reinstall voodoohda so I can hopefully have two soundcards working.. anyway this is mm67's work I just found it a pain to find the detail on insane so posting it here.. Thanks to all who put together these fixes. Need to add the two operation region bits and change your method PTS

Code:
    OperationRegion (DEBG, SystemIO, 0x80, One)
    Field (DEBG, ByteAcc, NoLock, Preserve)
    {
        DBG1,   8
    }

    OperationRegion (PMRS, SystemIO, 0x0430, 0x13)
    Field (PMRS, ByteAcc, NoLock, Preserve)
    {
            ,   4,
        SLPE,   1,
                Offset (0x08),
        GPSE,   16, 
        GPSS,   16,
                Offset (0x12),
            ,   1, 
        SWGC,   1 
    }

    Method (_PTS, 1, NotSerialized)
    {
        Or (Arg0, 0xF0, Local0)
         Store (Local0, DBG1)
        Store (Zero, \_SB.PCI0.LPCB.AG3E)
        If (LEqual (Arg0, 0x05))
        {
            Store (Zero, SLPE)
            Sleep(0x10)
        }
    }
also your LPCB has to be like so

Code:
            Device (LPCB)
            {
                Name (_ADR, 0x001F0000)
                OperationRegion (LPC0, PCI_Config, 0xA4, 0x02)
                Field (LPC0, ByteAcc, NoLock, Preserve)
                {
                    AG3E,   1
                }
I suppose add device ID if you need it, I'm on ICH10 so don't.

Also attaching blackosx's duvel+rekursor version of RC4 here, replace your chameleon boot file with the one from here and add these to boot.plist to get unique UUID and restart fix:
Code:
    <key>DeviceID</key>
    <string>XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX</string>

    <key>RestartFix</key>
    <string>YES</string>
Attached Files
File Type: zip boot_RC4_Duvelv2.1_Rekursor.zip (215.6 KB, 71 views)

Last edited by Sweaty; 12-21-2009 at 01:28 PM.
Reply With Quote
  #9  
Old 12-21-2009, 02:24 PM
mm67 mm67 is offline
Jaguar
 
Join Date: Aug 2009
Posts: 40
Quote:
Originally Posted by Sweaty View Post
With this and new restart patch chameleon booter from Duvel (strong beer that) I have only fakesmc as an added kext, although I'm about to reinstall voodoohda so I can hopefully have two soundcards working.. anyway this is mm67's work I just found it a pain to find the detail on insane so posting it here.. Thanks to all who put together these fixes. Need to add the two operation region bits and change your method PTS

Code:
    OperationRegion (DEBG, SystemIO, 0x80, One)
    Field (DEBG, ByteAcc, NoLock, Preserve)
    {
        DBG1,   8
    }

    OperationRegion (PMRS, SystemIO, 0x0430, 0x13)
    Field (PMRS, ByteAcc, NoLock, Preserve)
    {
            ,   4,
        SLPE,   1,
                Offset (0x08),
        GPSE,   16, 
        GPSS,   16,
                Offset (0x12),
            ,   1, 
        SWGC,   1 
    }

    Method (_PTS, 1, NotSerialized)
    {
        Or (Arg0, 0xF0, Local0)
         Store (Local0, DBG1)
        Store (Zero, \_SB.PCI0.LPCB.AG3E)
        If (LEqual (Arg0, 0x05))
        {
            Store (Zero, SLPE)
            Sleep(0x10)
        }
    }
It's only this :
Code:
    OperationRegion (PMRS, SystemIO, 0x0430, 0x13)
    Field (PMRS, ByteAcc, NoLock, Preserve)
    {
            ,   4,
        SLPE,   1,
and this:
Code:
        If (LEqual (Arg0, 0x05))
        {
            Store (Zero, SLPE)
            Sleep(0x10)
        }
that make the shutdown work, rest of the code is Gigabyte specific. This address 0x0430 is also motherboard specific, it is PMBASE+30h. Address of PMBASE is defined in FACP, on most boards it can also be checked from processor definitions. For example I have this in my dsdt:

Processor (CPU0, 0x00, 0x00000410, 0x06)

Here 0x00000410 is referring to PMBASE+10h so I use 0x430 on my Gigabyte board. On my MSI board's dsdt I have this:
Processor (P001, 0x01, 0x00000810, 0x06) {}

So in MSI shutdown code I use this:
OperationRegion (PMRS, SystemIO, 0x0830, 0x13)

Last edited by mm67; 12-21-2009 at 02:42 PM.
Reply With Quote
  #10  
Old 12-21-2009, 03:43 PM
Sweaty Sweaty is offline
Cheetah
 
Join Date: Sep 2009
Posts: 14
Ok cheers mate, had to add the other bits on my board (asus p5ql/epu) to get it to compile, I'll try the simpler way later.. At least it did work the way I bodged it

EDIT: OK fixed code as you suggested I needed to use 0x830, also got rid of unnecessary bits, sometimes I needed to turn PSU off with 0x430 (before I could restart, shutdown was complete), that seems fixed now. Thanks a lot.

Last edited by Sweaty; 12-22-2009 at 02:02 PM.
Reply With Quote
Reply