Contribute
Register

[Guide] Laptop backlight control using AppleBacklightFixup.kext

what is _UID in SSDT-PNLF.dsl and how is it used?
I'm using ig-platform-id: 0x0d260007 for my HD4600, as the ports definition best suits my laptop (4 ports in total including internal display)
as per guide, I'll need to set LMAX accordingly, thus 0x7a1

Code:
0700260d 01030403 00000004 00002002 00005001 00000060 a1070000 a1070000 00000000 00000000 00000800 02000000

however, I noticed, in SSDT-PNLF I had to change _UID to 15 (the same as default for Haswell) instead of 17 originally, otherwise no brightness slider for me.
(see the end of file https://github.com/1and1get2/CP65S/blob/master/DSDT_NEW/hotpatch/SSDT-PNLF.dsl)

I did google around however nothing was found relating to the usage/purpose of _UID, and nothing in AppleBacklightInjector.kext either

SSDT-PNLF calculates _UID automatically.
Don't forget to set RMCF.LMAX to 0x7a1 as per guide.
 
Thanks for making this guide!

My laptop is a Clevo, it can be used with both Discrete (GTX 1070 only) and Optimus (Intel HD 630/GTX 1070) and I'm currently running in Discrete with NVIDIA web drivers working (like a desktop maybe?). I followed this guide and it did not work (expected).
Is there a way to make it work or I have to switch back to iGPU?
View attachment 333141

Your Clvoer bootlog shows no Intel HD graphics:
Code:
0:112  0:000  === [ GetDevices ] ========================================
0:112  0:000  PCI (00|00:00.00) : 8086 5910 class=060000
0:112  0:000  PCI (00|00:01.00) : 8086 1901 class=060400
0:112  0:000  PCI (00|01:00.00) : 10DE 1BE1 class=030000
0:112  0:000   - GFX: Model=Clevo GeForce GTX 1070 family 134 (Nvidia)
0:112  0:000  PCI (00|01:00.01) : FFFF FFFF class=FFFFFF
0:112  0:000  PCI (00|00:14.00) : 8086 A12F class=0C0330
0:112  0:000  PCI (00|00:14.02) : 8086 A131 class=118000
0:112  0:000  PCI (00|00:16.00) : 8086 A13A class=078000
0:112  0:000  PCI (00|00:17.00) : 8086 A103 class=010601
0:112  0:000  PCI (00|00:1C.00) : 8086 A110 class=060400
0:112  0:000  PCI (00|02:00.00) : 8086 15DA class=060400
0:113  0:000  PCI (00|03:00.00) : 8086 15DA class=060400
0:113  0:000  PCI (00|03:01.00) : 8086 15DA class=060400
0:113  0:000  PCI (00|03:02.00) : 8086 15DA class=060400
0:113  0:000  PCI (00|3A:00.00) : 8086 15DB class=0C0330
0:113  0:000  PCI (00|00:1C.04) : 8086 A114 class=060400
0:113  0:000  PCI (00|3B:00.00) : 10EC 8168 class=020000
0:113  0:000   - LAN: 0 Vendor=Realtek
0:113  0:000  PCI (00|00:1C.05) : 8086 A115 class=060400
0:113  0:000  PCI (00|3C:00.00) : 10EC 5250 class=080501
0:113  0:000  PCI (00|00:1C.06) : 8086 A116 class=060400
0:113  0:000  PCI (00|3D:00.00) : 8086 24FD class=028000
0:113  0:000   - WIFI: Vendor=Intel
0:113  0:000  PCI (00|00:1D.00) : 8086 A118 class=060400
0:113  0:000  PCI (00|3E:00.00) : 144D A804 class=010802
0:113  0:000  PCI (00|00:1F.00) : 8086 A152 class=060100
0:113  0:000  PCI (00|00:1F.02) : 8086 A121 class=058000
0:113  0:000  PCI (00|00:1F.03) : 8086 A171 class=040300
0:113  0:000  PCI (00|00:1F.04) : 8086 A123 class=0C0500

Your profile is clearly inaccurate. Please fix.

Your post is off-topic (Nvidia only not covered in this guide).
And this guide applies only to Intel graphics, as is stated in post #1.
 
Your Clvoer bootlog shows no Intel HD graphics:
Code:
0:112  0:000  === [ GetDevices ] ========================================
0:112  0:000  PCI (00|00:00.00) : 8086 5910 class=060000
0:112  0:000  PCI (00|00:01.00) : 8086 1901 class=060400
0:112  0:000  PCI (00|01:00.00) : 10DE 1BE1 class=030000
0:112  0:000   - GFX: Model=Clevo GeForce GTX 1070 family 134 (Nvidia)
0:112  0:000  PCI (00|01:00.01) : FFFF FFFF class=FFFFFF
0:112  0:000  PCI (00|00:14.00) : 8086 A12F class=0C0330
0:112  0:000  PCI (00|00:14.02) : 8086 A131 class=118000
0:112  0:000  PCI (00|00:16.00) : 8086 A13A class=078000
0:112  0:000  PCI (00|00:17.00) : 8086 A103 class=010601
0:112  0:000  PCI (00|00:1C.00) : 8086 A110 class=060400
0:112  0:000  PCI (00|02:00.00) : 8086 15DA class=060400
0:113  0:000  PCI (00|03:00.00) : 8086 15DA class=060400
0:113  0:000  PCI (00|03:01.00) : 8086 15DA class=060400
0:113  0:000  PCI (00|03:02.00) : 8086 15DA class=060400
0:113  0:000  PCI (00|3A:00.00) : 8086 15DB class=0C0330
0:113  0:000  PCI (00|00:1C.04) : 8086 A114 class=060400
0:113  0:000  PCI (00|3B:00.00) : 10EC 8168 class=020000
0:113  0:000   - LAN: 0 Vendor=Realtek
0:113  0:000  PCI (00|00:1C.05) : 8086 A115 class=060400
0:113  0:000  PCI (00|3C:00.00) : 10EC 5250 class=080501
0:113  0:000  PCI (00|00:1C.06) : 8086 A116 class=060400
0:113  0:000  PCI (00|3D:00.00) : 8086 24FD class=028000
0:113  0:000   - WIFI: Vendor=Intel
0:113  0:000  PCI (00|00:1D.00) : 8086 A118 class=060400
0:113  0:000  PCI (00|3E:00.00) : 144D A804 class=010802
0:113  0:000  PCI (00|00:1F.00) : 8086 A152 class=060100
0:113  0:000  PCI (00|00:1F.02) : 8086 A121 class=058000
0:113  0:000  PCI (00|00:1F.03) : 8086 A171 class=040300
0:113  0:000  PCI (00|00:1F.04) : 8086 A123 class=0C0500

Your profile is clearly inaccurate. Please fix.

Your post is off-topic (Nvidia only not covered in this guide).
And this guide applies only to Intel graphics, as is stated in post #1.
Thanks for the reply.
What's inaccurate with my profile?
I can't find anywhere about how to control backlight in the case of only Nvidia gpu, may I ask if that's possible?
 
What's inaccurate with my profile?

Your profile indicates "Intel HD graphics 630".
But your Clover bootlog proves no HD630 present.

I can't find anywhere about how to control backlight in the case of only Nvidia gpu, may I ask if that's possible?

You will need to use search/google.
 
SSDT-PNLF calculates _UID automatically.
Don't forget to set RMCF.LMAX to 0x7a1 as per guide.

sorry if i wasn't clear, I have set RMCF.LMAX to 0x7a1, however it doesn't give me brightness slider, not unless in pnlf.sdl I manually set uid to 15 rather than the given value 17.
 
sorry if i wasn't clear, I have set RMCF.LMAX to 0x7a1, however it doesn't give me brightness slider, not unless in pnlf.sdl I manually set uid to 15 rather than the given value 17.

Note: PR files must represent the scenario you're reporting.

No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
PR file was attached on my previous post, first one on this page
https://www.tonymacx86.com/threads/...ghtinjector-kext.218222/page-143#post-1753382

PR file: https://www.tonymacx86.com/attachments/debug_31254-zip.333087/

Note: PR files must represent the scenario you're reporting.

No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 

Attachments

  • debug_5040.zip
    7.9 MB · Views: 68
Back
Top