Hidclass the port driver doesn’t know about the miniport’s transport. That means hidclass manages selective suspend (s0 idle) state without knowing how to turn the device off, it relies on the mini port driver to turn off when told.
The INF settings for hidusbfx2 tell hidclass that selective suspend is supported. You need to copy these to your inf. Your mini port then needs to properly handle IOCTL_HID_SEND_IDLE_NOTIFICATION_REQUEST. When it receives this ioctl you need to turn off the device with your custom logic over i2c.