I just wrote a short program in 5 minutes that prints a message to console when it detects a power mode change. It was super easy. If the TT RGB Plus software implements this code then it can call a method to re-initialise itself instead of just printing to console like mine does.
I wrote mine in C# but this can be easily adapted to C++ or VB or whichever language TT RGB Plus is written in.
using System;
using Microsoft.Win32;
namespace SystemSleepTest
{
class Program
{
static void Main()
{
// Set the SystemEvents class to receive event notification when the power mode changes (e.g. for when waking up from sleep)
SystemEvents.PowerModeChanged += new
PowerModeChangedEventHandler(powerModeChangedHandler);
// For demonstration purposes, this application sits idle waiting for events.
Console.WriteLine("This application is waiting for power change system events.");
Console.WriteLine("Press <Enter> to terminate this application.");
Console.ReadLine();
}
// This method gets called when the system power state has changed
static void powerModeChangedHandler(object sender, EventArgs e)
{
Console.WriteLine("Wakey wakey eggs and bacey");
}
}
}