corpnewt / ProperTree

Cross platform GUI plist editor written in python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When I reopen my config.plist after saving and exiting, some properties disappear

macap68 opened this issue · comments

To reopen the config.plist I created:
ctrl+o to select OC folder and the config.plist
crtl+r to select OC folder and load current snapshot (is correct?)
After that under UEFI there is only Drivers property, but there are a lot of other for example APFS, AppleInput, Audio etc.

What's wrong?
Platform w10, Pyton 3.10.7

Thanks in advance

Can you send the config.plist before and after snapshotting? It sounds like you didn't open it before running the OC Snapshot - as that only touches ACPI - Add, Kernel - Add, Misc - Tools, and UEFI - Drivers. It will not affect anything else.

-CorpNewt

This is the config.plist saved after all changes

ACPI Add Comment SSDT-EC-LAPTOP.aml Enabled Path SSDT-EC-LAPTOP.aml Comment SSDT-GPI0.aml Enabled Path SSDT-GPI0.aml Comment SSDT-HPET.aml Enabled Path SSDT-HPET.aml Comment SSDT-PLUG-DRTNIA.aml Enabled Path SSDT-PLUG-DRTNIA.aml Comment SSDT-PNLF.aml Enabled Path SSDT-PNLF.aml Comment SSDT-USBX.aml Enabled Path SSDT-USBX.aml Delete All Comment Delete CpuPm Enabled OemTableId Q3B1UG0AAAA= TableLength 0 TableSignature U1NEVA== All Comment Delete Cpu0Ist Enabled OemTableId Q3B1MElzdAA= TableLength 0 TableSignature U1NEVA== Patch Base BaseSkip 0 Comment Replace one byte sequence with another Count 0 Enabled Find ESIzRA== Limit 0 Mask OemTableId Replace RDMiEQ== ReplaceMask Skip 0 TableLength 0 TableSignature Base \_SB.PCI0.LPCB.HPET BaseSkip 0 Comment HPET _CRS to XCRS Count 1 Enabled Find X0NSUw== Limit 0 Mask OemTableId Replace WENSUw== ReplaceMask Skip 0 TableLength 0 TableSignature Quirks FadtEnableReset NormalizeHeaders RebaseRegions ResetHwSig ResetLogoStatus SyncTableIds Booter MmioWhitelist Address 4275159040 Comment Haswell: SB_RCBA is a 0x4 page memory region, containing SPI_BASE at 0x3800 (SPI_BASE_ADDRESS) Enabled Address 4278190080 Comment Generic: PCI root is a 0x1000 page memory region used by some types of firmware Enabled Patch Arch Any Comment macOS to hacOS Count 1 Enabled Find bWFjT1M= Identifier Apple Limit 0 Mask Replace aGFjT1M= ReplaceMask Skip 0 Quirks AllowRelocationBlock AvoidRuntimeDefrag DevirtualiseMmio DisableSingleUser DisableVariableWrite DiscardHibernateMap EnableSafeModeSlide EnableWriteUnprotector ForceBooterSignature ForceExitBootServices ProtectMemoryRegions ProtectSecureBoot ProtectUefiServices ProvideCustomSlide ProvideMaxSlide 0 RebuildAppleMemoryMap UEFI APFS EnableJumpstart GlobalConnect HideVerbose JumpstartHotPlug MinDate -1 MinVersion -1 AppleInput AppleEvent Builtin CustomDelays GraphicsInputMirroring KeyInitialDelay 50 KeySubsequentDelay 5 PointerPollMask -1 PointerPollMax 80 PointerPollMin 10 PointerSpeedDiv 1 PointerSpeedMul 1 Audio AudioCodec 0 AudioDevice PciRoot(0x0)/Pci(0x1b,0x0) AudioOutMask 1 AudioSupport DisconnectHda MaximumGain -15 MinimumAssistGain -30 MinimumAudibleGain -55 PlayChime Auto ResetTrafficClass SetupDelay 0 ConnectDrivers Drivers Arguments Comment HfsPlus.efi Enabled LoadEarly Path HfsPlus.efi Arguments Comment OpenRuntime.efi Enabled LoadEarly Path OpenRuntime.efi Input KeyFiltering KeyForgetThreshold 5 KeySupport KeySupportMode Auto KeySwap PointerSupport PointerSupportMode ASUS TimerResolution 50000 Output ClearScreenOnModeSwitch ConsoleMode DirectGopRendering ForceResolution GopPassThrough Disabled IgnoreTextInGraphics ProvideConsoleGop ReconnectGraphicsOnConnect ReconnectOnResChange ReplaceTabWithSpace Resolution Max SanitiseClearScreen TextRenderer BuiltinGraphics UIScale 0 UgaPassThrough ProtocolOverrides AppleAudio AppleBootPolicy AppleDebugLog AppleEg2Info AppleFramebufferInfo AppleImageConversion AppleImg4Verification AppleKeyMap AppleRtcRam AppleSecureBoot AppleSmcIo AppleUserInterfaceTheme DataHub DeviceProperties FirmwareVolume HashServices OSInfo UnicodeCollation Quirks ActivateHpetSupport DisableSecurityPolicy EnableVectorAcceleration EnableVmx ExitBootServicesDelay 0 ForceOcWriteFlash ForgeUefiSupport IgnoreInvalidFlexRatio ReleaseUsbOwnership ReloadOptionRoms RequestBootVarRouting ResizeGpuBars -1 TscSyncTimeout 0 UnblockFsConnect ReservedMemory Address 268435456 Comment HD3000: IGPU memory corruption errata Enabled Size 268435456 Type Reserved Address 569344 Comment Fix black screen on wake from hibernation for Lenovo Thinkpad T490 Enabled Size 4096 Type RuntimeCode ResizeAppleGpuBars -1 SetupVirtualMap SignalAppleOS SyncRuntimePermissions DeviceProperties Add PciRoot(0x0)/Pci(0x2,0x0) AAPL,ig-platform-id BgAmCg== framebuffer-patch-enable AQAAAA== framebuffer-cursormem AACQAA== device-id EgQAAA== Delete Kernel Add Arch Any BundlePath Lilu.kext Comment Lilu.kext Enabled ExecutablePath Contents/MacOS/Lilu MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath RealtekRTL8111.kext Comment RealtekRTL8111.kext Enabled ExecutablePath Contents/MacOS/RealtekRTL8111 MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath USBInjectAll.kext Comment USBInjectAll.kext Enabled ExecutablePath Contents/MacOS/USBInjectAll MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath UTBDefault.kext Comment UTBDefault.kext Enabled ExecutablePath MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VirtualSMC.kext Comment VirtualSMC.kext Enabled ExecutablePath Contents/MacOS/VirtualSMC MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooPS2Controller.kext Comment VoodooPS2Controller.kext Enabled ExecutablePath Contents/MacOS/VoodooPS2Controller MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooRMI.kext Comment VoodooRMI.kext Enabled ExecutablePath Contents/MacOS/VoodooRMI MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooSMBus.kext Comment VoodooSMBus.kext Enabled ExecutablePath Contents/MacOS/VoodooSMBus MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath WhateverGreen.kext Comment WhateverGreen.kext Enabled ExecutablePath Contents/MacOS/WhateverGreen MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooRMI.kext/Contents/PlugIns/RMISMBus.kext Comment RMISMBus.kext Enabled ExecutablePath Contents/MacOS/RMISMBus MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooRMI.kext/Contents/PlugIns/VoodooInput.kext Comment VoodooInput.kext Enabled ExecutablePath Contents/MacOS/VoodooInput MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooPS2Controller.kext/Contents/PlugIns/VoodooInput.kext Comment VoodooInput.kext Enabled ExecutablePath Contents/MacOS/VoodooInput MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext Comment VoodooPS2Keyboard.kext Enabled ExecutablePath Contents/MacOS/VoodooPS2Keyboard MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Mouse.kext Comment VoodooPS2Mouse.kext Enabled ExecutablePath Contents/MacOS/VoodooPS2Mouse MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Trackpad.kext Comment VoodooPS2Trackpad.kext Enabled ExecutablePath Contents/MacOS/VoodooPS2Trackpad MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooI2C.kext/Contents/PlugIns/VoodooGPIO.kext Comment VoodooGPIO.kext Enabled ExecutablePath Contents/MacOS/VoodooGPIO MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooI2C.kext/Contents/PlugIns/VoodooI2CServices.kext Comment VoodooI2CServices.kext Enabled ExecutablePath Contents/MacOS/VoodooI2CServices MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooI2C.kext/Contents/PlugIns/VoodooInput.kext Comment VoodooInput.kext Enabled ExecutablePath Contents/MacOS/VoodooInput MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath AppleALC.kext Comment AppleALC.kext Enabled ExecutablePath Contents/MacOS/AppleALC MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath BlueToolFixup.kext Comment BlueToolFixup.kext Enabled ExecutablePath Contents/MacOS/BlueToolFixup MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath BrightnessKeys.kext Comment BrightnessKeys.kext Enabled ExecutablePath Contents/MacOS/BrightnessKeys MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath ECEnabler.kext Comment ECEnabler.kext Enabled ExecutablePath Contents/MacOS/ECEnabler MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath SMCBatteryManager.kext Comment SMCBatteryManager.kext Enabled ExecutablePath Contents/MacOS/SMCBatteryManager MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath SMCLightSensor.kext Comment SMCLightSensor.kext Enabled ExecutablePath Contents/MacOS/SMCLightSensor MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath SMCProcessor.kext Comment SMCProcessor.kext Enabled ExecutablePath Contents/MacOS/SMCProcessor MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath SMCSuperIO.kext Comment SMCSuperIO.kext Enabled ExecutablePath Contents/MacOS/SMCSuperIO MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooI2C.kext Comment VoodooI2C.kext Enabled ExecutablePath Contents/MacOS/VoodooI2C MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooI2CHID.kext Comment VoodooI2CHID.kext Enabled ExecutablePath Contents/MacOS/VoodooI2CHID MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooI2CSynaptics.kext Comment VoodooI2CSynaptics.kext Enabled ExecutablePath Contents/MacOS/VoodooI2CSynaptics MaxKernel MinKernel PlistPath Contents/Info.plist Arch Any BundlePath VoodooRMI.kext/Contents/PlugIns/RMII2C.kext Comment RMII2C.kext Enabled ExecutablePath Contents/MacOS/RMII2C MaxKernel MinKernel PlistPath Contents/Info.plist Block Arch Any Comment Enabled Identifier com.apple.driver.AppleTyMCEDriver MaxKernel MinKernel Strategy Disable Emulate Cpuid1Data Cpuid1Mask DummyPowerManagement MaxKernel MinKernel Force Arch Any BundlePath System/Library/Extensions/IONetworkingFamily.kext Comment Enabled ExecutablePath Contents/MacOS/IONetworkingFamily Identifier com.apple.iokit.IONetworkingFamily MaxKernel 13.99.99 MinKernel PlistPath Contents/Info.plist Patch Arch Any Base __ZN8AppleRTC18setupDateTimeAlarmEPK11RTCDateTime Comment Disable RTC wake scheduling Count 1 Enabled Find Identifier com.apple.driver.AppleRTC Limit 0 Mask MaxKernel MinKernel 19.0.0 Replace ww== ReplaceMask Skip 0 Arch Any Base _AcpiOsVprintf Comment Disable ACPI logging Count 0 Enabled Find Identifier com.apple.driver.AppleACPIPlatform Limit 0 Mask MaxKernel 18.5.0 MinKernel 18.5.0 Replace ww== ReplaceMask Skip 0 Arch x86_64 Base __ZN11BCM5701Enet14getAdapterInfoEv Comment Broadcom BCM57785 patch Count 1 Enabled Find 6AAA//9miYMABQAA Identifier com.apple.iokit.AppleBCM5701Ethernet Limit 0 Mask /wAA//////////// MaxKernel 19.9.9 MinKernel Replace uLQWAABmiYMABQAA ReplaceMask Skip 0 Arch x86_64 Base _panic Comment Send panic string to serial port Count 1 Enabled Find Identifier kernel Limit 0 Mask MaxKernel MinKernel Replace MfaKD4TJdQT/xrEKZrr9A+yoIHT7Zrr4A4jI7kj/x4X2dN/r/g== ReplaceMask Skip 0 Arch x86_64 Base _kernel_debug_string_early Comment Send early prints to serial port Count 1 Enabled Find Identifier kernel Limit 0 Mask MaxKernel MinKernel Replace MfaKD4TJdQT/xrEKZrr9A+yoIHT7Zrr4A4jI7kj/x4X2dN/D ReplaceMask Skip 0 Arch x86_64 Base _disable_serial_output Comment Enable early serial output on RELEASE kernel Count 1 Enabled Find Identifier kernel Limit 0 Mask MaxKernel MinKernel Replace AA== ReplaceMask Skip 0 Arch x86_64 Base _vstart Comment Print K and dead loop Count 1 Enabled Find Identifier kernel Limit 0 Mask MaxKernel MinKernel Replace sUtmuv0D7KggdPtmuvgDiMjusQpmuv0D7KggdPtmuvgDiMju6/4= ReplaceMask Skip 0 Arch x86_64 Base _vstart Comment Early reboot Count 1 Enabled Find Identifier kernel Limit 0 Mask MaxKernel MinKernel Replace McCwBrr5DAAA7uv+ ReplaceMask Skip 0 Arch x86_64 Base _early_random Comment SurPlus v1 - PART 1 of 2 - Patch read_erandom (inlined in _early_random) Count 1 Enabled Find AHQjSIs= Identifier kernel Limit 800 Mask MaxKernel 21.1.0 MinKernel 20.4.0 Replace AOsjSIs= ReplaceMask Skip 0 Arch x86_64 Base _register_and_init_prng Comment SurPlus v1 - PART 2 of 2 - Patch register_and_init_prng Count 1 Enabled Find ukgBAAAx9g== Identifier kernel Limit 256 Mask MaxKernel 21.1.0 MinKernel 20.4.0 Replace ukgBAADrBQ== ReplaceMask Skip 0 Quirks AppleCpuPmCfgLock AppleXcpmCfgLock AppleXcpmExtraMsrs AppleXcpmForceBoost CustomPciSerialDevice CustomSMBIOSGuid DisableIoMapper DisableLinkeditJettison DisableRtcChecksum ExtendBTFeatureFlags ExternalDiskIcons ForceAquantiaEthernet ForceSecureBootScheme IncreasePciBarSize LapicKernelPanic LegacyCommpage PanicNoKextDump PowerTimeoutKernelPanic ProvideCurrentCpuInfo SetApfsTrimTimeout -1 ThirdPartyDrives XhciPortLimit Scheme CustomKernel FuzzyMatch KernelArch Auto KernelCache Auto Misc BlessOverride Boot ConsoleAttributes 0 HibernateMode None HideAuxiliary LauncherOption Disabled LauncherPath Default PickerAttributes 17 PickerAudioAssist PickerMode Builtin PickerVariant Auto PollAppleHotKeys ShowPicker TakeoffDelay 0 Timeout 5 Debug AppleDebug ApplePanic DisableWatchDog DisplayDelay 0 DisplayLevel 2147483650 LogModules * SysReport Target 67 Entries Arguments Auxiliary Comment Not signed for security reasons Enabled Flavour Auto Name CustomOS Path PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/NVMe(0x1,11-22-33-44-55-66-77-88)/HD(1,GPT,00000000-0000-0000-0000-000000000000,0x800,0x64000)/\EFI\BOOT\BOOTX64.EFI TextMode Security AllowSetDefault ApECID 0 AuthRestart BlacklistAppleUpdate DmgLoading Signed EnablePassword ExposeSensitiveData 6 HaltLevel 2147483648 PasswordHash PasswordSalt ScanPolicy 0 SecureBootModel Default Vault Optional Serial Init Override Tools Arguments Auxiliary Comment OpenShell.efi Enabled Flavour Auto FullNvramAccess Name OpenShell.efi Path OpenShell.efi RealPath TextMode NVRAM Add 4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14 DefaultBackgroundColor AAAAAA== 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102 rtc-blacklist 7C436110-AB2A-4BBB-A880-FE41995C9F82 #INFO (prev-lang:kbd) en:252 (ABC), set 656e3a323532 ForceDisplayRotationInEFI 0 SystemAudioVolume Rg== boot-args -v keepsyms=1 debug=0x100 alcid=1 csr-active-config AAAAAA== prev-lang:kbd run-efi-updater No Delete 4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14 DefaultBackgroundColor 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102 rtc-blacklist 7C436110-AB2A-4BBB-A880-FE41995C9F82 boot-args ForceDisplayRotationInEFI LegacyOverwrite LegacySchema 7C436110-AB2A-4BBB-A880-FE41995C9F82 EFILoginHiDPI EFIBluetoothDelay LocationServicesEnabled SystemAudioVolume SystemAudioVolumeDB SystemAudioVolumeSaved bluetoothActiveControllerInfo bluetoothInternalControllerInfo flagstate fmm-computer-name fmm-mobileme-token-FMM fmm-mobileme-token-FMM-BridgeHasAccount nvda_drv prev-lang:kbd 8BE4DF61-93CA-11D2-AA0D-00E098032B8C Boot0080 Boot0081 Boot0082 BootNext BootOrder WriteFlash PlatformInfo Automatic CustomMemory Generic AdviseFeatures MLB C02631902GUGF2CJC MaxBIOSVersion ProcessorType 0 ROM sJ+6NUDa SpoofVendor SystemMemoryStatus Auto SystemProductName MacBookPro11,5 SystemSerialNumber C02S5HYWG85Y SystemUUID 1D45DEE4-DC9D-4837-ABF1-74082F0BFC8C UpdateDataHub UpdateNVRAM UpdateSMBIOS UpdateSMBIOSMode Create UseRawUuidEncoding as you can see there is a section like APFS under UEFI where I set Mindate and MinVersin to -1, but I can't see them with ProperTree but I see only Drivers ![image](https://user-images.githubusercontent.com/79022250/192349686-c48ef214-60bd-401c-bfa2-6fe23b8c8275.png)

Thanks in advance

Yeah - that list is unreadable. Can you send the actual config files before and after?

If you haven't saved the resulting config after running OC Snapshot - you could just upload it here, then snapshot, then save the results as config-snapshot.plist or similar and upload that as well.

Hey there - sorry, I'm still not seeing the config.plists in your messages. Looks like you may be replying by email instead of in the issue thread on github directly? You could upload both configs to something like pastebin and then send the links here.

-CorpNewt

config_before_snapshot.plist.txt
config_after_snapshot.plist.txt

Sorry, I renamed both file adding .txt extension.
Let me know if you are able to read them

Alright - the issue here is that your UEFI section is in the wrong place. It should be at config.plist -> UEFI, but in your before config, it's at config.plist -> Booter -> Quirks -> UEFI per the following screenshot:

image

ProperTree is adding the information for UEFI -> Drivers into the right place - but the original config is not organized correctly, and as such, it's not merging the info as you'd expect. To fix it, first move your UEFI key to the root of the config (so it's at config.plist -> UEFI), and then run the OC Snapshot and it should work as expected.

-CorpNewt

Okay, I agree with you, but how did it go to the wrong place?
I started from Sample.plist in Opencore-0.8.5-Release and made the changes following the Opencore Install Guide
https://dortania.github.io/OpenCore-Install-Guide/config-laptop.plist/haswell.html#starting-point
Now I don't know if there could be other sections misaligned and create problems in the installation of the mac.
Should I double check all the sections or start from scratch?

ProperTree allows you to drag nodes around - I'm betting it was dragged there accidentally, and correcting it should be as simple as dragging it back to the proper location.

You can use OCConfigCompare or ocvalidate to check the structure of the config.plist against what OpenCore will expect, and let you know if there are any other structural issues.

-CorpNewt

Perfect, I'll do this and let you know!