Jump to content

53 posts in this topic

Recommended Posts

My Atheros 9285 (ID 0x2b) used to work only with a DSDT patch until 10.8.4, but stopped working in 10.9 DP, I had to edit the Info.plist of AirPortAtheros40 or use an injector kext.

 

I was able to fix it using only DSDT patch again by injecting the properties name, IOName and compatible (I'm not sure all 3 are necessary, will test later)

Method (_DSM, 4, NotSerialized)
{
    Store (Package (0x12)
        {
            "AAPL,slot-name", 
            Buffer (0x08)
            {
                "AirPort"
            }, 
            "device-id", 
            Unicode ("*"), 
            "device_type", 
            Buffer (0x08)
            {
                "AirPort"
            }, 
            "model", 
            Buffer (0x33)
            {
                "Atheros 9285 802.11 b/g/n Wireless Network Adapter"
            }, 
            "subsystem-id", 
            Buffer (0x04)
            {
                 0x8F, 0x00, 0x00, 0x00
            }, 
            "subsystem-vendor-id", 
            Buffer (0x04)
            {
                 0x6B, 0x10, 0x00, 0x00
            }, 
            "compatible", 
            Buffer (0x0B)
            {
                "pci168c,2a"
            }, 
            "IOName", 
            Buffer (0x0B)
            {
                "pci168c,2a"
            }, 
            "name", 
            Buffer (0x0B)
            {
                "pci168c,2a"
            }
        }, Local0)
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
    Return (Local0)
}

Thanks to nyolc8 for the tip in this topic

 

http://www.insanelymac.com/forum/topic/289791-fixed-by-dsdt-edit-10c-temps-500rpm-fans/?do=findComment&comment=1923734

 

Share this post


Link to post
Share on other sites
Advertisement

Hi, oldnapalm. Since the first time when I noticed the dsdt method for 9285, I had been curious about the following part.

"device-id",

Unicode ("*"),

 

If my memory serves me correctly, I manually put the value like "0x2a, 0x00, 0x8c, 0x16" (the id for 9280) inside device-id. But after I compile and save it, reopen dsdt and find that it changed to the "Unicode ("*"),"

This is what puzzles me most. Would you mind explaining a little to me about this? Thanks. :D

Share this post


Link to post
Share on other sites

Hi,

 

unicode char * corresponds to 2A.

oops, that's so shocking to me. :) Is this the only special situation? Like if there is special code for 1A etc?  Thanks :D

Share this post


Link to post
Share on other sites

So we can add any ID in DSDT in unicode format? What is the purpose of this?

Less characters in DSDT -> smaller DSDT file? Or is there any other reason?

Share this post


Link to post
Share on other sites

I don't know why device-id was injected in unicode in this case, it was in the original patch.

 

The only change I made was adding name, IOName and compatible like you did in LPC patch.

 

Edit: it's a compiler optimization, if you compile and decompile this, it turns into Unicode ("*")

            "device-id",

            Buffer (0x04)

            {
                 0x2A, 0x00, 0x00, 0x00
            }, 
 

 

Share this post


Link to post
Share on other sites

So we can add any ID in DSDT in unicode format? What is the purpose of this?

Less characters in DSDT -> smaller DSDT file? Or is there any other reason?

Same questions :D Really curious about this.

 

I don't know why device-id was injected in unicode in this case, it was in the original patch.

 

The only change I made was adding name, IOName and compatible like you did in LPC patch.

 

Edit: it's a compiler optimization, if you compile and decompile this, it turns into Unicode ("*")

            "device-id",

            Buffer (0x04)

            {

                 0x2A, 0x00, 0x00, 0x00

            }, 

 

 

Yep, this is the case I've said. I put the exact id not the Unicode("*") below "device-id" and compiled it. Then it just became Unicode("*")

BTW, oldnapalm would you mind upload your IOREG so that I can learn more about the new stuff in Mavs? I am a notebook user so not capable of running multi-disks testing a lot of OSs :(

Share this post


Link to post
Share on other sites

My Atheros 9285 (ID 0x2b) used to work only with a DSDT patch until 10.8.4, but stopped working in 10.9 DP, I had to edit the Info.plist of AirPortAtheros40 or use an injector kext.

 

I was able to fix it using only DSDT patch again by injecting the properties name, IOName and compatible (I'm not sure all 3 are necessary, will test later)

Method (_DSM, 4, NotSerialized)
{
    Store (Package (0x12)
        {
            "AAPL,slot-name", 
            Buffer (0x08)
            {
                "AirPort"
            }, 
            "device-id", 
            Unicode ("*"), 
            "device_type", 
            Buffer (0x08)
            {
                "AirPort"
            }, 
            "model", 
            Buffer (0x33)
            {
                "Atheros 9285 802.11 b/g/n Wireless Network Adapter"
            }, 
            "subsystem-id", 
            Buffer (0x04)
            {
                 0x8F, 0x00, 0x00, 0x00
            }, 
            "subsystem-vendor-id", 
            Buffer (0x04)
            {
                 0x6B, 0x10, 0x00, 0x00
            }, 
            "compatible", 
            Buffer (0x0B)
            {
                "pci168c,2a"
            }, 
            "IOName", 
            Buffer (0x0B)
            {
                "pci168c,2a"
            }, 
            "name", 
            Buffer (0x0B)
            {
                "pci168c,2a"
            }
        }, Local0)
    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
    Return (Local0)
}

Thanks to nyolc8 for the tip in this topic

 

http://www.insanelymac.com/forum/topic/289791-fixed-by-dsdt-edit-10c-temps-500rpm-fans/?do=findComment&comment=1923734

Thank you! Now  my wifi works again in mavericks!  :)

Share this post


Link to post
Share on other sites

By the way. I edidted this section for me so

                Device (ARPT)
                {
                    Name (_ADR, Zero)
                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x12)
                            {
                                "AAPL,slot-name", 
                                Buffer (0x08)
                                {
                                    "AirPort"
                                }, 

                                "device-id", 
                                Unicode ("*"), 
                                "device_type", 
                                Buffer (0x08)
                                {
                                    "AirPort"
                                }, 

                                "model", 
                                Buffer (0x33)
                                {
                                    "Atheros AR5B95 Wireless Network Adapter"
                                }, 

                                "subsystem-id", 
                                Buffer (0x04)
                                {
                                    0x16, 0xE0, 0x00, 0x00
                                }, 

                                "subsystem-vendor-id", 
                                Buffer (0x04)
                                {
                                    0x5B, 0x10, 0x00, 0x00
                                }, 

                                "compatible", 
                                Buffer (0x0B)
                                {
                                    "pci168c,2a"
                                }, 

                                "IOName", 
                                Buffer (0x0B)
                                {
                                    "pci168c,2a"
                                }, 

                                "name", 
                                Buffer (0x0B)
                                {
                                    "pci168c,2a"
                                }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }

                    Name (_PRW, Package (0x02)
                    {
                        0x09, 
                        0x04
                    })
                }

It means sometimes you should change some of the parameters as well. Such as subsystem-vendor-id and others.

dsdt.aml.zip

Share this post


Link to post
Share on other sites

Same questions :D Really curious about this.

Yep, this is the case I've said. I put the exact id not the Unicode("*") below "device-id" and compiled it. Then it just became Unicode("*")

BTW, oldnapalm would you mind upload your IOREG so that I can learn more about the new stuff in Mavs? I am a notebook user so not capable of running multi-disks testing a lot of OSs :(

Hey p.H. It is about unicode. When you open ioreg with IORegistryExplorer, sometimes you can only find unicode there like this "*". And you need to covert it into the hex form when editing dsdt. The information is provided in wikipedia "Unicode" entry. I explain this in one of my pcbeta threads about modifiying the AppleHDA.kext for 10.8GM.

Share this post


Link to post
Share on other sites

Hi Guys, I've tried both of these patches but I cannot get it working. I'm inserting where I have my current patch for ML which is In the right side (code window), below 'Device (RP02)' find the first 'Device (PXPX)' and 

place the cursor before 'Device (PXPX) then paste here. 

 

I tried the first post but I couldn't compile, I then tried Alex Auditore's patch, which did compile but still no WiFi in Mavericks. Can I attach my DSDT's (original patch for ML and new attempted patch for Mavericks) and come someone maybe compile it for me as I'm having no luck? :( 

 

Thanks

 

Original Edit: 

Device (ARPT)
{
    Name (_ADR, Zero)
    Method (_DSM, 4, NotSerialized)
    {
        Store (Package (0x0C)
            {
                "AAPL,slot-name",
                Buffer (0x08)
                {
                    "AirPort"
                },
                "device-id",
                Unicode ("*"),
                "device_type",
                Buffer (0x08)
                {
                    "AirPort"
                },
                "model",
                Buffer (0x34)
                {
                    "Atheros 9285 8802.11 b/g/n Wireless Network Adapter"
                },
                "subsystem-id",
                Buffer (0x04)
                {
                    0x8F, 0x00, 0x00, 0x00
                },
                "subsystem-vendor-id",
                Buffer (0x04)
                {
                    0x6B, 0x10, 0x00, 0x00
                }
            }, Local0)
        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
        Return (Local0)
    }
}

DSDT.zip

Share this post


Link to post
Share on other sites

 

Hi Guys, I've tried both of these patches but I cannot get it working. I'm inserting where I have my current patch for ML which is In the right side (code window), below 'Device (RP02)' find the first 'Device (PXPX)' and 

place the cursor before 'Device (PXPX) then paste here. 

 

I tried the first post but I couldn't compile, I then tried Alex Auditore's patch, which did compile but still no WiFi in Mavericks. Can I attach my DSDT's (original patch for ML and new attempted patch for Mavericks) and come someone maybe compile it for me as I'm having no luck? :( 

 

Thanks

 

Original Edit: 

Device (ARPT)
{
    Name (_ADR, Zero)
    Method (_DSM, 4, NotSerialized)
    {
        Store (Package (0x0C)
            {
                "AAPL,slot-name",
                Buffer (0x08)
                {
                    "AirPort"
                },
                "device-id",
                Unicode ("*"),
                "device_type",
                Buffer (0x08)
                {
                    "AirPort"
                },
                "model",
                Buffer (0x34)
                {
                    "Atheros 9285 8802.11 b/g/n Wireless Network Adapter"
                },
                "subsystem-id",
                Buffer (0x04)
                {
                    0x8F, 0x00, 0x00, 0x00
                },
                "subsystem-vendor-id",
                Buffer (0x04)
                {
                    0x6B, 0x10, 0x00, 0x00
                }
            }, Local0)
        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
        Return (Local0)
    }
}

Try this.

http://d.pr/f/Z8fN

Share this post


Link to post
Share on other sites

Try this.

http://d.pr/f/Z8fN

Hey thanks, but I cannot boot with this DSDT. I get Kernel Panic on ML and on Mavericks. I noticed that my old DSDT was 38KB, and your one you just posted is 343KB, quite a difference. I also cannot open your one with DSDT Editor or MaciASL. 

 

MaciASL shows this when trying to open it:

post-1037813-0-26274400-1372931009_thumb.png

Share this post


Link to post
Share on other sites

Hey thanks, but I cannot boot with this DSDT. I get Kernel Panic on ML and on Mavericks. I noticed that my old DSDT was 38KB, and your one you just posted is 343KB, quite a difference. I also cannot open your one with DSDT Editor or MaciASL. 

 

MaciASL shows this when trying to open it:

attachicon.gifScreen Shot 2013-07-04 at 10.42.25.png

I'm sorry. I will re-check it.

Once again, I'm terribly sorry for what I've done. :(   This should just work!

http://d.pr/f/UqzM

Share this post


Link to post
Share on other sites

I'm sorry. I will re-check it.

Once again, I'm terribly sorry for what I've done. :(   This should just work!

http://d.pr/f/UqzM

Thanks, I can now boot with this DSDT and it works in Mountain Lion, but with Mavericks it still doesn't recognise wifi. Do I need to install any kexts?

Share this post


Link to post
Share on other sites

 

Hi Guys, I've tried both of these patches but I cannot get it working. I'm inserting where I have my current patch for ML which is In the right side (code window), below 'Device (RP02)' find the first 'Device (PXPX)' and 

place the cursor before 'Device (PXPX) then paste here. 

 

I tried the first post but I couldn't compile, I then tried Alex Auditore's patch, which did compile but still no WiFi in Mavericks. Can I attach my DSDT's (original patch for ML and new attempted patch for Mavericks) and come someone maybe compile it for me as I'm having no luck? :( 

 

Thanks

 

Original Edit: 

Device (ARPT)
{
    Name (_ADR, Zero)
    Method (_DSM, 4, NotSerialized)
    {
        Store (Package (0x0C)
            {
                "AAPL,slot-name",
                Buffer (0x08)
                {
                    "AirPort"
                },
                "device-id",
                Unicode ("*"),
                "device_type",
                Buffer (0x08)
                {
                    "AirPort"
                },
                "model",
                Buffer (0x34)
                {
                    "Atheros 9285 8802.11 b/g/n Wireless Network Adapter"
                },
                "subsystem-id",
                Buffer (0x04)
                {
                    0x8F, 0x00, 0x00, 0x00
                },
                "subsystem-vendor-id",
                Buffer (0x04)
                {
                    0x6B, 0x10, 0x00, 0x00
                }
            }, Local0)
        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
        Return (Local0)
    }
}

hello

 

i don't see nothing wrong with u edit unless

 

u dev id is 2a ?

 

or

 

is the right place to insert the patch, have u check with ioreg ?

 

good hack

Share this post


Link to post
Share on other sites

 

Hi Guys, I've tried both of these patches but I cannot get it working. I'm inserting where I have my current patch for ML which is In the right side (code window), below 'Device (RP02)' find the first 'Device (PXPX)' and 

place the cursor before 'Device (PXPX) then paste here. 

 

I tried the first post but I couldn't compile, I then tried Alex Auditore's patch, which did compile but still no WiFi in Mavericks. Can I attach my DSDT's (original patch for ML and new attempted patch for Mavericks) and come someone maybe compile it for me as I'm having no luck? :( 

 

Thanks

 

Original Edit: 

Device (ARPT)
{
    Name (_ADR, Zero)
    Method (_DSM, 4, NotSerialized)
    {
        Store (Package (0x0C)
            {
                "AAPL,slot-name",
                Buffer (0x08)
                {
                    "AirPort"
                },
                "device-id",
                Unicode ("*"),
                "device_type",
                Buffer (0x08)
                {
                    "AirPort"
                },
                "model",
                Buffer (0x34)
                {
                    "Atheros 9285 8802.11 b/g/n Wireless Network Adapter"
                },
                "subsystem-id",
                Buffer (0x04)
                {
                    0x8F, 0x00, 0x00, 0x00
                },
                "subsystem-vendor-id",
                Buffer (0x04)
                {
                    0x6B, 0x10, 0x00, 0x00
                }
            }, Local0)
        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
        Return (Local0)
    }
}

hello

 

i don't see nothing wrong with u edit unless

 

u dev id is 2a ?

 

or

 

is the right place to insert the patch, have u check with ioreg ?

 

good hack

 

I think its in the right place. I am no good with DSDT edits, it was said by someone else. 

 

Here is my ioreg, I think its 2a? 

 

EDIT: Removed IOReg

Share this post


Link to post
Share on other sites

Thanks, I can now boot with this DSDT and it works in Mountain Lion, but with Mavericks it still doesn't recognise wifi. Do I need to install any kexts?

Upload your IOReg with Mountain Lion.

I think its in the right place. I am no good with DSDT edits, it was said by someone else. 

 

Here is my ioreg, I think its 2a? 

 

attachicon.gifThomas' MacBook Pro.zip

My god. The insertion point is just right. (RP02)

I am also curious about this problem now as the edits should just be fine. :(

Share this post


Link to post
Share on other sites

I spoke to someone with a Acer 5750G too, and they said they installed Mountain Lion kexts into Mavericks. But I want to have a vanilla system as much as I can :/ 

 

EDIT: Sorry that ioreg was from Mountain Lion. Shall I upload a Mavericks one?

EDIT2: Mavericks ioreg attached

EDIT3: Removed IOReg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By grisno
      Hi people,
       
      This is a preliminary installer to activate the Combo Mini PCIe Atheros AR9004WB-1NG in MacOS.
       
      I want to thank the whole community for their efforts and content provided, because without these it would not be possible to create this installer.
       
      I would appreciate comments and suggestions!!
       
      Status:
      AIRPORT : OK Atheros AR9004WB-1NG (AR9485) (168c:0032) Mini PCIe * (10.9.0+)BLUETOOTH : OK Atheros AR3012 (0cf3:3121) USB 2.0 ** (10.9.0+)AIRDROP : Not TestedHANDOFF : Not TestedCONTINUITY : Not TestedWOL : Not TestedIMESSAGE : OKFACETIME : OKICLOUD : OKAPPSTORE : OK
      Known Issues:
       
      - Partial support with a maximum speed of 11Mbits (10.9.0+) *
      - Don't support Bluetooth Power Off/On by Software (10.9.0+) **
       
      Sources:
       
      Insanelymac
    • By grisno
      Hi people,
       
      This is a preliminary installer to activate the Combo Mini PCIe Atheros QCWB335 in MacOS.
       
      I want to thank the whole community for their efforts and content provided, because without these it would not be possible to create this installer.
       
      I would appreciate comments and suggestions!!
       
      Status:
      AIRPORT : OK Atheros QCWB335 (AR9565) (168c:0036) Mini PCIe *BLUETOOTH : OK Atheros AR3012 (0cf3:3121) USB 2.0 **AIRDROP : Not TestedHANDOFF : Not TestedCONTINUITY : Not TestedWOL : Not TestedIMESSAGE : OKFACETIME : OKICLOUD : OKAPPSTORE : OK
      Known Issues:
       
      - Partial support with a maximum speed of 10Mbits (10.11.0+) *
      - Don't support Bluetooth Power Off/On by Software (10.10.0+) **
       
      Sources:
       
      Insanelymac
    • By Mieze
      Key Features of the Driver
      Supports Qualcomm Atheros AR816x, AR817x, Killer E220x, Killer E2400 and Killer E2500.
      Support for multisegment packets relieving the network stack of unnecessary copy operations when assembling packets for transmission.
      No-copy receive and transmit. Only small packets are copied on reception because creating a copy is more efficient than allocating a new buffer.
      TCP, UDP and IPv4 checksum offload (receive and transmit).
      Support for TCP/IPv6 and UDP/IPv6 checksum offload.
      Makes use of the chip's TCP Segmentation Offload (TSO) feature with IPv4 and IPv6 in order to reduce CPU load while sending large amounts of data.
      Fully optimized for Mountain Lion, Mavericks and Yosemite (64bit architecture) but should work with Lion (only 64bit) too, provided you build from source with the 10.7 SDK.
      Wake on LAN support.
      VLAN support is implemented but untested as I have no need for it.
      The driver is published under GPLv2.

    • By Nonta72
      Hi,
      I have an Atheros AR5B195 wifi card that actually works pretty good on Yosemite after a proper DSDT patch.
      The problem now is that the card can't seem to discover any network when the computer wakes from sleep.
      I have to restart the computer before the card can discover networks again.
      I used a DSDT patch to make it work. I have also tried some injectors found here on this forum and OSXLatitude but they did not fix this issue.
      Can someone please help?
      Thanks!
    • By fluxus123
      Hello bright community!
       
      I have just got myself a WiFi card with Atheros AR3980 chipset (devID 168c,30 - Sub Ven 106b Sub Dev 009a), which I thought was supposed to work out of the box(?), as it's the same that Apple uses natively (checked the info.plist in AirportAtheros40.kext)(?)
       
      I plugged in the card, restarted, then tried to set it up in System Pref under Network by adding the device with the "+" but WIFI doesn't show up, only my 2x ethernet ports and bluetooth.
       
      In system profiler under PCI I just see this:
       
      pci168c,30:
       
        Type: Other Network Controller
        Driver Installed: No
        MSI: No
        Bus: PCI
        Slot: PCI Slot 7
        Vendor ID: 0x168c
        Device ID: 0x0030
        Subsystem Vendor ID: 0x106b
        Subsystem ID: 0x009a
        Revision ID: 0x0001
        Link Width: x1
        Link Speed: 2.5 GT/s
       
      When using Kextstat in Terminal it tells me that the corresponding kexts are loaded:
       
        113    1 0xffffff7f82998000 0xe6000    0xe6000    com.apple.iokit.IO80211Family (1200.12.2) A08E69B1-9559-358F-A363-9083B344DA10 <112 50 22 8 7 6 5 4 3 1>
          114    0 0xffffff7f82a7e000 0x14c000   0x14c000   com.apple.driver.AirPort.Atheros40 (700.74.5) 448A2423-55B3-3033-BE5F-CB19CB92D35E <113 50 12 7 5 4 3 1>   In IOReg it shows to be connected under an odd tree/device/address - not the usual I have seen (RP0x etc) I have attached the IOReg file below.
       
      Do I need to edit my dsdt to make this work? I have attached my current DSDT as well. 
       
      Oh, turning on dsdt mask for Lan and Wifi in clover also didn't work. Hitting a brick wall here. 
       
      Thanks a lot for all your helpful comments and suggestions already!
       
       

      Atheros Issue IORegistry.zip
      DSDT.aml.zip

×