use device and mode registers, help patch for videoout and enumeratemodes