Contribute
Register

[Guide] Disabling discrete graphics in dual-GPU laptops

Hello RehabMan

I followed the guide and was able to switch-off the Nvidia card. However, now I have sleep /wake issues.
My laptop screen switches off as soon as I click on  -> Sleep
But in reality it never goes into sleep as there is keyboard light still on. When I press any key, the screen doesn't switch on anymore and the only way to get out of this is to keep pressing the power button until it reboots.

Attached are the files for your reference.
Files attached:
  1. Clover.zip - Removed the themes directory to reduce the size.
  2. IOReg (MacBook9.1.zip)
  3. Origin directory zipped
  4. RehabMan.zip (from Patchmatic).
Appreciate if you could have a look and tell me what I need to put in _PTS and _WAK (I already have _ON() called in _PTS() and _OFF() called in _WAK()).

Output from kextstat|grep -y acpiplat

13 2 0xffffff7f8278e000 0x66000 0x66000 com.apple.driver.AppleACPIPlatform (4.0) A29C7512-D3A8-3AED-9721-3A5FF1A32EB2 <12 11 7 6 5 4 3 1>

Just in case my profile doesn't have proper info:

Laptop - Asus Zenbook UX303UB
CPU - Intel Core i5 6200U
Graphics - Intel HD 520
Nvidia GeForce 940M (2GB)


PS: I use a USB for wifi and I have tried removing it before clicking on Sleep. It hasn't worked.

Thanks for all your help in this community.

Cheers,

You forgot to press F4 to capture native ACPI files in ACPI/origin.
Read post #1, "Problem Reporting". Carefully.
If the files in origin.zip are representative of the files that should have been provided at ACPI/origin in Clover.zip, then it is clear you have the wrong files in ACPI/patched.
Based on origin.zip, you should have in ACPI/patched:
DSDT.aml
SSDT.aml (ssdtPRgen.sh)
SSDT-0.aml
SSDT-1.aml
SSDT-2.aml
SSDT-3.aml
SSDT-4.aml
SSDT-12.aml
SSDT-13.aml
 
You forgot to press F4 to capture native ACPI files in ACPI/origin.

Hi RehabMan, Thank you for looking at the files. I didn't forget to press F4 on Clover screen. It's an activity I often do to work on the files.

Read post #1, "Problem Reporting". Carefully.
If the files in origin.zip are representative of the files that should have been provided at ACPI/origin in Clover.zip, then it is clear you have the wrong files in ACPI/patched.
Based on origin.zip, you should have in ACPI/patched:
DSDT.aml
SSDT.aml (ssdtPRgen.sh)
SSDT-0.aml
SSDT-1.aml
SSDT-2.aml
SSDT-3.aml
SSDT-4.aml
SSDT-12.aml
SSDT-13.aml

The files I have uploaded in origin.zip are the ones I got after pressing F4 in /Volumes/EFI/ACPI/Origin directory.

Yes I had all files in there but now I removed the dynamic files and only have
DSDT.aml
SSDT.aml (ssdtPRgen.sh)
SSDT-0.aml
SSDT-1.aml
SSDT-2.aml
SSDT-3.aml
SSDT-4.aml
SSDT-12.aml
SSDT-13.aml

However, could you tell me what is missing in DSDT that needs to be fixed to ensure Nvidia GPU is switched on before sleep i.e. in _PTS().

Thanks for all your help.

Cheers.
 
Hello,
I tried different methods off the Nvidia, but nothing helped
Laptop
FIXED, I duplicated two brightness patch in DSDT and SSDT-9.
Asus ROG G750JS (G750JS-T4052H)
Intel Core i7-4700HQ
nVidia GeForсe GTX 870M
 

Attachments

  • AsusRog750.zip
    10.6 MB · Views: 81
Last edited:
Hi RehabMan, Thank you for looking at the files. I didn't forget to press F4 on Clover screen. It's an activity I often do to work on the files.

You did not. If you look at the files in Clover.zip, there are no files in ACPI/origin.

The files I have uploaded in origin.zip are the ones I got after pressing F4 in /Volumes/EFI/ACPI/Origin directory.

The request was not to remove them from EFI/Clover/ACPI/origin and place them in a separate ZIP.

However, could you tell me what is missing in DSDT that needs to be fixed to ensure Nvidia GPU is switched on before sleep i.e. in _PTS().

Not all computers need that. You should do it only if you have issues on sleep/wake.
It is covered in post #1.
 
Hello,
I tried different methods off the Nvidia, but nothing helped
Laptop
FIXED, I duplicated two brightness patch in DSDT and SSDT-9.
Asus ROG G750JS (G750JS-T4052H)
Intel Core i7-4700HQ
nVidia GeForсe GTX 870M

Problem is obvious. If you disassemble your files in ACPI/patched, iasl is telling you what the problem is.
Try it for yourself (from ACPI/patched):
iasl -da -dl *.aml
 
My INI method was located in SSDT-6 and it is identical to the example. My OFF method which is not in a PowerResource macro was located in SSDT-8. I patched SSDT-6 according to "Disable from _INI (SSDT)". The OFF method in SSDT-8 did not include an EC access (just a bunch of store lines). I assumed that there is no need to patch anything else (such as DSDT). My discrete graphics card did not get disabled. Did I do anything wrong? Since the OFF method didn't include an EC access, is that the case that the OFF method is empty (for older laptops)?
 
Hello, i extracted my ssdts by Clover but some ssdts in #1 i don't have and vice versa, so how can i patch each ssdt.
 

Attachments

  • origin.zip
    72.9 KB · Views: 77
You did not. If you look at the files in Clover.zip, there are no files in ACPI/origin.



The request was not to remove them from EFI/Clover/ACPI/origin and place them in a separate ZIP.

Hello RehabMan, I have zipped the entire Clover folder without separating origin directory. I would appreciate if you could have a look. I have been following this guide for last 3 months and have tried many things only after which I asked for help.

Not all computers need that. You should do it only if you have issues on sleep/wake.
It is covered in post #1.

I did come to this post because my computer has problems with the sleep/wake. I think I am missing something which is either unique to this optimus set-up or something in the code itself.

Thanks for all your support and directions :)
 

Attachments

  • Clover.zip
    2.9 MB · Views: 71
My INI method was located in SSDT-6 and it is identical to the example. My OFF method which is not in a PowerResource macro was located in SSDT-8. I patched SSDT-6 according to "Disable from _INI (SSDT)". The OFF method in SSDT-8 did not include an EC access (just a bunch of store lines). I assumed that there is no need to patch anything else (such as DSDT). My discrete graphics card did not get disabled. Did I do anything wrong? Since the OFF method didn't include an EC access, is that the case that the OFF method is empty (for older laptops)?

Read post #1, "Problem Reporting".
 
Hello, i extracted my ssdts by Clover but some ssdts in #1 i don't have and vice versa, so how can i patch each ssdt.

Nothing unusual here.
_OFF is in SSDT-14, so is associated _INI. Call _OFF from the _INI.
 
Back
Top