Jump to content

Meowthra

Coders
  • Content Count

    189
  • Joined

  • Last visited

  • Days Won

    1

Meowthra last won the day on February 14 2015

Meowthra had the most liked content!

About Meowthra

  • Rank
    InsanelyMac Geek

Profile Information

  • Gender
    Male
  • Location
    Taiwan

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Meowthra

    Haswell GT1 Brightness fix

    for example: Intel HD Graphics Haswell GT1 0x0a06 ############################################# ### DSDT Patch: ############################################# into_all device label PNLF remove_entry; into definitionblock code_regex . insert begin Scope (_SB)\n {\n Device (PNLF)\n {\n Name (_ADR, Zero)\n Name (_HID, EisaId ("APP0002"))\n Name (_CID, "backlight")\n Name (_UID, 15)\n Name (_STA, 0x0B)\n }\n }\n end; # to avoid conflict with root scope PNLF into_all method code_regex Store\s+\(PNLF,\s+(.*)\) replaceall_matched begin Store(\\PNLF, %1) end; ############################################# ### Build IntelBacklight ############################################# Download Source: git clone https://github.com/RehabMan/OS-X-Intel-Backlight.git Patch Source: sed -i "" 's/0x0a168086/0x0a068086 0x0a168086/g' OS-X-Intel-Backlight/IntelBacklight/IntelBacklight-Info.plist Build with Xcode copy IntelBacklight.kext to /System/Library/Extensions/ sudo chown -R 0:0 /System/Library/Extensions/IntelBacklight.kext ############################################# ### Rebuild Kernel Caches ############################################# sudo rm -r /System/Library/Caches/* sudo rm -rf /System/Library/PrelinkedKernels/prelinkedkernel sudo touch /System/Library/Extensions/ sudo kextcache -a x86_64 -e ############################################# ### Display Color Profile ############################################# PRODUCT_NAME="Color LCD" VENDOR_DEC=$(ioreg -lw0 | grep DisplayVendorID | sed 's/.*= //g') PRODUCT_DEC=$(ioreg -lw0 | grep DisplayProductID | sed 's/.*= //g') VENDOR=$(printf "%x\n" $VENDOR_DEC) PRODUCT=$(printf "%x\n" $PRODUCT_DEC) if [ -d "/System/Library/Displays/Contents/Resources/Overrides" ]; then DISPLAYS_PATH=/System/Library/Displays/Contents/Resources/Overrides else DISPLAYS_PATH=/System/Library/Displays/Overrides fi sudo mkdir -p $DISPLAYS_PATH/DisplayVendorID-$VENDOR sudo sh -c "cat > $DISPLAYS_PATH/DisplayVendorID-$VENDOR/DisplayProductID-$PRODUCT << EOF <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>DisplayBacklight</key> <real>392.5</real> <key>DisplayBlueGamma</key> <real>1.269989013671875</real> <key>DisplayBluePointX</key> <real>0.1559906005859375</real> <key>DisplayBluePointY</key> <real>0.089996337890625</real> <key>DisplayBrightReflection</key> <real>389.30000000000001</real> <key>DisplayDarkReflection</key> <real>4.6950000000000003</real> <key>DisplayGammaChannels</key> <integer>3</integer> <key>DisplayGammaEntryCount</key> <integer>256</integer> <key>DisplayGammaEntrySize</key> <integer>2</integer> <key>DisplayGammaTable</key> <data> AAAAAQAEAAoAEgAcACgANgBGAFcAagCAAJQAqQDAANgA8QEMASgBRQFjAYIBowHEAecC CwIwAlcCggKvAt0DDAM9A3ADpAPZBBAESASBBLwE+AU2BXMFqwXfBhUGSwaCBrsG9Qcx B24HrgfvCDIIeAjACQwJWgmqCf4KVAqvCxMLeQvhDEwMuQ0qDZ0OEw6MDwkPiBAJEI4R FRGfEi0SvBNNE98UchUGFZoWLhbCF1cX7BiCGRkZsRpSGvobpBxQHP0drR5dHw8fwiB2 ISsh4CKWI04kBiS9JXQmLSbpJ6kobCkyKfsqySuaLG4tRS4fLvwv2zC9MYwyXTMyNAs0 6DXJNq83mjiJOXw6cjttPGk9aT5qP2ZATUE0QhpDAEPmRM5FtkahR45IfklzSmxLa0xv TXpOik+hULlR01LvVA1VLVZRV3dYoFnMWvtcLV1iXppf1WETYlNjmGTdZiJnZ2itafNr OmyDbcxvGHBmcbdzCnRhdbt3HXi6el18CH25f3CBK4LphKeGY4gcidOLh404jzGRbpPL lkmY45uJnimgsaMhpXmntqnirBSuTbCOstm1L7eSugG8fL8EwZbE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zxMmk35T1dQ11JmU/pVkVcmWLhaRVvKXUdevmAvYZxj CmR9ZfRnbWjqamlr6m1sbu5wcXH0c3d0+nZ9eBl5w3txfSJ+1YCHgjeD44WKhyuIx4pf i/KNgo8YkLGSTJPplYiXJ5jHmmacBZ2inz+g2qJ0pA6lp6dBqN6qfawercCvZLEJsrC0 VrX9t6S5S7ryvJm+QL/nwY/DHcSUxg/HjckPypXMHs2ozzLQvtJI09LVVtbY2FbZz9tE 3LTeId+F4OziWuPY5V/m6Ohu6ejrUuyv7fDvIPA88UPyNvMg8+30uvVy9hr2wvdh9+b4 bPjx+XT52vpA+qb7Dftz+8b8D/xX/KD86P0x/Xn9wv3x/h3+Sf51/qD+zP74/yT/UP97 /6f/0/// </data> <key>DisplayGreenGamma</key> <real>2.079986572265625</real> <key>DisplayGreenPointX</key> <real>0.3264923095703125</real> <key>DisplayGreenPointY</key> <real>0.5507965087890625</real> <key>DisplayLeakage</key> <real>0.49990000000000001</real> <key>DisplayLowestLevel</key> <real>2</real> <key>DisplayLowestMeasured</key> <real>0.69520000000000004</real> <key>DisplayProductID</key> <integer>$PRODUCT_DEC</integer> <key>DisplayProductName</key> <string>$PRODUCT_NAME</string> <key>DisplayRedGamma</key> <real>2.2899932861328125</real> <key>DisplayRedPointX</key> <real>0.582489013671875</real> <key>DisplayRedPointY</key> <real>0.343994140625</real> <key>DisplayVendorID</key> <integer>$VENDOR_DEC</integer> <key>DisplayWhitePointX</key> <real>0.3126983642578125</real> <key>DisplayWhitePointY</key> <real>0.3289947509765625</real> <key>IOGFlags</key> <integer>4</integer> <key>dmdg</key> <data> AAAAAg== </data> <key>scale-resolutions</key> <array> <data> AAAFVgAAAwAAAAAB </data> <data> AAAFQAAAAvQAAAAB </data> <data> AAAFAAAAAtAAAAAB </data> </array> </dict> </plist> EOF" save as Display-Profile.sh Run Script: chmod 755 ./Display-Profile.sh ./Display-Profile.sh Reboot Computer
  2. Meowthra

    AGPM Patch

    ##################################### ### AGPM X86PlatformPlugin ##################################### Clover New Version: <key>ACPI</key> <dict> <key>SSDT</key> <dict> <key>Generate</key> <dict> <key>PluginType</key> <true/> </dict> <key>PluginType</key> <string>1</string> </dict> </dict> or Using SSDT Clover setting: <key>ACPI</key> <dict> <key>DropTables</key> <array> <dict> <key>Signature</key> <string>SSDT</string> <key>TableId</key> <string>CpuPm</string> </dict> </array> </dict> SSDT: DefinitionBlock ("iASLoFN85L.aml", "SSDT", 1, "PmRef", "CpuPm", 0x00003000) { External (\_PR_.CPU0, DeviceObj) Scope (\_PR.CPU0) { Method (_DSM, 4, NotSerialized) { If (LEqual (Arg2, Zero)) { Return (Buffer (One) { 0x03 }) } Return (Package (0x02) { "plugin-type", One }) } } } Compile as SSDT.aml copy SSDT.aml to EFI/CLOVER/ACPI/patched/
  3. How to print IG debug log on OS X Mavericks ???
  4. sudo -s USER_NAME=$(id -u -nr 501) cat >> /private/etc/sudoers << EOF $USER_NAME ALL=(ALL) NOPASSWD: ALL EOF
  5. ########################################### ### DSDT FIX ########################################### # fix system_IRQ find Device (HPET) Device (HPET) { Name (_HID, EisaId ("PNP0103")) Name (_UID, Zero) Name (BUF0, ResourceTemplate () { // Insert IRQNoFlags() { 0, 8, 11, 15 } ########################################### ### Clover ########################################### mkdir -p $HOME/EFI sudo mount -t msdos /dev/disk0s1 $HOME/EFI open $HOME/EFI/EFI/CLOVER/config.plist Add To: <key>Devices</key> <dict> <key>Audio</key> <dict> <key>Inject</key> <integer>66</integer> </dict> </dict> ########################################### ### AppleHDA Patch ########################################### curl -O https://raw.githubusercontent.com/kalifans/Darwin/Driver/AppleHDA-ALC283-Patch.tar.gz tar zxvf AppleHDA-ALC283-Patch.tar.gz cd AppleHDA-ALC283-Patch # Patch for Mac OS X 10.8 - 10.14 ./patch-alc283.sh ########################################### ### Install VerbStub for hda-verb ########################################### curl -O https://raw.githubusercontent.com/kalifans/Darwin/Driver/VerbStub.tar.gz tar zxvf VerbStub.tar.gz cd VerbStub # cpoy VerbStub.kext to EFI/CLOVER/kexts/ mkdir -p $HOME/EFI sudo mount -t msdos /dev/disk0s1 $HOME/EFI sudo cp -r VerbStub.kext $HOME/EFI/EFI/CLOVER/kexts/ # or copy VerbStub.kext to /System/Library/Extensions/ sudo cp -r VerbStub.kext /System/Library/Extensions/ sudo chown -R 0:0 /System/Library/Extensions/VerbStub.kext # cppy hda-verb to /usr/bin/ sudo cp hda-verb /usr/bin/ sudo chmod 755 /usr/bin/hda-verb cd .. ########################################### ### Mic Int / Line In Auto Switch ########################################### curl -O https://raw.githubusercontent.com/kalifans/Darwin/Driver/ALC-LineIn-Switch.tar.gz tar zxvf ALC-LineIn-Switch.tar.gz cd ALC-LineIn-Switch sudo cp LineInSwitch /usr/bin/ sudo chmod 755 /usr/bin/LineInSwitch sudo chown 0:0 /usr/bin/LineInSwitch sudo cp com.realtek.LineInSwitch.plist /Library/LaunchAgents/ sudo chmod 644 /Library/LaunchAgents/com.realtek.LineInSwitch.plist sudo chown 0:0 /Library/LaunchAgents/com.realtek.LineInSwitch.plist launchctl load /Library/LaunchAgents/com.realtek.LineInSwitch.plist NOTE: Line In Node Switch Settings edit /usr/bin/LineInSwitch Headphone or Speaker Mode Check Default 10 Seconds Line In Node Check Interval efault 5 Seconds # Settings Headphone Node Check Interval (unit seconds) HEADPHONE_CHECK_INTERVAL="10" # Settings Line In Node Check Interval (unit seconds) LINEIN_CHECK_INTERVAL="5" Reboot Computer
  6. AR956X-10.13.6.tar.gz for MacOS 10.13 / 10.14
  7. ikariam Server Depends: MySql 5.0、Apache2 2.2 、PHP 5.2 # Build MySql 5.0 on Debian 2018 https://raw.githubusercontent.com/Mint-Fans/linux-package/build/Build-MySql-Linux.txt # Build Apache2 2.2 on Debian 2018 https://raw.githubusercontent.com/Mint-Fans/linux-package/build/Build-Apache-Linux.txt # Build PHP 5.2 on Debian 2018 https://raw.githubusercontent.com/Mint-Fans/linux-package/build/Build-PHP-Linux.txt # download ikariam game server https://mega.nz/#!LMVRFKIY!FhvdX5G6OJ7wu1V9IOEIODGNAhrDGF_ZscX1WF74ANU http://www.mediafire.com/file/bux5jv0s5j257lz/ikariam-v0.1.0-2015.tar.gz # install game server tar zxvf ikariam-v0.1.0-2015.tar.gz -C /var/www/html chmod -R 777 /var/www/html/application chmod -R 777 /var/www/html/install # enadle service sudo /etc/init.d/mysql start sudo /etc/init.d/apache2 start # create ikariam database DBNAME=ikariam sudo /usr/local/mysql/5.0/bin/mysql -u root -p -e "create database $DBNAME;" # initialization game server xdg-open http://localhost/install # start ikariam xdg-open http://localhost
  8. ikariam Server Depends: MySql 5.0、Apache2 2.2 、PHP 5.2 # Build MySql 5.0 on macOS 2018 https://raw.githubusercontent.com/kalifans/Darwin/build/Build-MySql-Darwin.txt # Build Apache2 2.2 on macOS 2018 https://raw.githubusercontent.com/kalifans/Darwin/build/Build-Apache-Darwin.txt # Build PHP 5.2 on macOS 2018 https://raw.githubusercontent.com/kalifans/Darwin/build/Build-PHP-Darwin.txt # download ikariam game server https://mega.nz/#!LMVRFKIY!FhvdX5G6OJ7wu1V9IOEIODGNAhrDGF_ZscX1WF74ANU http://www.mediafire.com/file/bux5jv0s5j257lz/ikariam-v0.1.0-2015.tar.gz # install game server tar zxvf ikariam-v0.1.0-2015.tar.gz -C /var/www/html chmod -R 777 /var/www/html/application chmod -R 777 /var/www/html/install # enadle service sudo mysql start sudo apache22 start # create ikariam database DBNAME=ikariam sudo /usr/local/mysql/5.0/bin/mysql -u root -p -e "create database $DBNAME;" # initialization game server open http://localhost/install # Start ikariam open http://localhost
  9. Meowthra

    Intel HD Graphics Haswell GT1 QE/CI 10.8-10.11

    OS X 10.12 or later Pentium and Celeron Unable Support Because OS X 10.12 and later Haswell OpenGL Driver Requires AVX Instructions So the Processor Must Support the AVX Instruction Set. Unless there is a Source code that can be Recompiled.
  10. Meowthra

    Opcode Emulator (OPEMU) Plug-in Project

    I want to make AVX / AVX2 128/256-bit emulator But I don't know how to add 256bit ymm register
  11. this is OPEMU for Lilu Plugin Used for Intel Pentium / Celeron or AMD old processor expansion instruction set Emulation usage: copy Lilu.kext & OpcodeEmulator.kext To /Volumes/EFI/EFI/CLOVER/kexts/Other/ Boot Arguments: -lilubeta -opemubeta The instruction set Emulation is not completed yet UPD: 2017/11/17 FIX kernel_trap UPD: 2017/11/18 add AVX(vpxor)/BMI2(shlx、sarx、shrx、mulx) Instruction Set OpcodeEmulator-Project.tar.gz OpcodeEmulator-AVX.tar.gz
  12. Meowthra

    Lilu — kext and process patcher

    If use a binary patch How to patch "Intel GPU acceleration DRM key / certificate handling code" ?
  13. Meowthra

    Lilu — kext and process patcher

    Intel Haswell Celeron Pentium too At 10.12.x / 10.13.x I found that Intel GLDriver (AppleIntelHD5000GraphicsGLDriver.bundle) contains a large number of VEX BMI2 Instruction Set 128-bit Version The Intel Celeron Pentium does not support the AVX/AVX2/BMI2 instruction set Although I've probably done OPEMU AVX addressing mode, But I do not want to recompile Kernel, Because Intel needs XCPM. Hope this OPEMU can be achieved in Lilu above. OPEMU-VEX.tar.gz
  14. MetalDevice for accelerator(0x325f): 0x7fb18fc27fe8 (MTLDevice: 0x0) IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PCE2@2/IOPP/GFX0@0/NVDA,Display-B@1/NVDA Assertion failed: (0 && "Attempting to get MTLTexture with no MTLDevice"), function GetMTLTexture, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreDisplay/CoreDisplay-81.5/CoreDisplay/Display/DisplaySurface.mm, line 498. Your graphics card simply can not be driven on OS X 10.13 OS X 10.13 does not support your video card The new version of OS X will continue to eliminate the old graphics support You may need reference nvidia driver development document And nvidia driver binary patch
  15. You are using the old Version OS X nvidia kext driver?
×