OV9281 B0165 UC-788 can external trigger mode be enabled with i2c commands while camera is runnign with V4l2 driver?

I have been able to run the camera in free running mode, and simultaneously read and write from the i2c bus, but I have not been able to successfully enable triggered mode. What sequence of i2c commands should be used to do this?

I figured it out using this thread as a reference:

`OV9281 External Trigger Support · Issue #5349 · raspberrypi/linux · GitHub

I started with example code that starts the stream using the generic v4l2 driver, then I performed i2c writes with the following register value pairs:

    r = ov9281_write8(ifd, addr, 0x4F00, 0x01); if (r) return r; //low power mode
    r = ov9281_write8(ifd, addr, 0x3030, 0x04); if (r) return r; //external trigger mode
    r = ov9281_write8(ifd, addr, 0x303F, 0x01); if (r) return r; //1 frame per trigger
    r = ov9281_write8(ifd, addr, 0x302C, 0x00); if (r) return r; //sleep period after streaming, byte 3 (highest) default 0x01
    r = ov9281_write8(ifd, addr, 0x302F, 0x7F); if (r) return r; //sleep period after streaming, byte 0 (lowest) default 0x00
    r = ov9281_write8(ifd, addr, 0x3823, 0x00); if (r) return r; //Some people used 0x30 instead, which corresponds to: Timing reg 23 r_init_man:1, ext_vs_en:1
    r = ov9281_write8(ifd, addr, 0x0100, 0x00); if (r) return r; //Standby mode, necessary for some reason 

There are several unintuitive register values. For example the sensor must be in standby mode. Not streaming mode. It must also be set to low power mode.