Jump to content
t3ch

ScreenResolution and Serial

Recommended Posts

  • Administrators
Quote

<key>PciRoot(0x0)/Pci(0x2,0x0)</key>
            <dict>
                <key>AAPL,ig-platform-id</key>
                <data>AAAWGQ==</data>
                <key>framebuffer-fbmem</key>
                <data>AACQAA==</data>
                <key>framebuffer-patch-enable</key>
                <data>AQAAAA==</data>
                <key>framebuffer-stolenmem</key>
                <data>AAAwAQ==</data>
            </dict>

 

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill¬†[email protected]

BTC 1BDzsV4bw3DVCiffFAeNKsdEzqkPXNVrXR

ETH BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9

BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115

USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9

USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ

PicPay @danielnmaldonado

PiX¬†@[email protected]

Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

hey. to add or change this in config.plist ok will try.

but normaly i change anything i stuck on loading with url:
www.apple.com/mac/support

here is script if anyone like to play more.. :)
it change all what is required.. but when i boot like i say always this url.. :x

 

import xml.etree.ElementTree as ET # https://docs.python.org/3/library/xml.etree.elementtree.html
import json
import re

#--
fromDir = "/Users/t3ch/EFI/EFI/OC/config.plist"
tree    = ET.parse(fromDir) #.getroot()
root    = tree.getroot()
#
config = [
    {
        "searchKey":"SystemSerialNumber",
        "searchReplace":"C02QHAZZGG7L",
    },
    {
        "searchKey":"SystemUUID",
        "searchReplace":"E9C67D0E-9EC8-436D-947D-C5D6F3202E84",
    },
    {
        "searchKey":"SystemProductName",
        "searchReplace":"iMac17,1",
    },
    {
        "searchKey":"MLB",
        "searchReplace":"C02540306CDGPF71M",
    }
]
#
log = []

#--
#
def match(rgx,txt):
    x = re.match(rgx, txt)
    if x:
        return True
    return False
#
def searchKey(name):
    global config
    #
    at=-1
    #
    for o in config:
        at+=1
        if o["searchKey"]==name:
            return at
    return False

#
def doTheJob():
    global config, log, root
    print("\nStarting PART 1")
    cnt    = 0
    checked = [] # for step2
    waiting = [root,]
    # (step1) - Loop trough config.plist and find - modify specific keys - values defined in global config array/object
    while len(waiting):
        #print("Debug len(waiting): {}".format(len(waiting)))
        nextOf = -1
        o      = None
        roots = waiting.pop(0)
        for elm in roots:
            #print("{}.) tag: {} => {}".format( cnt, elm.tag, elm.text ))
            
            #
            tmp = searchKey( elm.text )
            if tmp >= 0 and tmp is not False:
                o = config[tmp]
                print("{}.) Replacing({}): {} = {}".format( cnt, tmp, o["searchKey"], elm.text ))
                o["keyAt"]    = tmp
                o["cntAt"]    = cnt
                nextOf = cnt
            elif nextOf+1==cnt and o!=None:
                print("{}.) Replacing: {} for {}".format( cnt, elm.text, o["searchReplace"] ))
                #
                log.append( {
                    "searchKey":o["searchKey"],
                    "searchReplace":o["searchReplace"],
                    "modified":elm.text,
                    "keyAt":o["keyAt"],
                    "cntAt":cnt,
                } )
                #
                elm.text = o["searchReplace"]
                #
                nextOf = -1
                o      = None
            #elif elm.text is None or elm.text=="":
            #    print("Setting empty on tag: {}".format(elm.tag))
            #    elm.text = ""
            cnt+=1
            waiting.append( elm )
    
    print("\nStarting PART 2")
    cntof=0
    # (step2) - Loop trough global log aka SEARCH & DESTROY :)
    for elm in log:
        x = elm["modified"] # modified value we search & destroy
        r = elm["searchReplace"] # modified value we search & destroy
        if x not in checked:
            checked.append(x)
            # Loop trough all values and try find and modify strings that contain values that have been replaced.
            print("Searching for value: {}".format(x))
            #
            cnt=0
            waiting = [root,]
            while len(waiting):
                #
                roots = waiting.pop(0)
                for elm1 in roots:
                    #print("{}/{}.) tag: {} => {}".format( cnt,cntof, elm1.tag, elm1.text ))
                    if match(".*{}.*".format(x),"{}".format(elm1.text)):
                        print("Fixing at {}/{} value {}".format(cnt,cntof,elm1.text))
                        tmp = elm1.text.replace(x,r)
                        elm1.text = tmp
                    waiting.append( elm1 )
                    cnt+=1
            cntof+=1
    

#print("mem.len: {}".format( len(mem) ))
#--
doTheJob()
#--
print("Displaying log: ")
print(json.dumps( log ))
#
tree.write("fixed.plist")
#tree.write("fixed.plist",method='html')
 

man where to add pciroot?
under:
- ACPI

- Booter

- DeviceProperties

- Kernel

- Misc

- NVRAM

- PlatformInfo

- UEFI

?

under DeviceProperties ok if i will manage this man.. :x :)

so you think this should work:

    <key>DeviceProperties</key>
    <dict>
        <key>Add</key>
        <dict>
        <key>PciRoot(0x0)/Pci(0x2,0x0)</key>
            <dict>
                <key>AAPL,ig-platform-id</key>
                <data>AAAWGQ==</data>
                <key>framebuffer-fbmem</key>
                <data>AACQAA==</data>
                <key>framebuffer-patch-enable</key>
                <data>AQAAAA==</data>
                <key>framebuffer-stolenmem</key>
                <data>AAAwAQ==</data>
            </dict>
        </dict>
        <key>Delete</key>
        <dict/>
    </dict>

 

?

have added it and restarted without nvram and it booted good but resolution can not change from 1024 to 1240x...

and maybe this helps

% ./gfxutil

00:00.0 8086:1904 /PCI0@0/MCHC@0 = PciRoot(0x0)/Pci(0x0,0x0)

00:02.0 8086:1916 /PCI0@0/IGPU@2 = PciRoot(0x0)/Pci(0x2,0x0)

00:14.0 8086:9d2f /PCI0@0/XHC@14 = PciRoot(0x0)/Pci(0x14,0x0)

00:14.2 8086:9d31 /PCI0@0/MALD@14,2 = PciRoot(0x0)/Pci(0x14,0x2)

00:16.0 8086:9d3a /PCI0@0/IMEI@16 = PciRoot(0x0)/Pci(0x16,0x0)

00:17.0 8086:9d03 /PCI0@0/SAT0@17 = PciRoot(0x0)/Pci(0x17,0x0)

00:1c.0 8086:9d10 /PCI0@0/RP01@1C = PciRoot(0x0)/Pci(0x1C,0x0)

00:1c.4 8086:9d14 /PCI0@0/RP05@1C,4 = PciRoot(0x0)/Pci(0x1C,0x4)

00:1f.3 8086:9d70 /PCI0@0/HDEF@1F,3 = PciRoot(0x0)/Pci(0x1F,0x3)

00:1c.5 8086:9d15 /PCI0@0/RP06@1C,5 = PciRoot(0x0)/Pci(0x1C,0x5)

00:1d.0 8086:9d18 /PCI0@0/RP09@1D = PciRoot(0x0)/Pci(0x1D,0x0)

00:1f.0 8086:9d48 /PCI0@0/LPCB@1F = PciRoot(0x0)/Pci(0x1F,0x0)

00:1f.2 8086:9d21 /PCI0@0/PPMC@1F,2 = PciRoot(0x0)/Pci(0x1F,0x2)

00:1f.4 8086:9d23 /PCI0@0/SBUS@1F,4 = PciRoot(0x0)/Pci(0x1F,0x4)

01:00.0 1002:6900 /PCI0@0/RP01@1C/GFX0@0 = PciRoot(0x0)/Pci(0x1C,0x0)/Pci(0x0,0x0)

02:00.0 10ec:8168 /PCI0@0/RP05@1C,4/PXSX@0 = PciRoot(0x0)/Pci(0x1C,0x4)/Pci(0x0,0x0)

04:00.0 10ec:522a /PCI0@0/RP09@1D/PXSX@0 = PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)

03:00.0 8086:3165 /PCI0@0/RP06@1C,5/PXSX@0 = PciRoot(0x0)/Pci(0x1C,0x5)/Pci(0x0,0x0)

Edited by t3ch
Link to comment
Share on other sites

  • Administrators

5InolNs.png

-Donations-

PayPal HERE - Stripe HERE - Ko-Fi HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill¬†[email protected]

BTC 1BDzsV4bw3DVCiffFAeNKsdEzqkPXNVrXR

ETH BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9

BNB 0x10D1d656eCa00bD521f9b4A43B83098B8142e115

USDT BSC BEP20 0xb57cfdfa371fad1981910f0e8332409ab99f74d9

USDT TRC20 TUR6Z9AVS4AYzqPnULoHrfFvppRbhXmNbZ

PicPay @danielnmaldonado

PiX¬†@[email protected]

Problems with Paypal HERE

xcd5u2Y.png

Sign up for a Bybit account and claim exclusive rewards HERE

New ways to earn money with Linkvertise HERE

Link to comment
Share on other sites

holaaa uuu  have managed screen resolution !!! have went comparing prepared folders and found solution so for me works this:

<key>PciRoot(0x0)/Pci(0x2,0x0)</key>
            <dict>
                <key>AAPL,ig-platform-id</key>
                <data>AADAhw==</data>
                <key>device-id</key>
                <data>FlkAAA==</data>
                <key>framebuffer-con1-alldata</key>
                <data>AQUJAAAIAACHAQAA</data>
                <key>framebuffer-con1-enable</key>
                <data>AQAAAA==</data>
                <key>framebuffer-con2-alldata</key>
                <string>&lt;02040a00 00080000 87010000&gt;</string>
                <key>framebuffer-con2-enable</key>
                <data>AQAAAA==</data>
                <key>framebuffer-fbmem</key>
                <data>AACQAA==</data>
                <key>framebuffer-patch-enable</key>
                <data>AQAAAA==</data>
                <key>framebuffer-stolenmem</key>
                <data>AAAwAQ==</data>
            </dict>

by adding these two args:

igfxonln=1 igfxagdc=0

have fixed hdmi. never was working.. oleee.! :)

 

and sound works by chaning bootarg alcid from 1 to 3 .. kul man!

Link to comment
Share on other sites

man. when you have time. for wifi and what is more interesting FTDIUsb .. thanks man. going to donate soon something more.

 

FTDI works too. have installed CP210x drivers but probably was bad cable. so wifi left and bluetooth.. when time :)¬†and one question. have noticed in general -> start app on launch there is Mickey1979 APP to start at startup. have removed it but why is there¬Ņ?

 

For ALL important is to disconnect all usb devices when installing or booting. or HDMI. normaly if i have HDMI connected boot dont work.

Another important thing is to disable sleep of disk if not work as should because you will land on black screen when goes to sleep.

 

and here is something on bootargs what have learned. good for all:
- alcid 1-3                   # Audio

- watchdog 0             # more here: https://developer.toradex.com/linux-bsp/how-to/linux-features/watchdog-linux/

- agdpmod=pikera    # Graphics. more here: https://github.com/acidanthera/bugtracker/issues/1807                      vit9696 # for intel and problems

- dk.e1000=0             # more here: https://www.reddit.com/r/hackintosh/comments/tf4hpy/psa_monterey_123_and_i225v_panics_use_bootarg/    e1000=0 - igfxonln=1                # hdmi, audio?, more here: https://www.tonymacx86.com/threads/screen-sleep-stopped-working-after-update-to-mac-os-catalina-10-15-4.294025/page-3

- igfxagdc=0              # hdmi, audio problems. ( + platform-id only (00001659 or 00001b59) ) more here: https://www.tonymacx86.com/threads/intel-hd-630-not-working.321200/page-3

- uia_exclude=USR1;USR2 # USB3, more here: https://www.insanelymac.com/forum/topic/344719-what-is-the-right-way-to-get-usb-30-working-with-opencore/

 

AND Recommend for olarila.com to prevent paste of html into posts.*

Edited by t3ch
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.





×
  • Create New...