You aren't running 4k. DVI-D is 2560x1600 max. SwitchresX is scaling the desktop, that's what it does when you use a resolution greater than native.
Well, I haven't had much luck in terms of SwitchresX or in monkeying with the pixel clock patching. It seems connected to generally being unable to affect the SIP status of my system. :-S With that said, I have tested the DVI-D to HDMI cables I picked up from Amazon. Both are able to pipe 3840x2160 to the Sony and Samsung sets I'm playing with. I'm using the OS X display settings and not SwitchesX
For what it's worth to anyone following this thread, I was able to get 3840x2160 @ 60Hz and 4:4:4 chroma with the Samsung UN40JU7100, without any of the noted tweaks (e.g., SwitchresX, pixel clock patch). I set up the TV to be connected via a DVI/PC device (in the weeds ofand got 60Hz without an issue. I was pretty surprised and pleased to see it! Plugged in the Sony XBR43X830C and despite any number of settings, couldn't get it beyond 3840x2160 @ 30Hz. :-/
Would have liked the additional size for a treadmill desk monitor, but 40" should be adequate. FWIW, the Samsung also has more viable resolutions to work with when configured with the HDMI port to receive a DVI/PC signal. For the Sony, I was unable to really get any of the HiDPi settings to work. I could get 2560x1440 @ 60Hz via SwitchresX on the Sony, but it was a bit fuzzy as it wasn't HiDPI.
I was able to unlock the HiDPI settings for the Samsung. Lower resolutions like 2560x1440 and even 1920x1080 looks nice and crisp in comparison to the "low resolution" equivalents, which will be a great help for the setup I'm planning.
A bit off topic, but it would seem Samsung has done a better job of making their UHDTVs (or at least this one) more user friendly as monitors. prior to getting the HDMI port setup to accept a DVI/PC signal the resolutions available as well as 60Hz were problematic as well.