Jump to content
ErmaC

Clover General discussion

21,417 posts in this topic

Recommended Posts

Please test and report

 

나의 LG-F410S 의 Tapatalk에서 보냄

 

It works! Thank You Sherlocks! Made my Day! :-*

Share this post


Link to post
Share on other sites
Advertisement

It works! Thank You Sherlocks! Made my Day! :-*

Thank you.

Still need test for RTC, other pathes included in kext_inject.c from users

I'm waiting.

 

나의 LG-F410S 의 Tapatalk에서 보냄

It works! Thank You Sherlocks! Made my Day! :-*

 

please test again

 

thanks in advance

r3998fix v3.zip

Share this post


Link to post
Share on other sites

i updated rc script.

 

better reboot time after click restart button. The nvram file creation on the ESP partition no longer fails.

 

please test and report.

 

thanks in advance

 

v1.8 © 2017 syscl/lighting/Yating Zhou

Found ESP on disk0s1

Found Clover in /Volumes/ESP01/EFI/CLOVER

Target path: /Volumes/ESP01 - saved new values to NVRAM

>> End Script: /private/etc/rc.shutdown.d/80.save_nvram_plist.local

 

Supreme-MBP:~ supreme$ sudo /etc/rc.shutdown.d/80.save_nvram_plist.local

Password:

Supreme-MBP:~ supreme$ sudo cat /Library/Logs/CloverEFI/rc.shutdown.log

v1.8 © 2017 syscl/lighting/Yating Zhou

Found ESP on disk0s1

Found Clover in /Volumes/ESP01/EFI/CLOVER

Target path: /Volumes/ESP01 - saved new values to NVRAM

Supreme-MBP:~ supreme$ sudo /etc/rc.shutdown.d/80.save_nvram_plist.local

Supreme-MBP:~ supreme$ sudo cat /Library/Logs/CloverEFI/rc.shutdown.log

v1.8 © 2017 syscl/lighting/Yating Zhou

Found ESP on disk0s1

Found Clover in /Volumes/ESP01/EFI/CLOVER

Target path: /Volumes/ESP01 - no change values to NVRAM

Supreme-MBP:~ supreme$ 

80.save_nvram_plist.local-SherlocksV2.zip

Share this post


Link to post
Share on other sites

@sherlocks - ok - your 1.8 nvram script works...

 

BUT it does a few things that may need some further scrutiny - and of course is the reason I use the attached scripts.

 

Question:

do you use LogoutHook

or

as shutdown script in CloverDaemon sleep loop only run on shutdown?

 

The general logical flow of the script is:

 

1) fndESP

- loop to find all ESP partitions on all disks

- mount the ESP to check for EFI/CLOVER

- and if no EFI/CLOVER unmount since it is not needing nvram file.

 

2) dmpNVRAM

the loop on all the mounted ESP locations to write nvram.plist 

 

Questions/issues:

--------

1) _fndESP

 

your script will try to unmount an ESP if it is already mounted.

why bother to do this unmount?

 

- the mounting of the filesystem is the most time-consuming and resource intensive aspect, so

(A) why not use the existing mount?

 

- the unmount procedure - if busy - you revert to forced unmount -

 why risk corrupting the filesystem only to remount it in the next step?

 

(B) And then why remove the mount point with "rm -r"  - VERY UNSAFE action for a mount point

- "rmdir" is enough if you need to remove a directory and not the tree.

again, there is no need unmount ESP in the first place. 

 

2) _dmpNVRAM

 

(A) why write out the nvram file - then check to see if there is a change?

 

echo "${gNVRAMbuf}" > "${gTarPath}/${gNVRAMf}"

if [[ "${gOldNVRAM}" != "${gNVRAMbuf}" ]]; then

nvram -x -p >"${gTarPath}/${gNVRAMf}"

...

fi

 

(B) why leave ESP mounted? 

this is ok if this script is used in CloverDaemon as a shutdown script 

but if it used in a LogoutHook - the ESP should not be left mounted.

 

 

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

please review the attached script

 

1) cleaned up aspects

- removed all extra variables and items not needed

- remove redirects to log file - doesn't work well when called from CloverDaemon - loses synchronous output.

 

2) fndESP feature

- uses current ESP mount in stead of unmount / mount

 

3) dmpNVRAM feature

- ONLY writes to / of OS, if there is NO ESP found

- writes the current nvram settings if there is a CLOVER directory. Note: there is no "win" in checking the file to see if there is no change. meaning there is no performance gain - so just write out current nvram to the file.

- finally, try to unmount ESP  -  if it fails to unmount (busy) that's ok.  to avoid, busy upon write, the best practice here is to put .metadata_never_index in the ESP.

 

Note: I use LogoutHook (CloverDaemon-stopservice) instead of use the original CloverDaemon sleep loop.

 

 

nvram_v1.9.zip

Share this post


Link to post
Share on other sites

@sherlocks - ok - your 1.8 nvram script works...

 

BUT it does a few things that may need some further scrutiny - and of course is the reason I use the attached scripts.

 

Question:

do you use LogoutHook

or

as shutdown script in CloverDaemon sleep loop only run on shutdown?

 

The general logical flow of the script is:

 

 

 

 

 

 

 

1) fndESP

- loop to find all ESP partitions on all disks

- mount the ESP to check for EFI/CLOVER

- and if no EFI/CLOVER unmount since it is not needing nvram file.

2) dmpNVRAM

the loop on all the mounted ESP locations to write nvram.plist

Questions/issues:

--------

1) _fndESP

 

 

 

 

 

 

your script will try to unmount an ESP if it is already mounted.

why bother to do this unmount?

- the mounting of the filesystem is the most time-consuming and resource intensive aspect, so

(A) why not use the existing mount?

- the unmount procedure - if busy - you revert to forced unmount -

why risk corrupting the filesystem only to remount it in the next step?

(B) And then why remove the mount point with "rm -r" - VERY UNSAFE action for a mount point

- "rmdir" is enough if you need to remove a directory and not the tree.

again, there is no need unmount ESP in the first place.

2) _dmpNVRAM

 

 

 

 

 

 

(A) why write out the nvram file - then check to see if there is a change?

echo "${gNVRAMbuf}" > "${gTarPath}/${gNVRAMf}"

if [[ "${gOldNVRAM}" != "${gNVRAMbuf}" ]]; then

nvram -x -p >"${gTarPath}/${gNVRAMf}"

...

fi

(B) why leave ESP mounted?

this is ok if this script is used in CloverDaemon as a shutdown script

but if it used in a LogoutHook - the ESP should not be left mounted.

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

please review the attached script

 

1) cleaned up aspects

- removed all extra variables and items not needed

- remove redirects to log file - doesn't work well when called from CloverDaemon - loses synchronous output.

 

2) fndESP feature

- uses current ESP mount in stead of unmount / mount

 

3) dmpNVRAM feature

- ONLY writes to / of OS, if there is NO ESP found

- writes the current nvram settings if there is a CLOVER directory. Note: there is no "win" in checking the file to see if there is no change. meaning there is no performance gain - so just write out current nvram to the file.

- finally, try to unmount ESP - if it fails to unmount (busy) that's ok. to avoid, busy upon write, the best practice here is to put .metadata_never_index in the ESP.

 

Note: I use LogoutHook (CloverDaemon-stopservice) instead of use the original CloverDaemon sleep loop.

I use clover daemon(i dont touch clover script(ESP)). Im not prefer to touch other script.

 

I tested your script(r3998). But shown fail case. I did try to find fail case. Your script still has problem. I attached fact pic previous reply before.

 

So i returned unmount method. I did test 1.8 to find fail case. 1.8 never shown fail case. I did debug to check each parts

 

I will check 1.9 and test. If 1.9 never has fail, we can select more better.

 

Thank you.

 

나의 LG-F410S 의 Tapatalk에서 보냄

Share this post


Link to post
Share on other sites

Thank you.

Still need test for RTC, other pathes included in kext_inject.c from users

I'm waiting.

 

나의 LG-F410S 의 Tapatalk에서 보냄

 

please test again

 

thanks in advance

 

 

It works for me too.

Share this post


Link to post
Share on other sites

@sherlocks - ok. thanks for reviewing.

 

when you say fail case, i am not sure what that means exactly. the previous pictures were not explaining anything to me. 

what part of the script fails? 

failure to mount ESP?

failure to write to ESP?

failure to unmount ESP?

Share this post


Link to post
Share on other sites

@sherlocks - ok. thanks for reviewing.

 

when you say fail case, i am not sure what that means exactly. the previous pictures were not explaining anything to me.

what part of the script fails?

failure to mount ESP?

failure to write to ESP?

failure to unmount ESP?

Not sure. But i see that exist nvram file in /.

http://www.insanelymac.com/forum/index.php?/topic/284656-Clover-General-discussion&do=findComment&comment=2361248

 

I want version that dont touch ESP script. Also suggest "remove nvram dummy file" if have ESP, when exist vram file in /, automately remove it. 1.8 can do this.

 

I guess Mount fail? Not sure. Maybe when osx update or something.

 

Anyway i get pic above.

 

I understand latest your script.

I knew need or not need from 1.8. I learned your script. Thank you

 

 

 

 

나의 LG-F410S 의 Tapatalk에서 보냄

Share this post


Link to post
Share on other sites

@sherlocks 

ok.

1) ESP script?  - you mean use /Library/A S/CloverDaemon - which calls /etc/rc.shutdown.d/* when a shutdown happens?

2) if /nvram.plist exists and ESP exists -> then remove /nvram.plist.

Share this post


Link to post
Share on other sites

@sherlocks

ok.

1) ESP script? - you mean use /Library/A S/CloverDaemon - which calls /etc/rc.shutdown.d/* when a shutdown happens?

2) if /nvram.plist exists and ESP exists -> then remove /nvram.plist.

1)suggest for testing

you added CloverDaemon-disable.

Also i want to version that only touch RC script

 

2)suggest

if user with ESP has nvram in "/", script automately find it and remove. Because no need nvram in "/" for ESP user if script has no problem.

 

Your script is good. But i found fail case. I like debug and report for bug.

I'm ready to resolve bug.

We have to research fail case.

 

Thank you

 

나의 LG-F410S 의 Tapatalk에서 보냄

Share this post


Link to post
Share on other sites

great. please provide more information on the failure when you have it.

 

understood:

 

1) requirement - the /etc/rc.shutdown.d/script will work with standard CloverDaemon (and LogoutHook)

2) feature - add check to remove OS /nvram.plist if at least 1 ESP is found.

 

i will test and repost soon. 

Share this post


Link to post
Share on other sites
Sorry to interrupt.

I have a problem: the id of my amd hd 5770 is described in the new graphics kexts of 12.4, the kext are loaded but the board does not maintain stable colors and is slow.

 


Help or expert advice would be very welcome.

Thanks.

Share this post


Link to post
Share on other sites

 

Sorry to interrupt.
I have a problem: the id of my amd hd 5770 is described in the new graphics kexts of 12.4, the kext are loaded but the board does not maintain stable colors and is slow.
 
Help or expert advice would be very welcome.
Thanks.

 

Yes, the problem is known "Colors flickering of Radeon

I have to sale my Radeon HD6670 because of that.

Share this post


Link to post
Share on other sites

I use a Bluetooth mouse and keyboard, so I'm trying to figure out how to reboot into Windows (and then reboot again back into OS X) without actually activating the Clover menu.

 

On a real Mac, the following terminal reboots into Windows, and restarting again from windows boots into OS X.

bless --device /dev/[Windows Partition Identifier] --mount /Volumes/[Windows Volume] --setBoot --nextonly && reboot

My EFI-boot, Clover-based Hackintosh also reboots into Windows after running this command, but once done I can't seem to get back into OS X (without lugging out my old USB keyboard to activate the Clover menu). For whatever reason, the --nextonly option is getting completely ignored. It goes without saying that I have my mac partition set as the default boot volume in config.plist.

 

Any help? Thanks!

Share this post


Link to post
Share on other sites

@wowfunhappy 

so it works to go to windows. then why dont you create a default volume Clover to boot macOS - that way, macOS can boot and does not require any intervention.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By STLVNUB
      Script file to clone Clover, Opencore (official and unofficial) repos
      Script will create link to itself in /usr/local/bin/bob
      Wouldn't hurt to check there are no "Bob"'s there, i "Hope" there isn't.
      Then you only need to type bob. and a parameter
      "n" for NDK repo, unofficial
      "a" for ACID repo, official
      "c" for CLOVER
      It also takes "all" for ALL, if your game
       
      Easier typing bob than.....usual stuff
      Enjoy
       
    • By TimothyF
      My PROBLEM: I followed the Plain Vanilla guide (https://hackintosh.gitbook.io/-r-hackintosh-vanilla-desktop-guide/) to a T in creating the OS X Catalina installer USB. I'm totally new to Hackintosh, and just want an Apple environment to Time Machine migrate my files and system from my ageing MacBook Pro. When I start to use the USB on the target PC (Dell Inspiron 3847 desktop), I ONLY see the Microsoft (which is the original OS, and on a SEPARATE Hard drive from where I want to install Mac OS), ZERO option for installing the OSX Catalina! Please SEE PICTURE link: https://imgur.com/a/FnLB2Q9   I'm a beginner, but I tried to google my problem. The answers were either incomplete, hard for me to understand and put into action, or were outdated and applied to older OSXs. I appreciate any help in diagnosing and solving this problem!   Clover USB specs OS installer used: Catalina (10.15) Clover revision: 5103 Kexts included: ATH9KFixup.kext AppleALC.kext Lilu.kext RealtekRTL8111.kext USBInjectAll.kext VirtualSMC.kext WhateverGreen.kext config.plist: see attached ------------------------------------------ Target Desktop specs: Dell Inspiron 3847 (64 bit) CPU: Intel Core i5-4460, 3.2 GHz, 4 cores Architecture: Haswell GPU: Intel HD 4600 Motherboard: Dell 088DT1 (version A01) Chipset: Intel H81 Install method: with USB, configured with Clover, 100% following Plain Vanilla guide for Desktops RAM: 12 GB, 2 slots Hard drive for installation: SATA HDD 4TB, by HGST LAN: RTL8111/8168/8411 WLAN: AR9565 (atheros) Audio: Realtek ALC661 (not 100% sure this is correct)   ------------------------------------ Attached:
      Screenshot of Clover installer not showing the Mac OSX option
      config.plist of my installer USB
      Clover_Install_Log.txt (not sure if this is relevant)   THANK YOU VERY MUCH!     config.plist
      Clover_Install_Log.txt
    • By Simon's InsaneMac
      Hi, I'm kind of lost when scrolling to Clover Configurator, so I decided to use an EFI from the web and just configure the most basic stuff. But that sadly didn't work, im always getting the attached screen IMG_0054.HEIC (and I don't know whether all the errors are listed, as I can't scroll). 
      Anyways I thought it'd be better to do a custom setup. Can anyone give me some help with what to choose in the settings? Here's my rig:
      i7 8700k
      Asus z370-G (Rog Strix)
      gtx 1060 6gb
      samsung ssd (SATA)
      WD hard drive
       
      Your help would be much appreciated!
    • By kylon
      A big thanks to wegface for teaching me a lot of things.
       
       
      Tested on Catalina 10.15.4 and Clover EFI 5104 (Catalina Patcher)
       
      Not Working:
      - realtek sd card reader (pm me if you have a fix)
       
      Notes:
      **CPU patches are disabled, if you are using a locked BIOS you must enable them**
       
      Clover EFI:
      - Install it in UEFI Mode and change your hdd partition table to GPT.
      - You will be able to install ANY OS in EFI mode, even if this pc does not support EFI at all! (No guide available for this)
       
      You will need:
      My unlocked BIOS (OPTIONAL) (here) Latest Clover config from CCE Bank (here) (asus k53sj-kylon) Rehabman Voodoo PS2 Controller (here) acidanthera AppleALC (here) acidanthera Lilu (here) acidanthera VirtualSMC (here) acidanthera SMCBatteryManager (here) acidanthera SMCLightSensor (here) acidanthera WhateverGreen (here) Mieze Realtek RTL8111 (here)
    • By Rohan20
      Opencore is running really really slow on Catalina 10.15.4. So It was running perfectly before I put the ssdt-pnlf for enabling Brightness control. it is running really slow and I verified my config with the sanity checker and its all correct. can someone please help. I am attaching my oc folder.

       
      https://www.dropbox.com/s/drkek0eaz19ina5/OC.zip?dl=0
       
×