-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Will it work on post High Sierra macOS? #8
Comments
I did a little investigation: on the 2011 iMac, TDM does not go through the SMC, but is handled by Thunderbolt. Below show the console log when you enable/disable TDM. Here is a link that describes Thunderbolt paths: I guess you need some deep Thunderbolt know how to enable these video paths under linux. Any suggestions?
|
wait, I think @mwkchan said this work on his 2011 under linux tho so this method ought to have worked?! Also, what he was asking is whether there is a way to retrofit all these into the iMac that run later version of MacOS (e.g. Mojave/Catalina/Big Sur etc) which apple removed the TDM feature? @kgarrels when you did the investigation, did you run it under High Sierra or other Mac OS version? Any thought? |
good point - I assume the difference lies in "mid 2011" and "late 2011", you can see the difference in the video option: not sure though... my tests were under High Sierra, mid 2011 27'' imac, the relevant SMC registers do not exist on it. |
I have a mid-2010 27" here but I think it doesnt help on the thunderbolt situation that you encountered. However, I am also trying to see if it is possible to retrofit this in later version of the macos... From what I understand in the 2010 case, it seems like dpd (under mac os in High Sierra or older) and SmcDumpKey (under linux which Floe modified) are responsible for writing to the smc register and then it is the smc that do the actual switching... is that how you understand it? I wonder if i can just replace/drop in the dpd and dpaudiothru (which dpd launches) from high sierra into the later version of Mac OS to make this works... all guessing at this point.. |
So I dug up this small util called smc that can do read/write to SMC which is part of smcFanControl : Apple System Management Control (SMC) tool 0.01 If i ran "smc -l" I could see a list of keys in the SMC which includes MVHR/MVMR. Macs-iMac:Resources mac$ ./smc -k MVHR -r I tried to write the value 2 to it but it doesnt work. Any idea? |
I ran the dtrace script but it didnt work: mac$ sudo dtrace -qCs powermetrics.d -c 'powermetrics --sampler smc -n 1' *** Sampled system activity (Thu Oct 14 10:25:02 2021 +0800) (5000.94ms elapsed) *** Did i launch the command correctly? Maybe it only works under Yosemite? |
Ok. I re-run the smc util as root and this time it works! On the 2010 under High Sierra: To turn TDM on: To turn TDM off: |
I can confirm these commands also work under Big Sur on the 2010!!! |
@protocold Thx :) |
I will need to install that to try. Sounds like a task for one of my
coming weekends.
…On Mon, 18 Oct 2021 at 15:39, protocold ***@***.***> wrote:
@mwkchan <https://github.com/mwkchan> Do you have any newer macos on your
machine that you can run some test?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMG6EA6SWHL3NIG4S6OZD6LUHQWSLANCNFSM47DGTEXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
How can I find the smc binary? Do I need to compile it from the source code?
…On Wed, 13 Oct 2021 at 16:52, protocold ***@***.***> wrote:
So I dug up this small util called smc that can do read/write to SMC which
is part of smcFanControl :
https://github.com/hholtmann/smcFanControl/releases/tag/2.6
If i ran "smc -l" I could see a list of keys in the SMC which includes
MVMR.
Macs-iMac:Resources mac$ ./smc -k MVHR -r
MVHR [flag] (bytes 01)
Macs-iMac:Resources mac$ ./smc -k MVMR -r
MVMR [ui8 ] 0 (bytes 00)
Macs-iMac:Resources mac$ ./smc -k MVMR -w 2
Error: value is not valid
Macs-iMac:Resources mac$ ./smc -k MVMR -w 02
Error: SMCWriteKey() = e00002c1
I tried to write the value 2 to it but it doesnt work. Any idea?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMG6EA5NSFTBNEHKYFSSIW3UGWTNPANCNFSM47DGTEXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
You can find smc binary in ./Resources/ folder from smcFanControl repository. I have an iMac mid 2011 (Model iMac 12,2) with High Sierra. I've installed Gnu Linux distribution as a primary OS but I need TDM functionality too. In Mac OS High Sierra it is still working. But this method doesn't work because MVHR and MVMR registers doesn't exists in keys list from smc utility. |
Was anyone able to overcome the Thunderbolt issue regarding iMac mid 2011? |
Great stuff! This repo's Linux tool is working great under Ubuntu 22.02 and protocold's smc method works great under OCLP Monterey. iMac 11,3 (Mid 2010). |
Also works on macOS Sequoia (15.1.1) using the |
Has anyone been able to figure out the issues with thunderbolt iMacs? |
Nope. But I am noodling over in #2 |
This work on my 2011 iMac 27" under Linux environment. I was wondering if I am able to install a post High Sierra macOS (using OpenCore Patcher) to my 2011 iMac, would this bring back the TDM functionality?
The text was updated successfully, but these errors were encountered: