smc_util icon indicating copy to clipboard operation
smc_util copied to clipboard

MVHR: read arg fail

Open spadarian opened this issue 5 years ago • 12 comments

Thanks for the hack! Probably I'm doing something wrong but I get this error after running sudo ./tdm_on.sh on the iMac (running Ubuntu):

send_byte(0x52, 0x0300) fail: 0x40
MVHR: read arg fail

read_smc get_key_type error

send_byte(0x52, 0x0300) fail: 0x40
MVMR: read arg fail

read_smc get_key_type error

warning: output eDP not found; ignoring

Is that normal? The laptop (running Ubuntu as well) is connected but nothing happens.

spadarian avatar Nov 06 '19 05:11 spadarian

Unfortunately same here (running Ubuntu 20.04 build on the 27" iMac 2018). Output of smc_dump_linux.sh is here

Patrick-Remy avatar Mar 03 '20 19:03 Patrick-Remy

Same here on a iMac Late 2012 with macOS Catalina. I think MVMR no longer exists. I suspect Target Display Mode does not work anymore with macOS Catalina.

sencer avatar Mar 04 '20 23:03 sencer

The MVHR and MVMR are not listed. I have a iMac Late 2013 and I think it should be supported, right?

Should those keys always appear? or just only after the connection is detected? I'm trying to connect a Dell computer using a HDMI -> thunderbolt adapter.

Do you have any suggestion on how to get the new keys @floe ?

spadarian avatar Jun 23 '20 03:06 spadarian

Hm, I think the only way to solve this would be to run SmcDumpKey on macOS, once with TDM active and once with TDM off, and compare the results... or alternatively, use the dtrace script on the dpd process. However, keep in mind that I tested this with Yosemite on a 2011 iMac, so things may have changed considerably since then...

floe avatar Jun 23 '20 06:06 floe

I'm getting this same error. I am using a late 2013 iMac 27" running manjaro (was on catalina previously) and have not been able to get TDM to work either on Mac OSX or linux

codemonkey76 avatar Jul 21 '22 04:07 codemonkey76

same error here - running Ubuntu 22.10 on an Imac 27" 2011.

running "sudo ./smc_dump_linux.sh |grep MVHR" does not find MVHR...

jrubbel avatar Nov 24 '22 13:11 jrubbel

Just an idea - macs before 2011 used to accept display port as in input for TDM - starting with 2011 Apple changed to Thunderbolt 2. Propaby the smc registers for TDM also changed (if handled by smc at all).

Any thoughts or approaches to find the right registers? Is the any mac os source code ot documentation available? I dont have my mac os installed anymore, but maybe somebody could try floes recommended approach above?

jrubbel avatar Nov 27 '22 11:11 jrubbel

Yes, as I remember, TDM on Thunderbolt iMacs even works only with Thunderbolt intel macs, no luck for M series though.

Bellavene avatar May 02 '23 02:05 Bellavene

I'm having a slightly different error. iMac12,2 (2011).

~/.local/smc_util % doas ./tdm_on.sh
doas (user@host) password:
send_byte(0x06, 0x0300) fail: 0x00
MVHR: read len fail

read_smc get_key_type error

send_byte(0x06, 0x0300) fail: 0x00
MVMR: read len fail

read_smc get_key_type error

Authorization required, but no authorization protocol specified

Can't open display :0

txgk avatar Nov 26 '23 04:11 txgk

similar issue here with an iMac 27" 2009 with geforce graphics and a MacBook Air 2015 running Ventura beautifully with OCLP

Please press Enter to activate this console. Target Display Mode: send_byte(0x06, 0x0300) fail: 0x00 MVHR: read len fail

read_smc get key type error

enabled, toggling OFF ... Target Display Mode: send_byte(0x52, 0x0300) fail: 0x00 MVMR: read arg fail

read_smc get _key_type error

send_byte(0x52, 0x0300) fail: 0x00 MVMR: read arg fail

read_smc get key_type error

disabled.

already tested iMac with a monitor and a miniDP to HDMI adapter to see if the port is working, it is. I'll buy another mini DP to mini DP since mine's a bit janky (it was bought from miniso) and it is giving me the exact same issue with the cable disconnected, lemme know if you want to test anything specific since this iMac is already running ubuntu 22.04 and I have macOS High Sierra on a separate drive that I can boot the MBA off of.

Gelias212 avatar Jan 12 '24 04:01 Gelias212

Maybe you can try what floe suggested @Gelias212?

Hm, I think the only way to solve this would be to run SmcDumpKey on macOS, once with TDM active and once with TDM off, and compare the results... or alternatively, use the dtrace script on the dpd process. However, keep in mind that I tested this with Yosemite on a 2011 iMac, so things may have changed considerably since then...

spadarian avatar Jan 12 '24 04:01 spadarian

ok, I'll try it as soon as I get the new cable, could be a couple of weeks since I don't wanna waste money on useless cables that won't work.

Gelias212 avatar Jan 12 '24 05:01 Gelias212