@chaiyong
I have an Optiplex 7040 MT, you could try my bootpack. Follow my Clover guide here for Catalina
Use the attached bootpack, goes into /EFI/Clover replace the files after you have installed Clover.
Files is the latest so no need to update any kexts. Must be using DP port, HDMI might work, but definitely not VGA.
If you can't boot to installer, then try adding boot arg, no need to use shell command to set DVMT.
-igfxvesa
Once installed, you can boot normally without that arg.
Note: Sleep works but won't wake. It stays in black screen until your hard reboot. Workaround is to add an external supported graphics card.
Optiplex7040MT.zip