← Back to team overview

mactel-support team mailing list archive

Re: LCD panel brightness control for MacBookPro6, 2

 

On 05/05/2010 07:42 PM, Mario Schwalbe wrote:
2. does the backlight adjustment work? i mean:
   .driver_data = (void *)&intel_chipset_data,
   i thought the new generation incorporates Nvidia chipsets.

Yes it does. I assume on the new models with both, an Intel and a Nvidia graphics adapater, backlight is always controlled by the Intel mechanism: "only" the graphics adapter itself is switched.

3. did you run:
   echo <value> | sudo tee /sys/class/backlight/mbp_backlight/brightness

So, what do you mean by that? :-) But to check on it anyway: it is truly your mbp_nvidia_bl module responsible for the working backlight control. First, I tried to control backlight with the Nvidia mechanism - it does not work (no reaction). By the way: how did you find out about the i/o ports - did you extract this information from the OSX driver? 0xb2 / 0xb3 seems to be an interface for SMI calls... but I couldn't find anything about 0x52e or 0x52f. I mean are they at all Intel/Nvidia specific? or did Apple just use one method for all their Intel only models and the other for all their Nvidia/Intel models?

4. how did you get the SATA controller to work?

It works on MacBookPro6,2 out of the box (ata_piix):

May 2 00:37:36 imera kernel: [ 0.881769] ata_piix 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19 May 2 00:37:36 imera kernel: [ 0.881775] ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ] May 2 00:37:36 imera kernel: [ 0.939900] Freeing initrd memory: 10434k freed May 2 00:37:36 imera kernel: [ 0.976647] ACPI: EC: GPE storm detected, transactions will use polling mode
May  2 00:37:36 imera kernel: [    1.041461] scsi0 : ata_piix
May  2 00:37:36 imera kernel: [    1.041538] scsi1 : ata_piix
May 2 00:37:36 imera kernel: [ 1.041788] ata1: SATA max UDMA/133 cmd 0x3128 ctl 0x313c bmdma 0x3020 irq 19 May 2 00:37:36 imera kernel: [ 1.041795] ata2: SATA max UDMA/133 cmd 0x3120 ctl 0x3138 bmdma 0x3028 irq 19

Cya,
 -bf



Follow ups

References