Add tvdpi detection