Connect Raspberry Pi to a computer monitor with DMT
On Raspbian, using a HDMI to DVI-D cable tvservice cannot detect any possible EDID combination and defaulted to 640x480 with unnecessary overscan. Upon running
tvservice -d edid
you get "nothing written".
So you'll have to refer to the table here and use the correct EDID combination and stick it into the /boot/config.txt file. Next open up the /boot/config.txt by typing
sudo nano /boot/config.txt...