Git Product home page Git Product logo

Comments (9)

lazd avatar lazd commented on July 2, 2024

The upgrade to Sonoma went great using the "Install macOS Sonoma" app to upgrade my Monterey install, no problems at all, and I can confirm that hibernate works in Sonoma as well!

from surface-go-2-opencore.

jlempen avatar jlempen commented on July 2, 2024

Howdy @lazd,
Thanks for your detailed explanation to get hibernation working.

In config.plist, Misc -> Boot -> HibernateMode = NVRAM
In config.plist, Misc -> Boot -> HibernateSkipsPicker = true

These changes made a big difference on my SGO2, as now the device at least wakes up. Then it skips the OC picker, shows a black screen for a few seconds, then the lower part of the display gets garbled and a few seconds later, the mouse cursor appears somewhere on the upper half of the screen and the Type Cover reacts to pressing the Fn key. But it never fully wakes up, it stays in this state, with the Type Cover seemingly connecting and disconnecting intermittently, as the keys' backlight goes on and off every few seconds.

Now I tried to reboot without the SD card inserted, disabling the DisableBDPROCHOT driver and a few other things, to no avail. Funny enough, the garbled part of the screen always looks exactly the same.

Please confirm that you're using the config_hard.plist with the modified UEFI options on your setup and please check which firmware is on your SGO2. Mine unfortunately updated to 1.0.27 a few weeks ago while rebooting into Windows before me noticing it. Maybe I need to downgrade the firmware on my device.

from surface-go-2-opencore.

jlempen avatar jlempen commented on July 2, 2024

As Hibernate is still not working for me after merging PR #4 and resetting the NVRAM, I'll reopen this issue.

from surface-go-2-opencore.

lazd avatar lazd commented on July 2, 2024

Very interesting, it sounds like it's actually working -- my screen shows garbled video (rectangular sections tiled across the whole screen), then bam, I'm exactly where I left off. Perhaps it's getting stuck for some reason, can you verify you ran the command above with the functions I defined?

I am using config-easy.plist, I have enabled DisablePROCHOT.efi, I'll get my firmware version shortly, but I boot into Windows all the time, so if you got an update, I probably did too.

from surface-go-2-opencore.

lazd avatar lazd commented on July 2, 2024

Here's my config.plist
config.plist.txt

And here's the output of sudo pmset -g

System-wide power settings:
 SleepDisabled		0
Currently in use:
 standby              1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 proximitywake        0
 powernap             0
 gpuswitch            2
 disksleep            10
 standbydelayhigh     86400
 sleep                1 (sleep prevented by sharingd)
 hibernatemode        25
 ttyskeepawake        1
 displaysleep         2
 tcpkeepalive         1
 highstandbythreshold 50
 lowpowermode         1
 standbydelaylow      10800

from surface-go-2-opencore.

lazd avatar lazd commented on July 2, 2024

Here's my BIOS information:

  • System UEFI 1.0.23
  • Intel Management Engine 11.8.92.4222
  • System embeded controller 1.0.4.0
  • Touch firmware 2D91.6426.0000.2000

from surface-go-2-opencore.

lazd avatar lazd commented on July 2, 2024

After checkout out the man page and looking at the scripts, I believe this is all that's needed to enable hibernate:

sudo pmset restoredefaults
sudo pmset -a hibernatemode 25

from surface-go-2-opencore.

lazd avatar lazd commented on July 2, 2024

Here's what my Surface looks like when waking up from hibernate. Sometimes it takes longer, sometimes it doesn't flicker garbled video, sometimes it doesn't flash a clean image before flicking garbled video.

tiny2.mov

from surface-go-2-opencore.

jlempen avatar jlempen commented on July 2, 2024

@lazd , I found the issue!
For Hibernate mode to work reliably, the framebuffer patches in config_easy.plist are required, as well as the AppleCpuPmCfgLock, AppleXcpmCfgLock and DisableIoMapper quirks in the Kernel quirks.
I replaced the config_hard.plist and config_easy.plist with one single config.plist, which makes it easier to maintain the repo as well.
In consequence, I removed RU.exe from the Tools and removed the UEFI hacks section in the readme.
As Hibernate works reliably now, I think we can close this issue.

from surface-go-2-opencore.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.