Jump to content

ACPI Backlight Driver


hotKoffy
 Share

224 posts in this topic

Recommended Posts

New version 1.2:


  • Added Boolean property in info.plist "BQC use index" to be use if your _BQC returns an index to _BCL entries (not tested)
  • Added an optional DSDT optimization : you can add a method SAVE with same parameters than _BCM and on the same device in order to split the DSDT code that set the backlight value in the PWM control register (usually located in EC) and the DSDT code that save the value in CMOS (usually in the RTC second bank of RAM : OperationRegion (xxxx, SystemIO, 0x72, 0x02) but triggered by a SMI interrupt to ensure CMOS checksum computation)

---------------------------------------------------------------------------------------------------------------

New version 1.1:

  • Added : look at power supply status at start up
  • Code correction : more checks on pointers and function return

---------------------------------------------------------------------------------------------------------------

This is a driver for laptops which backlight are controlled by ACPI Methods: if you have _DOS _BCL _BCM _BQC in you DSDT. A good reading for DSDT editing if need is Advanced Configuration and Power Interface (ACPI) Specification 4.0a APPENDIX B: Video Extensions.

This driver provides native backlight management for laptops with backlight managed by ACPI : slider in the display pref pane and sun bezel when you press backlight up/down hotkey (with an other driver than can understand your keyboard Fn keys...), power management by the OS : dim before sleep, reduce level when AC is unpluged.
post-740414-1316343863_thumb.pngpost-740414-1316343891_thumb.png
It replaces an other driver I've written.ACPIBacklightDisplay.kext This old driver shall be removed.
Tested on SL 10.6.8 and Lion 10.7.0 to 10.7.2. May works on older version, but not tested.
Reported to work on 10.6.7.

Pre requested: having AppleBacklightDisplay loaded.
For this, you must have this properties injected among others by DSDT _DSM+DTGP (or graphics enabler ? or EFI strings...):

"AAPL,HasPanel",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"AAPL,Haslid",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"AAPL,backlight-control",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"@0,backlight-control",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"@0,AAPL,boot-display",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"@0,built-in",
Buffer ()
{
One
},

It works for NVIDIA and Intel graphics. Seems problematic for some ATI users for the moment. (ATI is always more complicated!!)

There also must be this device in DSDT, in the \_SB scope:

Scope (\_SB)
{
...
Device (PNLF)
{
Name (_HID, EisaId ("APP0002"))
Name (_CID, "backlight")
Name (_UID, 0x0A)
Name (_STA, 0x0B)
}
...
}

If you don't have the _DOS Method, add a fake one in the GPU device (IGPU, GFX0... or what ever the name, it is the parent of the device where you find _BCL, _BQC, _BCM).

Method (_DOS, 1, NotSerialized)
{
//nothing to do
}

If you have several devices with _BCL _BCM _BQC the driver will take the first it finds, so you will have to find which one is the good one to do another DSDT trick. For this locate in ioreg on which device the graphic driver is loaded. Then add this into PNLF:

Method (_BCL, 0, NotSerialized)
{
return (\_SB.PCI0.IXVE.IGPU.LCDD._BCL())
}

Method (_BCM, 1, NotSerialized)
{
\_SB.PCI0.IXVE.IGPU.LCDD._BCM(Arg0)
}

Method (_BQC, 0, NotSerialized)
{
return (\_SB.PCI0.IXVE.IGPU.LCDD._BQC())
}

Method (_DOS, 1, NotSerialized)
{
\_SB.PCI0.IXVE.IGPU._DOS(Arg0)
}

Replacing _SB.PCI0.IXVE.IGPU and _SB.PCI0.IXVE.IGPU.LCDD of my example with your good path.

Then install this kext in S/L/E (with Kext Utility or similar !)
ACPIBacklight.kext.zip

If all goes right, you shall see this on the kernel log:
ACPIBacklightPanel: Found Backlight Device: LCDD
ACPIBacklightPanel: ACPI Method _DOS found. Device path: _SB.PCI0.IXVE.IGPU
ACPIBacklightPanel: ACPI Methods _BCL _BCM _BQC found. Device path: _SB.PCI0.IXVE.IGPU.LCDD
ACPIBacklightPanel: Version 1.0

Source: ACPIBacklight.kext_src.zip

  • Like 7
Link to comment
Share on other sites

Hello. I tried your kext, but don't understand some things. Your kext is not going loaded.

 

Should I remove the AppleBacklight.kext / AppleBacklightExpert.kext from system?

Your kext is not going to be loaded and I see nothing in kernel.log

There combo-picture in attach.

 

Forgot to say, I'm in 10.7.2 11C57.

I have _BCL _BCM _BQC at the display, but no _DOS in IGPU.

post-153735-1316346700_thumb.png

Link to comment
Share on other sites

Thanks, you are right. Now driver loaded and gives the records in kernel.log. I found the backlight progressbar in the settings, but when I use Fn + down/up backlight, it doesn't show any picture..

 

 

(with an other driver than can understand your keyboard Fn keys...)

 

will try to do it, I found your WMI thread.

Link to comment
Share on other sites

Ok, let me know how it loads, but I think you will have to develop a new personality (kext PlugIns) for dell laptop.

Can you post this kind of table:

post-740414-1316350316_thumb.png

 

You can take EeePCWMIController as an implementation template and take a look at the linux file dell-wmi.c I've put in reference to find the GUID, methods ID and etc.

 

As far as I can see in a XPS 1340 DSDT I've downloaded, I shall be possible.

Good luck

I'm sorry, I'm not sure when I can find that table

I sent PM actually before found this post.

ok, it loads normal, but I have no clue how I can fix it for my keyboard (that I wrote in PM).

 

Now backlight works using Fn+F5 down and Fn+F12 up. But in keyboard it is Fn+arrow up/down. Backlight changes when I press Fn+arrows but it doesn't have a picture in the screen.

 

http://www.amazon.com/Studio-Keyboard-Back...C/dp/B003FS14Q8

 

I have also Fn+F1 as sleep button that doesn't work at all now and Fn+F3 button that should change in windows battery mode (save or performance, it doesn't matter to launch Fn+F3).

I found also that there display switching button in the dell-wmi.c, but I have no clue how I can launch it for myself (my button it after F12 in keyboard).

Thank you for help.

 

Kernel.log now:

Sep 18 17:21:10 localhost kernel[0]: IOWMIController: WMI driver version 1.0 Device name: AMW0

Sep 18 17:21:10 localhost kernel[0]: NVWMIController: WMI driver version 1.0 Device name: WMI0

Sep 18 17:21:10 localhost kernel[0]: IOWMIController: WMI driver version 1.0 Device name: WMI1

Link to comment
Share on other sites

hi again

your driver is perfect for me except one problem i set my brightness to highest level but when reboot th brightness automatically goes to lowest level

this screen when my system is booted thanks;

and dsdt

and this log:

ACPIBacklightPanel: Found Backlight Device: DD03

Sep 18 18:27:47 localhost kernel[0]: ACPIBacklightPanel: ACPI Method _DOS found. Device path: _SB.PCI0.IGPU

Sep 18 18:27:47 localhost kernel[0]: ACPIBacklightPanel: ACPI Methods _BCL _BCM _BQC found. Device path: _SB.PCI0.IGPU.DD03

Sep 18 18:27:47 localhost kernel[0]: ACPIBacklightPanel: Version 1.0

thanks

post-598526-1316354488_thumb.png

DSDT.aml.zip

Link to comment
Share on other sites

try this:

replace :

 

Method (_BQC, 0, NotSerialized)

{

If (ECOK)

{

Return (GBQC ())

}

Else

{

Return (GBQC ())

}

}

 

by:

 

Method (_BQC, 0, NotSerialized)

{

If (ECOK)

{

Return (GBQC ())

}

Else

{

Return (0x64)

}

}

thanks man for your replay and your help

i change it but some result as before in reboot brightness goes to min

Link to comment
Share on other sites

hi

i am fixe it with adding this code(from taptun)

Device (PNLF)
	{
		Name (_HID, EisaId ("APP0002"))
		Name (_CID, "backlight")
		Name (_UID, 0x0A)
		Name (_STA, 0x0B)
		Method (SBCM, 1, NotSerialized)
		{
			Store (Arg0, ^^PCI0.LPCB.EC.BRTL)
			TRAP (TRTI, 0x1C)
		}
		Method (_BCL, 0, NotSerialized)
		{
			Return (BCL1)
		}
		Method (_BCM, 1, NotSerialized)
		{
			SBCM (Arg0)
		}
		Method (_BQC, 0, NotSerialized)
		{
			Return (^^PCI0.LPCB.EC.BRTL)
		}
	}

Link to comment
Share on other sites

Doesn't work for me even after i have the DSDT Patches.

 

I only get

21/9/11 10:04:52.000 PM kernel: ACPIBacklightPanel: ACPI Methods _DOS _BCL _BCM _BQC found. Device path: _SB.PNLF
21/9/11 10:04:52.000 PM kernel: ACPIBacklightPanel: Version 1.0

 

The drivers is loaded beacause it has find ACPI backlight methods. Do you have tried to move the slider in pref pane ?

Without your DSDT I can't help more.

 

hi

i am fixe it with adding this code(from taptun)

Device (PNLF)
	 {
		 Name (_HID, EisaId ("APP0002"))
		 Name (_CID, "backlight")
		 Name (_UID, 0x0A)
		 Name (_STA, 0x0B)
		 Method (SBCM, 1, NotSerialized)
		 {
			 Store (Arg0, ^^PCI0.LPCB.EC.BRTL)
			 TRAP (TRTI, 0x1C)
		 }
		 Method (_BCL, 0, NotSerialized)
		 {
			 Return (BCL1)
		 }
		 Method (_BCM, 1, NotSerialized)
		 {
			 SBCM (Arg0)
		 }
		 Method (_BQC, 0, NotSerialized)
		 {
			 Return (^^PCI0.LPCB.EC.BRTL)
		 }
	 }

 

You should add this also in PNLF (copied from IGPU):

Method (_DOS, 1, NotSerialized)

{

Store (And (Arg0, 0x07), DSEN)

}

Link to comment
Share on other sites

No slider in the preference pane unless i missed something?

 

DSDT.dsl attached.

 

dsdtmod.zip

 

I think AppleBacklightDisplay is not loading.

Verify with IORegistryExplorer or open Terminal and type:

ioreg -w0 -rtbSk AppleDisplayType

 

Verify on which display number your internal display is on.

if not display0 but display1, change @0, by @1, in properties injection

Link to comment
Share on other sites

My display is definitely 0. AppleBacklightDisplay isn't loading as you said.

 

bash-3.2# ioreg -w0 -rtbSk AppleDisplayType
+-o Root  <class IORegistryEntry>
 +-o MacBookPro6,2  <class IOPlatformExpertDevice>
   +-o AppleACPIPlatformExpert  <class AppleACPIPlatformExpert>
     +-o PCI0@0  <class IOACPIPlatformDevice>
       +-o AppleACPIPCI  <class AppleACPIPCI>
         +-o P0P2@1  <class IOPCIDevice>
           +-o IOPCI2PCIBridge  <class IOPCI2PCIBridge>
             +-o PEGP@0  <class IOPCIDevice>
               +-o ATY,Hoolock@0  <class AtiFbStub>
                 +-o ATY_Hoolock  <class ATIFramebuffer>
                   +-o display0  <class IODisplayConnect>
                     +-o AppleDisplay  <class AppleDisplay>
                         {
                           "IOClass" = "AppleDisplay"
                           "CFBundleIdentifier" = "com.apple.iokit.IOGraphicsFamily"
                           "IOProviderClass" = "IODisplayConnect"
                           "DisplayProductID" = 1815
                           "IOPowerManagement" = {"MaxPowerState"=3,"CurrentPowerState"=3}
                           "IODisplayPrefsKey" = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/P0P2@1/IOPCI2PCIBridge/PEGP@0/ATY,Hoolock@0/ATY_Hoolock/display0/AppleDisplay-756e6b6e-717"
                           "IODisplayParameters" = {"pscn"={"min"=5101,"max"=10000,"value"=10000},"thrm"={"min"=0,"max"=120,"value"=75},"rgsc"={"min"=0,"max"=65536,"value"=65536},"ggsc"={"min"=0,"max"=65536,"value"=65536},"bgsc"={"min"=0,"max"=65536,"value"=65536},"dith"={"min"=0,"max"=1,"value"=1}}
                           "IOProbeScore" = 2000
                           "IOMatchCategory" = "IODefaultMatchCategory"
                           "AppleDisplayType" = 10
                           "AppleSense" = 1815
                           "IODisplayConnectFlags" = <84400000>
                           "DisplayVendorID" = 1970170734
                         }

 

 

Kextstat

 

bash-3.2# kextstat
Index Refs Address            Size       Wired      Name (Version) <Linked Against>
   1   53 0xffffff806adb4000 0x683c     0x683c     com.apple.kpi.bsd (11.1.0)
   2    6 0xffffff800b665000 0x3d0      0x3d0      com.apple.kpi.dsep (11.1.0)
   3   74 0xffffff806adbb000 0x1b9d8    0x1b9d8    com.apple.kpi.iokit (11.1.0)
   4   80 0xffffff806add7000 0x9b54     0x9b54     com.apple.kpi.libkern (11.1.0)
   5   69 0xffffff800b449000 0x88c      0x88c      com.apple.kpi.mach (11.1.0)
   6   27 0xffffff806ade1000 0x4938     0x4938     com.apple.kpi.private (11.1.0)
   7   48 0xffffff806ada8000 0x22a0     0x22a0     com.apple.kpi.unsupported (11.1.0)
   8   16 0xffffff7f8072e000 0x7000     0x7000     com.apple.iokit.IOACPIFamily (1.4) <7 6 4 3>
   9   19 0xffffff7f80735000 0x1d000    0x1d000    com.apple.iokit.IOPCIFamily (2.6.5) <7 6 5 4 3>
  10    2 0xffffff7f80752000 0x58000    0x58000    com.apple.driver.AppleACPIPlatform (1.4) <9 8 7 6 5 4 3 1>
  11    0 0xffffff7f807aa000 0x2a000    0x2a000    com.apple.driver.AppleIntelCPUPowerManagement (166.0.0) <7 6 5 4 3 1>
  12    1 0xffffff7f807d5000 0xc000     0xc000     com.apple.driver.AppleKeyStore (28.18) <7 6 5 4 3 1>
  13    2 0xffffff7f807e1000 0xa000     0xa000     org.netkas.FakeSMC (3.1.0) <8 7 5 4 3>
  14    0 0xffffff7f807eb000 0x5000     0x5000     org.slice.RadeonMonitor (1.0.0d1) <13 9 4 3>
  15    5 0xffffff7f807f3000 0x25000    0x25000    com.apple.iokit.IOStorageFamily (1.7) <7 6 5 4 3 1>
  16    0 0xffffff7f80818000 0x19000    0x19000    com.apple.driver.DiskImages (326) <15 7 6 5 4 3 1>
  17    0 0xffffff7f80831000 0x8000     0x8000     com.apple.nke.applicationfirewall (3.0.30) <7 6 5 4 3 1>
  18    2 0xffffff7f8083b000 0x4000     0x4000     com.apple.kext.AppleMatch (1.0.0d1) <4 1>
  19    1 0xffffff7f8083f000 0x11000    0x11000    com.apple.security.sandbox (165) <18 7 6 5 4 3 2 1>
  20    0 0xffffff7f80850000 0x5000     0x5000     com.apple.security.quarantine (1) <19 18 7 6 5 4 2 1>
  21    0 0xffffff7f80856000 0x3000     0x3000     com.apple.security.TMSafetyNet (7) <7 6 5 4 2 1>
  22    0 0xffffff7f80859000 0x3000     0x3000     com.apple.driver.AppleIntelCPUPowerManagementClient (166.0.0) <7 6 5 4 3 1>
  23    0 0xffffff7f8085d000 0x3000     0x3000     com.apple.driver.AppleAPIC (1.5) <4 3>
  24    0 0xffffff7f80861000 0x4000     0x4000     com.apple.driver.AppleSMBIOS (1.7) <7 4 3>
  25    4 0xffffff7f80866000 0x6b000    0x6b000    com.apple.iokit.IOHIDFamily (1.7.0) <12 7 6 5 4 3 2 1>
  26    0 0xffffff7f808d1000 0x4000     0x4000     com.apple.driver.AppleACPIButtons (1.4) <25 10 8 7 6 5 4 3 1>
  27    2 0xffffff7f808d7000 0x4000     0x4000     com.apple.iokit.IOSMBusFamily (1.1) <5 4 3>
  28    0 0xffffff7f808db000 0x7000     0x7000     com.apple.driver.AppleACPIEC (1.4) <27 10 8 5 4 3>
  29    0 0xffffff7f808e4000 0x3000     0x3000     com.apple.driver.AppleHPET (1.6) <8 7 5 4 3>
  30    0 0xffffff7f808e8000 0x7000     0x7000     com.apple.driver.AppleRTC (1.4) <8 5 4 3 1>
  31    0 0xffffff7f808f1000 0x3000     0x3000     com.yourcompany.driver.AppleACPIPS2Nub (1.0.0d1) <8 7 5 4 3 1>
  32    1 0xffffff7f808f6000 0x4000     0x4000     com.apple.driver.AppleEFIRuntime (1.5.0) <7 6 5 4 3>
  33    8 0xffffff7f808fa000 0x4e000    0x4e000    com.apple.iokit.IOUSBFamily (4.4.0) <9 7 5 4 3 1>
  34    0 0xffffff7f80948000 0x17000    0x17000    com.apple.driver.AppleUSBEHCI (4.4.0) <33 9 7 5 4 3 1>
  35    2 0xffffff7f80967000 0xa000     0xa000     com.apple.iokit.IOAHCIFamily (2.0.6) <5 4 3 1>
  36    0 0xffffff7f80971000 0x16000    0x16000    com.apple.driver.AppleAHCIPort (2.1.8) <35 9 5 4 3 1>
  37    0 0xffffff7f8098d000 0x8000     0x8000     com.apple.driver.ApplePS2Controller (1.1.5) <7 5 4 3 1>
  38    0 0xffffff7f80995000 0x7000     0x7000     com.apple.driver.AppleEFINVRAM (1.5.0) <32 7 5 4 3>
  39    2 0xffffff7f8099e000 0x29000    0x29000    com.apple.iokit.IONetworkingFamily (2.0) <7 6 5 4 3 1>
  40    0 0xffffff7f809c7000 0x6000     0x6000     com.insanelymac.AtherosL1cEthernet (1.0.2b2) <39 9 5 4 3 1>
  41    0 0xffffff7f809cf000 0x3000     0x3000     com.apple.iokit.IOUSBUserClient (4.4.0) <33 7 5 4 3 1>
  42    0 0xffffff7f809d2000 0x4000     0x4000     com.Apple.driver.PS2Keyboard (1.1.0) <25 5 4 3>
  43    0 0xffffff7f809d6000 0x5000     0x5000     com.apple.AppleFSCompression.AppleFSCompressionTypeDataless (1.0.0d1) <7 6 4 3 2 1>
  44    0 0xffffff7f809dd000 0x11000    0x11000    com.apple.driver.AppleUSBHub (4.4.0) <33 5 4 3 1>
  45    0 0xffffff7f809f2000 0x5000     0x5000     com.apple.AppleFSCompression.AppleFSCompressionTypeZlib (1.0.0d1) <6 4 3 2 1>
  46    0 0xffffff7f809f9000 0x15000    0x15000    com.apple.iokit.IOAHCIBlockStorage (2.0.0) <35 15 5 4 3 1>
  47    0 0xffffff7f80a16000 0x9000     0x9000     com.apple.BootCache (32) <7 6 5 4 3 1>
  48    0 0xffffff7f80a20000 0x4000     0x4000     com.apple.driver.XsanFilter (403) <15 5 4 3 1>
  49    1 0xffffff7f80a24000 0x6000     0x6000     com.apple.driver.AppleUSBComposite (3.9.0) <33 4 3 1>
  50    0 0xffffff7f80a2a000 0x6000     0x6000     com.apple.driver.AppleUSBMergeNub (4.4.0) <49 33 4 3 1>
  52    2 0xffffff7f80a33000 0x2a000    0x2a000    com.apple.iokit.IOSCSIArchitectureModelFamily (3.0.0) <5 4 3 1>
  53    0 0xffffff7f80a5d000 0x11000    0x11000    com.apple.iokit.IOUSBMassStorageClass (3.0.0) <52 33 15 5 4 3 1>
  54    1 0xffffff7f80a6e000 0x73000    0x73000    com.apple.iokit.IOBluetoothFamily (2.5f17) <7 5 4 3 1>
  55    0 0xffffff7f80ae1000 0xe000     0xe000     com.apple.driver.AppleUSBBluetoothHCIController (2.5f17) <54 33 7 5 4 3>
  56    0 0xffffff7f80aef000 0x15000    0x15000    com.apple.iokit.IOSCSIBlockCommandsDevice (3.0.0) <52 15 5 4 3 1>
  58    1 0xffffff7f80b0d000 0x5000     0x5000     com.apple.kext.triggers (1.0) <7 6 5 4 3 1>
  59    0 0xffffff7f80b12000 0x9000     0x9000     com.apple.filesystems.autofs (3.0) <58 7 6 5 4 3 1>
  60    0 0xffffff7f80b1d000 0xd000     0xd000     com.Apple.driver.PS2Trackpad (1.1.0) <25 5 4 3>
  61    9 0xffffff7f80b2a000 0x38000    0x38000    com.apple.iokit.IOGraphicsFamily (2.3) <9 7 5 4 3>
  62    0 0xffffff7f80b62000 0x3000     0x3000     com.darwin.driver.ACPIBacklight (1) <61 8 4 3>
  63    0 0xffffff7f80b67000 0x3000     0x3000     com.apple.driver.AppleLPC (1.5.1) <9 5 4 3>
  64    0 0xffffff7f80b6b000 0x3000     0x3000     com.apple.driver.AppleSMBusPCI (1.0.10d0) <9 5 4 3>
  65    1 0xffffff7f80b6e000 0x13000    0x13000    com.apple.driver.IOPlatformPluginFamily (4.7.0b2) <8 7 6 5 4 3>
  66    2 0xffffff7f80b81000 0xc000     0xc000     com.apple.driver.AppleSMC (3.1.1d2) <8 7 5 4 3>
  67    0 0xffffff7f80b8d000 0x11000    0x11000    com.apple.driver.ACPI_SMC_PlatformPlugin (4.7.0b2) <66 65 9 8 7 6 5 4 3>
  68    1 0xffffff7f80ba3000 0x6000     0x6000     com.apple.kext.OSvKernDSPLib (1.3) <5 4>
  69    1 0xffffff7f80ba9000 0x2a000    0x2a000    com.apple.iokit.IOAudioFamily (1.8.3fc11) <68 5 4 3 1>
  70    0 0xffffff7f80bd3000 0x4000     0x4000     com.apple.driver.AudioIPCDriver (1.2.0) <69 5 4 3 1>
  71    2 0xffffff7f80bd9000 0x186000   0x186000   com.apple.kext.ATISupport (7.0.4) <61 9 8 7 5 4 3 1>
  72    0 0xffffff7f80d5f000 0x3f000    0x3f000    com.apple.kext.ATI5000Controller (7.0.4) <71 61 9 8 5 4 3 1>
  73    0 0xffffff7f80d9e000 0x8000     0x8000     com.apple.iokit.IOUSBHIDDriver (4.4.0) <33 25 5 4 3 1>
  75    2 0xffffff7f80daa000 0x12000    0x12000    com.apple.iokit.IONDRVSupport (2.3) <61 9 7 5 4 3>
  78    0 0xffffff7f80dc5000 0xe000     0xe000     com.apple.driver.AppleSMBusController (1.0.10d0) <27 9 8 5 4 3>
  79    0 0xffffff7f80dd3000 0x5000     0x5000     com.apple.Dont_Steal_Mac_OS_X (7.0.0) <66 7 4 3 1>
  80    0 0xffffff7f80dd9000 0x296000   0x296000   com.apple.ATIRadeonX3000 (7.0.4) <75 61 9 7 6 5 4 3 1>
  83    0 0xffffff7f8113c000 0xb000     0xb000     com.apple.driver.AGPM (100.12.40) <75 61 9 5 4 3>
  85    0 0xffffff7f81156000 0x3000     0x3000     org.mozodojo.IntelThermal (1.0.0d1) <13 7 5 4 3>
  86    0 0xffffff7f8115b000 0x12000    0x12000    com.apple.kext.ATIFramebuffer (7.0.4) <71 61 9 8 7 5 4 3 1>
  89    0 0xffffff7f81180000 0xa000     0xa000     com.apple.driver.AppleMCCSControl (1.0.24) <61 9 7 5 4 3 1>
  90    1 0xffffff7f8118f000 0xe000     0xe000     com.apple.iokit.IOSerialFamily (10.0.5) <7 6 5 4 3 1>
  91    0 0xffffff7f8119d000 0xe000     0xe000     com.apple.iokit.IOBluetoothSerialManager (2.5f17) <90 7 5 4 3 1>
  92    0 0xffffff7f811ab000 0x5000     0x5000     com.apple.driver.AppleUpstreamUserClient (3.5.9) <61 9 8 7 5 4 3 1>
  93    0 0xffffff7f811b2000 0x12000    0x12000    com.apple.iokit.IOSurface (80.0) <7 5 4 3 1>
  94    0 0xffffff7f811c4000 0x6000     0x6000     com.apple.iokit.IOUserEthernet (1.0.0d1) <39 6 5 4 3 1>
  96    3 0xffffff7f811d4000 0x57000    0x57000    com.apple.filesystems.ntfs (3.8) <7 6 5 4 1>
  97    0 0xffffff7f81230000 0x5000     0x5000     com.apple.driver.AppleHWSensor (1.9.4d0) <5 4 3>
  98    1 0xffffff7f81237000 0xc000     0xc000     com.apple.filesystems.msdosfs (1.7) <7 5 4 1>

Link to comment
Share on other sites

I haven't tried it, but is it possible to load this driver without recognized resolutions and graphic card? I have Intel HD, so it's not possible to run this card. I want to know is it worth of spending time :)

 

No idea. This driver will load but I don't know if it will be used by AppleBacklightDisplay

  • Like 1
Link to comment
Share on other sites

My display is definitely 0. AppleBacklightDisplay isn't loading as you said.

 

bash-3.2# ioreg -w0 -rtbSk AppleDisplayType
+-o Root  <class IORegistryEntry>
 +-o MacBookPro6,2  <class IOPlatformExpertDevice>
   +-o AppleACPIPlatformExpert  <class AppleACPIPlatformExpert>
     +-o PCI0@0  <class IOACPIPlatformDevice>
       +-o AppleACPIPCI  <class AppleACPIPCI>
         +-o P0P2@1  <class IOPCIDevice>
           +-o IOPCI2PCIBridge  <class IOPCI2PCIBridge>
             +-o PEGP@0  <class IOPCIDevice>
               +-o ATY,Hoolock@0  <class AtiFbStub>
                 +-o ATY_Hoolock  <class ATIFramebuffer>
                   +-o display0  <class IODisplayConnect>
                     +-o AppleDisplay  <class AppleDisplay>
                         {
                           "IOClass" = "AppleDisplay"
                           "CFBundleIdentifier" = "com.apple.iokit.IOGraphicsFamily"
                           "IOProviderClass" = "IODisplayConnect"
                           "DisplayProductID" = 1815
                           "IOPowerManagement" = {"MaxPowerState"=3,"CurrentPowerState"=3}
                           "IODisplayPrefsKey" = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/P0P2@1/IOPCI2PCIBridge/PEGP@0/ATY,Hoolock@0/ATY_Hoolock/display0/AppleDisplay-756e6b6e-717"
                           "IODisplayParameters" = {"pscn"={"min"=5101,"max"=10000,"value"=10000},"thrm"={"min"=0,"max"=120,"value"=75},"rgsc"={"min"=0,"max"=65536,"value"=65536},"ggsc"={"min"=0,"max"=65536,"value"=65536},"bgsc"={"min"=0,"max"=65536,"value"=65536},"dith"={"min"=0,"max"=1,"value"=1}}
                           "IOProbeScore" = 2000
                           "IOMatchCategory" = "IODefaultMatchCategory"
                           "AppleDisplayType" = 10
                           "AppleSense" = 1815
                           "IODisplayConnectFlags" = <84400000>
                           "DisplayVendorID" = 1970170734
                         }

 

 

Kextstat

 

bash-3.2# kextstat
Index Refs Address            Size       Wired      Name (Version) <Linked Against>
   1   53 0xffffff806adb4000 0x683c     0x683c     com.apple.kpi.bsd (11.1.0)
   2    6 0xffffff800b665000 0x3d0      0x3d0      com.apple.kpi.dsep (11.1.0)
   3   74 0xffffff806adbb000 0x1b9d8    0x1b9d8    com.apple.kpi.iokit (11.1.0)
   4   80 0xffffff806add7000 0x9b54     0x9b54     com.apple.kpi.libkern (11.1.0)
   5   69 0xffffff800b449000 0x88c      0x88c      com.apple.kpi.mach (11.1.0)
   6   27 0xffffff806ade1000 0x4938     0x4938     com.apple.kpi.private (11.1.0)
   7   48 0xffffff806ada8000 0x22a0     0x22a0     com.apple.kpi.unsupported (11.1.0)
   8   16 0xffffff7f8072e000 0x7000     0x7000     com.apple.iokit.IOACPIFamily (1.4) <7 6 4 3>
   9   19 0xffffff7f80735000 0x1d000    0x1d000    com.apple.iokit.IOPCIFamily (2.6.5) <7 6 5 4 3>
  10    2 0xffffff7f80752000 0x58000    0x58000    com.apple.driver.AppleACPIPlatform (1.4) <9 8 7 6 5 4 3 1>
  11    0 0xffffff7f807aa000 0x2a000    0x2a000    com.apple.driver.AppleIntelCPUPowerManagement (166.0.0) <7 6 5 4 3 1>
  12    1 0xffffff7f807d5000 0xc000     0xc000     com.apple.driver.AppleKeyStore (28.18) <7 6 5 4 3 1>
  13    2 0xffffff7f807e1000 0xa000     0xa000     org.netkas.FakeSMC (3.1.0) <8 7 5 4 3>
  14    0 0xffffff7f807eb000 0x5000     0x5000     org.slice.RadeonMonitor (1.0.0d1) <13 9 4 3>
  15    5 0xffffff7f807f3000 0x25000    0x25000    com.apple.iokit.IOStorageFamily (1.7) <7 6 5 4 3 1>
  16    0 0xffffff7f80818000 0x19000    0x19000    com.apple.driver.DiskImages (326) <15 7 6 5 4 3 1>
  17    0 0xffffff7f80831000 0x8000     0x8000     com.apple.nke.applicationfirewall (3.0.30) <7 6 5 4 3 1>
  18    2 0xffffff7f8083b000 0x4000     0x4000     com.apple.kext.AppleMatch (1.0.0d1) <4 1>
  19    1 0xffffff7f8083f000 0x11000    0x11000    com.apple.security.sandbox (165) <18 7 6 5 4 3 2 1>
  20    0 0xffffff7f80850000 0x5000     0x5000     com.apple.security.quarantine (1) <19 18 7 6 5 4 2 1>
  21    0 0xffffff7f80856000 0x3000     0x3000     com.apple.security.TMSafetyNet (7) <7 6 5 4 2 1>
  22    0 0xffffff7f80859000 0x3000     0x3000     com.apple.driver.AppleIntelCPUPowerManagementClient (166.0.0) <7 6 5 4 3 1>
  23    0 0xffffff7f8085d000 0x3000     0x3000     com.apple.driver.AppleAPIC (1.5) <4 3>
  24    0 0xffffff7f80861000 0x4000     0x4000     com.apple.driver.AppleSMBIOS (1.7) <7 4 3>
  25    4 0xffffff7f80866000 0x6b000    0x6b000    com.apple.iokit.IOHIDFamily (1.7.0) <12 7 6 5 4 3 2 1>
  26    0 0xffffff7f808d1000 0x4000     0x4000     com.apple.driver.AppleACPIButtons (1.4) <25 10 8 7 6 5 4 3 1>
  27    2 0xffffff7f808d7000 0x4000     0x4000     com.apple.iokit.IOSMBusFamily (1.1) <5 4 3>
  28    0 0xffffff7f808db000 0x7000     0x7000     com.apple.driver.AppleACPIEC (1.4) <27 10 8 5 4 3>
  29    0 0xffffff7f808e4000 0x3000     0x3000     com.apple.driver.AppleHPET (1.6) <8 7 5 4 3>
  30    0 0xffffff7f808e8000 0x7000     0x7000     com.apple.driver.AppleRTC (1.4) <8 5 4 3 1>
  31    0 0xffffff7f808f1000 0x3000     0x3000     com.yourcompany.driver.AppleACPIPS2Nub (1.0.0d1) <8 7 5 4 3 1>
  32    1 0xffffff7f808f6000 0x4000     0x4000     com.apple.driver.AppleEFIRuntime (1.5.0) <7 6 5 4 3>
  33    8 0xffffff7f808fa000 0x4e000    0x4e000    com.apple.iokit.IOUSBFamily (4.4.0) <9 7 5 4 3 1>
  34    0 0xffffff7f80948000 0x17000    0x17000    com.apple.driver.AppleUSBEHCI (4.4.0) <33 9 7 5 4 3 1>
  35    2 0xffffff7f80967000 0xa000     0xa000     com.apple.iokit.IOAHCIFamily (2.0.6) <5 4 3 1>
  36    0 0xffffff7f80971000 0x16000    0x16000    com.apple.driver.AppleAHCIPort (2.1.8) <35 9 5 4 3 1>
  37    0 0xffffff7f8098d000 0x8000     0x8000     com.apple.driver.ApplePS2Controller (1.1.5) <7 5 4 3 1>
  38    0 0xffffff7f80995000 0x7000     0x7000     com.apple.driver.AppleEFINVRAM (1.5.0) <32 7 5 4 3>
  39    2 0xffffff7f8099e000 0x29000    0x29000    com.apple.iokit.IONetworkingFamily (2.0) <7 6 5 4 3 1>
  40    0 0xffffff7f809c7000 0x6000     0x6000     com.insanelymac.AtherosL1cEthernet (1.0.2b2) <39 9 5 4 3 1>
  41    0 0xffffff7f809cf000 0x3000     0x3000     com.apple.iokit.IOUSBUserClient (4.4.0) <33 7 5 4 3 1>
  42    0 0xffffff7f809d2000 0x4000     0x4000     com.Apple.driver.PS2Keyboard (1.1.0) <25 5 4 3>
  43    0 0xffffff7f809d6000 0x5000     0x5000     com.apple.AppleFSCompression.AppleFSCompressionTypeDataless (1.0.0d1) <7 6 4 3 2 1>
  44    0 0xffffff7f809dd000 0x11000    0x11000    com.apple.driver.AppleUSBHub (4.4.0) <33 5 4 3 1>
  45    0 0xffffff7f809f2000 0x5000     0x5000     com.apple.AppleFSCompression.AppleFSCompressionTypeZlib (1.0.0d1) <6 4 3 2 1>
  46    0 0xffffff7f809f9000 0x15000    0x15000    com.apple.iokit.IOAHCIBlockStorage (2.0.0) <35 15 5 4 3 1>
  47    0 0xffffff7f80a16000 0x9000     0x9000     com.apple.BootCache (32) <7 6 5 4 3 1>
  48    0 0xffffff7f80a20000 0x4000     0x4000     com.apple.driver.XsanFilter (403) <15 5 4 3 1>
  49    1 0xffffff7f80a24000 0x6000     0x6000     com.apple.driver.AppleUSBComposite (3.9.0) <33 4 3 1>
  50    0 0xffffff7f80a2a000 0x6000     0x6000     com.apple.driver.AppleUSBMergeNub (4.4.0) <49 33 4 3 1>
  52    2 0xffffff7f80a33000 0x2a000    0x2a000    com.apple.iokit.IOSCSIArchitectureModelFamily (3.0.0) <5 4 3 1>
  53    0 0xffffff7f80a5d000 0x11000    0x11000    com.apple.iokit.IOUSBMassStorageClass (3.0.0) <52 33 15 5 4 3 1>
  54    1 0xffffff7f80a6e000 0x73000    0x73000    com.apple.iokit.IOBluetoothFamily (2.5f17) <7 5 4 3 1>
  55    0 0xffffff7f80ae1000 0xe000     0xe000     com.apple.driver.AppleUSBBluetoothHCIController (2.5f17) <54 33 7 5 4 3>
  56    0 0xffffff7f80aef000 0x15000    0x15000    com.apple.iokit.IOSCSIBlockCommandsDevice (3.0.0) <52 15 5 4 3 1>
  58    1 0xffffff7f80b0d000 0x5000     0x5000     com.apple.kext.triggers (1.0) <7 6 5 4 3 1>
  59    0 0xffffff7f80b12000 0x9000     0x9000     com.apple.filesystems.autofs (3.0) <58 7 6 5 4 3 1>
  60    0 0xffffff7f80b1d000 0xd000     0xd000     com.Apple.driver.PS2Trackpad (1.1.0) <25 5 4 3>
  61    9 0xffffff7f80b2a000 0x38000    0x38000    com.apple.iokit.IOGraphicsFamily (2.3) <9 7 5 4 3>
  62    0 0xffffff7f80b62000 0x3000     0x3000     com.darwin.driver.ACPIBacklight (1) <61 8 4 3>
  63    0 0xffffff7f80b67000 0x3000     0x3000     com.apple.driver.AppleLPC (1.5.1) <9 5 4 3>
  64    0 0xffffff7f80b6b000 0x3000     0x3000     com.apple.driver.AppleSMBusPCI (1.0.10d0) <9 5 4 3>
  65    1 0xffffff7f80b6e000 0x13000    0x13000    com.apple.driver.IOPlatformPluginFamily (4.7.0b2) <8 7 6 5 4 3>
  66    2 0xffffff7f80b81000 0xc000     0xc000     com.apple.driver.AppleSMC (3.1.1d2) <8 7 5 4 3>
  67    0 0xffffff7f80b8d000 0x11000    0x11000    com.apple.driver.ACPI_SMC_PlatformPlugin (4.7.0b2) <66 65 9 8 7 6 5 4 3>
  68    1 0xffffff7f80ba3000 0x6000     0x6000     com.apple.kext.OSvKernDSPLib (1.3) <5 4>
  69    1 0xffffff7f80ba9000 0x2a000    0x2a000    com.apple.iokit.IOAudioFamily (1.8.3fc11) <68 5 4 3 1>
  70    0 0xffffff7f80bd3000 0x4000     0x4000     com.apple.driver.AudioIPCDriver (1.2.0) <69 5 4 3 1>
  71    2 0xffffff7f80bd9000 0x186000   0x186000   com.apple.kext.ATISupport (7.0.4) <61 9 8 7 5 4 3 1>
  72    0 0xffffff7f80d5f000 0x3f000    0x3f000    com.apple.kext.ATI5000Controller (7.0.4) <71 61 9 8 5 4 3 1>
  73    0 0xffffff7f80d9e000 0x8000     0x8000     com.apple.iokit.IOUSBHIDDriver (4.4.0) <33 25 5 4 3 1>
  75    2 0xffffff7f80daa000 0x12000    0x12000    com.apple.iokit.IONDRVSupport (2.3) <61 9 7 5 4 3>
  78    0 0xffffff7f80dc5000 0xe000     0xe000     com.apple.driver.AppleSMBusController (1.0.10d0) <27 9 8 5 4 3>
  79    0 0xffffff7f80dd3000 0x5000     0x5000     com.apple.Dont_Steal_Mac_OS_X (7.0.0) <66 7 4 3 1>
  80    0 0xffffff7f80dd9000 0x296000   0x296000   com.apple.ATIRadeonX3000 (7.0.4) <75 61 9 7 6 5 4 3 1>
  83    0 0xffffff7f8113c000 0xb000     0xb000     com.apple.driver.AGPM (100.12.40) <75 61 9 5 4 3>
  85    0 0xffffff7f81156000 0x3000     0x3000     org.mozodojo.IntelThermal (1.0.0d1) <13 7 5 4 3>
  86    0 0xffffff7f8115b000 0x12000    0x12000    com.apple.kext.ATIFramebuffer (7.0.4) <71 61 9 8 7 5 4 3 1>
  89    0 0xffffff7f81180000 0xa000     0xa000     com.apple.driver.AppleMCCSControl (1.0.24) <61 9 7 5 4 3 1>
  90    1 0xffffff7f8118f000 0xe000     0xe000     com.apple.iokit.IOSerialFamily (10.0.5) <7 6 5 4 3 1>
  91    0 0xffffff7f8119d000 0xe000     0xe000     com.apple.iokit.IOBluetoothSerialManager (2.5f17) <90 7 5 4 3 1>
  92    0 0xffffff7f811ab000 0x5000     0x5000     com.apple.driver.AppleUpstreamUserClient (3.5.9) <61 9 8 7 5 4 3 1>
  93    0 0xffffff7f811b2000 0x12000    0x12000    com.apple.iokit.IOSurface (80.0) <7 5 4 3 1>
  94    0 0xffffff7f811c4000 0x6000     0x6000     com.apple.iokit.IOUserEthernet (1.0.0d1) <39 6 5 4 3 1>
  96    3 0xffffff7f811d4000 0x57000    0x57000    com.apple.filesystems.ntfs (3.8) <7 6 5 4 1>
  97    0 0xffffff7f81230000 0x5000     0x5000     com.apple.driver.AppleHWSensor (1.9.4d0) <5 4 3>
  98    1 0xffffff7f81237000 0xc000     0xc000     com.apple.filesystems.msdosfs (1.7) <7 5 4 1>

 

Send me a IORegisteryExplorer dump.

Link to comment
Share on other sites

                        "AAPL,HasPanel",
                       Buffer (0x04)
                       {
                           0x01, 0x00, 0x00, 0x00
                       },

                       "AAPL,Haslid",
                       Buffer (0x04)
                       {
                           0x01, 0x00, 0x00, 0x00
                       },

                       "AAPL,backlight-control",
                       Buffer (0x04)
                       {
                           0x01, 0x00, 0x00, 0x00
                       },

                       "@0,backlight-control",
                       Buffer (0x04)
                       {
                           0x01, 0x00, 0x00, 0x00
                       },

						"@0,AAPL,boot-display",
                       Buffer (0x04)
                       {
                           0x01, 0x00, 0x00, 0x00
                       },

					"@0,built-in",
                       Buffer ()
                       {
                           One
                       },

 

Where can I inject this into my _DSM Method? I looked at your dsdt but I could not find the above code anywhere in your dsdt, are you injecting via graphics enabler or EFI string??

 

I have PNLF method in \_SB scope

 

Any help is appreciated

 

Attached is iogreg.txt.zip and DSDT.aml.zip

 

ASUS G53JW

Core I7 740QM

8GB DDR3 1333

Nvidia GTX 460M

 

Thanks.

DSDT.aml.zip

ioreg.txt.zip

Link to comment
Share on other sites

                        "AAPL,HasPanel",
                       Buffer (0x04)
                       {
                           0x01, 0x00, 0x00, 0x00
                       },

                       "AAPL,Haslid",
                       Buffer (0x04)
                       {
                           0x01, 0x00, 0x00, 0x00
                       },

                       "AAPL,backlight-control",
                       Buffer (0x04)
                       {
                           0x01, 0x00, 0x00, 0x00
                       },

                       "@0,backlight-control",
                       Buffer (0x04)
                       {
                           0x01, 0x00, 0x00, 0x00
                       },

						"@0,AAPL,boot-display",
                       Buffer (0x04)
                       {
                           0x01, 0x00, 0x00, 0x00
                       },

					"@0,built-in",
                       Buffer ()
                       {
                           One
                       },

 

Where can I inject this into my _DSM Method? I looked at your dsdt but I could not find the above code anywhere in your dsdt, are you injecting via graphics enabler or EFI string??

 

I have PNLF method in \_SB scope

 

Any help is appreciated

 

Attached is iogreg.txt.zip and DSDT.aml.zip

 

ASUS G53JW

Core I7 740QM

8GB DDR3 1333

Nvidia GTX 460M

 

Thanks.

 

Use _DSM...DTGP classical way in Device (GFX0) scope

The properties are merged with the one injected by graphic enabler

Link to comment
Share on other sites

well, i also have no luck for my ati mobility radeon 5450.

i put the two sections of codes into the graphics part of my dsdt and still failed to get "applebacklightdisplay" loaded.

here is my iroregistryexplorer dump. :)

Ioregistry.zip

 

I've made a diagnostic driver to try to understand what's happening.

It will make some log lines starting by ACPIBacklightDisplay: at the end of boot, and then will refuse to load.

ACPIBacklightDisplay.kext.zip

publish the logs

Link to comment
Share on other sites

 Share

×
×
  • Create New...