vinc3m1 / mac-pixel-clock-patch

36 stars 26 forks source link

Latest Beta8 #3

Open JasonBelec opened 10 years ago

JasonBelec commented 10 years ago

Been working thru this one, and I can't seem to get the change to take hold. Stopped hanging on reboot with my last attempt but either I'm misunderstanding your instructions or something else has changed. I've added the new values, restarted and I do reboot now properly but still no 4K. Really want my Seiki 50" rocking Yosemite!! ;)

Maybe someone will figure out what I'm doing wrong.

Floris497 commented 10 years ago

yap made it today:

iokit_md5_10_10_BETA_8=1fe4ef08632ca0e685beb622330ec027

# not sure if this code sigend md5 will be the same on every system
iokit_md5_10_10_BETA_8_patched=ef33316712e303473c20c6eddf2becf1

if [ "$iokit_md5_current" = "$iokit_md5_10_10_BETA_8" ]; then
    echo "Detected unpatched IOKit on 10.10 Beta 8, patching."
    sudo perl -i.bak -pe '$before = qr"\x0F\x85\x9E\x03\x00\x00"s;s/$before/\xE9\x83\x03\x00\x00\x90/g' /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    sudo touch /System/Library/Extensions
    # Now appears to require re-signing, despite not being in CodeResources
    sudo codesign -f -s - /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
fi

(DON'T MISS THE CODE SIGN!)

Only working on my mac mini 2011 server, not on my macbook air 2013.. very sad.. it has a better gnu on paper..

This thing took me a few days to understand.. now i can do it in 5 min :) might be able to write a script that makes the patch

I will make a new patch with every new system update till apple just supports it. Double feelings, I hope this one is the same as yours and not :p

PS: Yosemite looks great on 4k, really hope you get it to work!!

JasonBelec commented 10 years ago

Thanks, BUT, no go.

We seem to have very different values as a result, I'd really like to sort this out here on my MacMini 2012 Server if your willing to walk me through things in more detail. I'm missing something obvious I'm sure. But since it does work for you at least on one machine, it should be workable.

Currently if I run the MD5 on IOKit I get...

874eacb08641fc6e5d85886313a180e6

Jason Belec Sent from my iPad

On Sep 21, 2014, at 1:28 PM, Floris497 notifications@github.com wrote:

yap made it today:

iokit_md5_10_10_BETA_8=1fe4ef08632ca0e685beb622330ec027

not sure if this code sigend md5 will be the same on every system

iokit_md5_10_10_BETA_8_patched=ef33316712e303473c20c6eddf2becf1

if [ "$iokit_md5_current" = "$iokit_md5_10_10_BETA_8" ]; then echo "Detected unpatched IOKit on 10.10 Beta 8, patching." sudo perl -i.bak -pe '$before = qr"\x0F\x85\x9E\x03\x00\x00"s;s/$before/\xE9\x83\x03\x00\x00\x90/g' /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit sudo touch /System/Library/Extensions

Now appears to require re-signing, despite not being in CodeResources

sudo codesign -f -s - /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit

fi Only working on my mac mini 2011 server, not on my macbook air 2013.. very sad.. it has a better gnu on paper..

This thing took me a few days to understand.. now i can do it in 5 min :) might be able to write a script that makes the patch

I will make a new patch with every new system update till apple just supports it. Double feelings, I hope this one is the same as yours and not :p

PS: Yosemite looks great on 4k, really hope you get it to work!!

— Reply to this email directly or view it on GitHub.

Floris497 commented 10 years ago

I'm on: OS X 10.10 (14A361c)

Is that an md5 hash of a altered IOKit? or the .bak file? If you do not code sign your mac will hang on the boot screen. If you give me more info I may be able to make a patch for you. You can send me your unchanged IOKit in some way. if you want.

JasonBelec commented 10 years ago

Ok, did a complete wipe, reinstall, updates, ran macPixelClockPatch with your fixes.

Updated IOKit and MD5 now matches yours. :)

Nothing about Nvidia driver though.

Restart does not offer 4K. :)

Ideas?

Jason Belec Sent from my "It's an iPod, a Phone, and an Internet Device..."

On Sep 22, 2014, at 1:38 AM, Floris497 notifications@github.com wrote:

I'm on: OS X 10.10 (14A361c)

Is that an md5 hash of a altered IOKit? or the .bak file? If you do not code sign your mac will hang on the boot screen. If you give me more info I may be able to make a patch for you. You can send me your unchanged IOKit in some way. if you want.

— Reply to this email directly or view it on GitHub.

Floris497 commented 10 years ago

Hm, you have an nvidia card.. no idea how to alter those drivers.. did you use switchXRes to add new resolutions?

can't think of anything else..

JasonBelec commented 10 years ago

Sorry head not attached. HD4000

Jason Belec Sent from my "It's an iPod, a Phone, and an Internet Device..."

On Sep 22, 2014, at 11:05 AM, Floris497 notifications@github.com wrote:

Hm, you have an nvidia card.. no idea how to alter those drivers.. did you use switchXRes to add new resolutions?

can't think of anything else..

— Reply to this email directly or view it on GitHub.

Floris497 commented 10 years ago

What does not work? it fails or it does not what you expect? Do you use display port or hdmi? i have not tried hdmi yet on my mini 2011 Server (HD3000)

Since this does not work on my macbook air 2013 HD5000 i guess there is something else disabling the resolutions.. but i find it weird that an older machine is capable of showing 4k. and my theory that a laptop might not be able to do it is busted if your mac mini does not support..

JasonBelec commented 10 years ago

No 4K under 10.10 (works under 10.9.4, 10.9.5).

Yes I use an active adapter out through Thunderbolt.

Yes this is weird. Also very interesting.

Jason Belec Sent from my "It's an iPod, a Phone, and an Internet Device..."

On Sep 22, 2014, at 5:15 PM, Floris497 notifications@github.com wrote:

What does not work? it fails or it does not what you expect? Do you use display port or hdmi? i have not tried hdmi yet on my mini 2011 Server (HD3000)

Since this does not work on my macbook air 2013 HD5000 i guess there is something else disabling the resolutions.. but i find it weird that an older machine is capable of showing 4k. and my theory that a laptop might not be able to do it is busted if your mac mini does not support..

— Reply to this email directly or view it on GitHub.

Floris497 commented 10 years ago

Hm.. not sure how this can happen.. use an HDMI to hdmi cable that might work. I get 30Hz over HDMI and 40Hz over Mini-Display Port (Thunderbolt) to Display Port..

Can't think of anything else.. I hope they don't actively disable resolutions..

JasonBelec commented 10 years ago

Tried those configurations. Glad its working fir you. :)

Will continue poking around, thanks for the help, will keep you informed if I can figure out anything to get it working like 10.9.x does. ;)

Jason Belec Sent from my iPad

On Sep 23, 2014, at 3:22 AM, Floris497 notifications@github.com wrote:

Hm.. not sure how this can happen.. use an HDMI to hdmi cable that might work. I get 30Hz over HDMI and 40Hz over Mini-Display Port (Thunderbolt) to Display Port..

Can't think of anything else.. I hope they don't actively disable resolutions..

— Reply to this email directly or view it on GitHub.

JasonBelec commented 10 years ago

got this working for 10.9.5? Trying a fresh install...

JasonBelec commented 10 years ago

hhmmmm seems it doesn't matter, it just works, must think its 10.9.4. ;)

minkowsky commented 10 years ago

It works on 10.9.5. But there is a flickering horizontal bar in middle of the screen, and the mouse cursor becomes square.

JasonBelec commented 10 years ago

Log out and back in and you should be fine.

Now if we could just get 10.10 working. ;)