Hi, I have an application that runs in DXE phase. It executes some code and then call ResetSystem() from RunTimeServices to shut down the system (consider that the OS has put the system in S4 state previously, and this app is being called right after system resumes from S4). The system goes down, however, after ~4 seconds, it restarts automatically. Trying to investigate this issue, I observed that it only happens when there is(are) some USB device(s) connected to the system (e.g., mouse, keyboard, pen-drive), and the system was returned from S4. In the case where there is(are) no USB device(s) connected, even if the system was returned from S4, the system shuts down and does not restart.
Scenario 1: USB device(s) + resume from S4 = shut down and restart. Scenario 2: no USB device(s) + resume from S4 = shut down. Scenario 3: USB device(s) + resume from S5 = shut down. Scenario 4: no USB device(s) + resume from S5 = shut down. On Scenario 1, for instance, I think a USB device is waking up the system after it is turned off. Do you know why this issue happens and how to circumvent it? _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel