Jump to content

Device property injection.


Kuebeker
 Share

2 posts in this topic

Recommended Posts

Hi. 

 

Yes me again! 

 

I need some help figuring out why the following device property injection is not working. 

I want to get the internal SATA ports ejectable

 

KEXT used is AppleAHCI.kext (patched to load generic driver)

Device (SATA)
                    /../
                    Device (PRT1)
                    /../
                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x0a)
                            {
                                "AHCI Port ALPM", 
                                Buffer (0x05)
                                {
                                    "False"
                                }, 
                                "AHCI Port ESATA", 
                                Buffer (0x06)
                                {
                                    "False"
                                }, 
                                "AHCI Port Hot Plug", 
                                Buffer (0x04)
                                {
                                    "True"
                                },  
                                "AHCI-Built-In", 
                                Buffer (0x04)
                                {
                                    "True"
                                }, 
                                "AHCI-Ejectable", 
                                Buffer (0x04)
                                {
                                    "True"
                                }, 
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }
Link to comment
Share on other sites

Hi. 

 

Yes me again! 

 

I need some help figuring out why the following device property injection is not working. 

I want to get the internal SATA ports ejectable

 

KEXT used is AppleAHCI.kext (patched to load generic driver)

Device (SATA)
                    /../
                    Device (PRT1)
                    /../
                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x0a)
                            {
                                "AHCI Port ALPM", 
                                Buffer (0x05)
                                {
                                    "False"
                                }, 
                                "AHCI Port ESATA", 
                                Buffer (0x06)
                                {
                                    "False"
                                }, 
                                "AHCI Port Hot Plug", 
                                Buffer (0x04)
                                {
                                    "True"
                                },  
                                "AHCI-Built-In", 
                                Buffer (0x04)
                                {
                                    "True"
                                }, 
                                "AHCI-Ejectable", 
                                Buffer (0x04)
                                {
                                    "True"
                                }, 
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }

 

Are you certain Buffer() { "True" } / Buffer() { "False" } makes sense?  OS X tends to not use strings for these sorts of settings...

Link to comment
Share on other sites

 Share

×
×
  • Create New...